From c2ef6fbb2d88b323ce6bcb2451960b9bc01187ef Mon Sep 17 00:00:00 2001 From: Samuele Zanca Date: Sun, 10 Oct 2021 13:07:13 -0400 Subject: [PATCH] add eslint and huskyjs to catch bugs and maintain consistent code style --- .eslintrc.js | 36 + .husky/pre-commit | 4 + package-lock.json | 1807 ++- package.json | 7 +- src/component/accentPresetButton/index.js | 9 +- src/component/alert/index.js | 4 +- src/component/appName/index.js | 1 - src/component/bookmark/index.js | 73 +- src/component/bookmarkEmpty/index.js | 3 +- src/component/bookmarkForm/index.js | 52 +- src/component/bookmarkPreset/index.js | 318 +- src/component/bookmarkPreview/index.js | 8 +- src/component/bookmarkTile/index.js | 82 +- src/component/button/index.js | 32 +- src/component/clock/index.js | 53 +- src/component/collapse/index.js | 37 +- src/component/control/checkbox/index.js | 19 +- src/component/control/color/index.js | 43 +- src/component/control/colorMixer/index.js | 28 +- src/component/control/groupText/index.js | 15 +- src/component/control/helperText/index.js | 22 +- src/component/control/index.js | 3 +- src/component/control/inputButton/index.js | 33 +- src/component/control/radio/index.js | 45 +- src/component/control/radioGrid/index.js | 38 +- src/component/control/select/index.js | 24 +- src/component/control/slider/index.js | 37 +- src/component/control/sliderDouble/index.js | 37 +- src/component/control/sliderSlim/index.js | 33 +- src/component/control/text/index.js | 28 +- src/component/control/textReset/index.js | 27 +- src/component/control/textarea/index.js | 28 +- src/component/customTheme/index.js | 11 +- src/component/customThemeForm/index.js | 18 +- src/component/customThemeTile/index.js | 22 +- src/component/data/index.js | 198 +- src/component/date/index.js | 60 +- src/component/dropFile/index.js | 13 +- src/component/dropdown/index.js | 27 +- src/component/easterEgg/index.js | 4 +- src/component/edge/index.js | 39 +- src/component/fontawesome/index.js | 11948 ++++++++-------- src/component/form/feedback/index.js | 2 +- src/component/form/fieldset/index.js | 2 +- src/component/form/group/index.js | 12 +- src/component/form/groupText/index.js | 6 +- src/component/form/helper/index.js | 11 +- src/component/form/inline/index.js | 16 +- src/component/form/input/checkbox/index.js | 14 +- src/component/form/input/color/index.js | 12 +- src/component/form/input/file/index.js | 10 +- src/component/form/input/inputButton/index.js | 12 +- src/component/form/input/number/index.js | 16 +- src/component/form/input/radio/index.js | 18 +- src/component/form/input/range/index.js | 26 +- src/component/form/input/select/index.js | 16 +- src/component/form/input/text/index.js | 18 +- src/component/form/input/textarea/index.js | 16 +- src/component/form/label/index.js | 24 +- src/component/form/sticky/index.js | 2 +- src/component/greeting/index.js | 13 +- src/component/group/index.js | 25 +- src/component/groupAndBookmark/index.js | 9 +- src/component/groupArea/index.js | 51 +- src/component/groupEmpty/index.js | 3 +- src/component/groupForm/index.js | 31 +- src/component/header/index.js | 82 +- src/component/headerItem/index.js | 13 +- src/component/icon/index.js | 4 +- src/component/importForm/index.js | 22 +- src/component/index.js | 29 +- src/component/keyboard/index.js | 10 +- src/component/keyboardShortcut/index.js | 8 +- src/component/layout/index.js | 30 +- src/component/link/index.js | 30 +- src/component/menu/index.js | 19 +- src/component/menuClose/index.js | 2 +- src/component/menuContent/appSetting/index.js | 48 +- .../menuContent/bookmarkSetting/index.js | 62 +- .../menuContent/coffeeSetting/index.js | 38 +- .../menuContent/dataSetting/index.js | 41 +- .../menuContent/debugSetting/index.js | 34 +- .../menuContent/groupSetting/index.js | 91 +- .../menuContent/headerSetting/index.js | 123 +- src/component/menuContent/index.js | 20 +- .../menuContent/layoutSetting/index.js | 32 +- .../menuContent/supportSetting/index.js | 45 +- .../menuContent/themeSetting/index.js | 48 +- .../menuContent/toolbarSetting/index.js | 32 +- src/component/menuFrame/index.js | 26 +- src/component/menuNav/index.js | 41 +- src/component/modal/index.js | 37 +- src/component/pageLock/index.js | 2 +- src/component/presetThemeTile/index.js | 19 +- src/component/reset/index.js | 3 - src/component/search/index.js | 41 +- src/component/searchEmpty/index.js | 6 +- src/component/shade/index.js | 8 +- src/component/stagedBookmark/index.js | 2 +- src/component/stagedCustomTheme/index.js | 2 +- src/component/stagedGroup/index.js | 4 +- src/component/state/index.js | 13 +- src/component/suggest/index.js | 73 +- src/component/tab/index.js | 24 +- src/component/theme/index.js | 75 +- src/component/themePreset/app/index.js | 4 +- src/component/themePreset/index.js | 1 - src/component/themePreset/umbra/index.js | 2 +- src/component/toolbar/index.js | 4 +- src/component/toolbarControl/index.js | 42 +- src/component/transitional/index.js | 22 +- src/component/update/index.js | 63 +- src/component/updateLegacy/index.js | 328 +- src/component/version/index.js | 10 +- src/component/video/index.js | 12 +- src/constant/index.js | 1 + src/index.js | 3 +- src/initialBackground.js | 4 +- .../reset/index.css => style/reset.css} | 0 src/utility/applyCSSClass.js | 6 +- src/utility/applyCSSState.js | 8 +- src/utility/applyCSSVar.js | 4 +- src/utility/clearChildNode.js | 2 +- src/utility/complexNode.js | 22 +- src/utility/convertColor.js | 22 +- src/utility/get.js | 10 +- src/utility/isElementVisible.js | 31 - src/utility/isJson.js | 2 +- src/utility/isValidString.js | 4 +- src/utility/makePath.js | 10 +- src/utility/minMax.js | 2 +- src/utility/node.js | 22 +- src/utility/ordinalNumber.js | 6 +- src/utility/ordinalWord.js | 2 +- src/utility/randomString.js | 24 +- src/utility/set.js | 8 +- src/utility/sortArrayOfObject.js | 6 +- src/utility/trimString.js | 2 +- src/utility/wordNumber.js | 10 +- 139 files changed, 9402 insertions(+), 8227 deletions(-) create mode 100644 .eslintrc.js create mode 100755 .husky/pre-commit delete mode 100644 src/component/appName/index.js delete mode 100644 src/component/reset/index.js create mode 100644 src/constant/index.js rename src/{component/reset/index.css => style/reset.css} (100%) delete mode 100644 src/utility/isElementVisible.js diff --git a/.eslintrc.js b/.eslintrc.js new file mode 100644 index 00000000..4a988212 --- /dev/null +++ b/.eslintrc.js @@ -0,0 +1,36 @@ +/* eslint-disable */ +module.exports = { + 'env': { + 'browser': true, + 'es2021': true, + "webextensions": true + }, + 'extends': 'eslint:recommended', + 'ignorePatterns': ['webpack.*', 'dist/'], + 'parserOptions': { + 'ecmaVersion': 12, + 'sourceType': 'module' + }, + 'plugins': ['unused-imports'], + 'rules': { + 'indent': ['error', 2, { 'SwitchCase': 1 }], + 'linebreak-style': [ + 'error', + 'unix' + ], + 'quotes': [ + 'error', + 'single' + ], + 'semi': [ + 'error', + 'always' + ], + 'no-unused-vars': 'off', + 'unused-imports/no-unused-imports': ['error'], + 'unused-imports/no-unused-vars': [ + 'warn', + { 'vars': 'all', 'varsIgnorePattern': '^_', 'args': 'after-used', 'argsIgnorePattern': '^_' } + ] + } +} diff --git a/.husky/pre-commit b/.husky/pre-commit new file mode 100755 index 00000000..20d0d06e --- /dev/null +++ b/.husky/pre-commit @@ -0,0 +1,4 @@ +#!/bin/sh +. "$(dirname "$0")/_/husky.sh" + +npm run lint diff --git a/package-lock.json b/package-lock.json index 09fc21e4..720f4c62 100644 --- a/package-lock.json +++ b/package-lock.json @@ -6,13 +6,16 @@ "packages": { "": { "name": "nightTab", - "version": "7.2.0", + "version": "7.3.0", "license": "GPL-3", "devDependencies": { "copy-webpack-plugin": "^9.0.1", "css-loader": "^6.3.0", "css-minimizer-webpack-plugin": "^3.0.2", + "eslint": "^7.32.0", + "eslint-plugin-unused-imports": "^1.1.5", "html-webpack-plugin": "^5.3.1", + "husky": "^7.0.2", "mini-css-extract-plugin": "^2.2.0", "moment": "^2.29.1", "sortablejs": "^1.13.0", @@ -26,6 +29,109 @@ "zip-webpack-plugin": "^4.0.1" } }, + "node_modules/@babel/code-frame": { + "version": "7.12.11", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.12.11.tgz", + "integrity": "sha512-Zt1yodBx1UcyiePMSkWnU4hPqhwq7hGi2nFL1LeA3EUl+q2LQx16MISgJ0+z7dnmgvP9QtIleuETGOiOH1RcIw==", + "dev": true, + "dependencies": { + "@babel/highlight": "^7.10.4" + } + }, + "node_modules/@babel/helper-validator-identifier": { + "version": "7.15.7", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.15.7.tgz", + "integrity": "sha512-K4JvCtQqad9OY2+yTU8w+E82ywk/fe+ELNlt1G8z3bVGlZfn/hOcQQsUhGhW/N+tb3fxK800wLtKOE/aM0m72w==", + "dev": true, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/highlight": { + "version": "7.14.5", + "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.14.5.tgz", + "integrity": "sha512-qf9u2WFWVV0MppaL877j2dBtQIDgmidgjGk5VIMw3OadXvYaXn66U1BFlH2t4+t3i+8PhedppRv+i40ABzd+gg==", + "dev": true, + "dependencies": { + "@babel/helper-validator-identifier": "^7.14.5", + "chalk": "^2.0.0", + "js-tokens": "^4.0.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/highlight/node_modules/ansi-styles": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", + "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", + "dev": true, + "dependencies": { + "color-convert": "^1.9.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/@babel/highlight/node_modules/chalk": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", + "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", + "dev": true, + "dependencies": { + "ansi-styles": "^3.2.1", + "escape-string-regexp": "^1.0.5", + "supports-color": "^5.3.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/@babel/highlight/node_modules/color-convert": { + "version": "1.9.3", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", + "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", + "dev": true, + "dependencies": { + "color-name": "1.1.3" + } + }, + "node_modules/@babel/highlight/node_modules/color-name": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", + "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=", + "dev": true + }, + "node_modules/@babel/highlight/node_modules/escape-string-regexp": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", + "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=", + "dev": true, + "engines": { + "node": ">=0.8.0" + } + }, + "node_modules/@babel/highlight/node_modules/has-flag": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", + "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/@babel/highlight/node_modules/supports-color": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", + "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", + "dev": true, + "dependencies": { + "has-flag": "^3.0.0" + }, + "engines": { + "node": ">=4" + } + }, "node_modules/@discoveryjs/json-ext": { "version": "0.5.5", "resolved": "https://registry.npmjs.org/@discoveryjs/json-ext/-/json-ext-0.5.5.tgz", @@ -35,6 +141,101 @@ "node": ">=10.0.0" } }, + "node_modules/@eslint/eslintrc": { + "version": "0.4.3", + "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-0.4.3.tgz", + "integrity": "sha512-J6KFFz5QCYUJq3pf0mjEcCJVERbzv71PUIDczuh9JkwGEzced6CO5ADLHB1rbf/+oPBtoPfMYNOpGDzCANlbXw==", + "dev": true, + "dependencies": { + "ajv": "^6.12.4", + "debug": "^4.1.1", + "espree": "^7.3.0", + "globals": "^13.9.0", + "ignore": "^4.0.6", + "import-fresh": "^3.2.1", + "js-yaml": "^3.13.1", + "minimatch": "^3.0.4", + "strip-json-comments": "^3.1.1" + }, + "engines": { + "node": "^10.12.0 || >=12.0.0" + } + }, + "node_modules/@eslint/eslintrc/node_modules/debug": { + "version": "4.3.2", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.2.tgz", + "integrity": "sha512-mOp8wKcvj7XxC78zLgw/ZA+6TSgkoE2C/ienthhRD298T7UNwAg9diBpLRxC0mOezLl4B0xV7M0cCO6P/O0Xhw==", + "dev": true, + "dependencies": { + "ms": "2.1.2" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } + } + }, + "node_modules/@eslint/eslintrc/node_modules/ignore": { + "version": "4.0.6", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-4.0.6.tgz", + "integrity": "sha512-cyFDKrqc/YdcWFniJhzI42+AzS+gNwmUzOSFcRCQYwySuBBBy/KjuxWLZ/FHEH6Moq1NizMOBWyTcv8O4OZIMg==", + "dev": true, + "engines": { + "node": ">= 4" + } + }, + "node_modules/@eslint/eslintrc/node_modules/ms": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", + "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", + "dev": true + }, + "node_modules/@humanwhocodes/config-array": { + "version": "0.5.0", + "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.5.0.tgz", + "integrity": "sha512-FagtKFz74XrTl7y6HCzQpwDfXP0yhxe9lHLD1UZxjvZIcbyRz8zTFF/yYNfSfzU414eDwZ1SrO0Qvtyf+wFMQg==", + "dev": true, + "dependencies": { + "@humanwhocodes/object-schema": "^1.2.0", + "debug": "^4.1.1", + "minimatch": "^3.0.4" + }, + "engines": { + "node": ">=10.10.0" + } + }, + "node_modules/@humanwhocodes/config-array/node_modules/debug": { + "version": "4.3.2", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.2.tgz", + "integrity": "sha512-mOp8wKcvj7XxC78zLgw/ZA+6TSgkoE2C/ienthhRD298T7UNwAg9diBpLRxC0mOezLl4B0xV7M0cCO6P/O0Xhw==", + "dev": true, + "dependencies": { + "ms": "2.1.2" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } + } + }, + "node_modules/@humanwhocodes/config-array/node_modules/ms": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", + "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", + "dev": true + }, + "node_modules/@humanwhocodes/object-schema": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/@humanwhocodes/object-schema/-/object-schema-1.2.0.tgz", + "integrity": "sha512-wdppn25U8z/2yiaT6YGquE6X8sSv7hNMWSXYSSU1jGv/yd6XqjXgTDJ8KP4NgjTXfJ3GbRjeeb8RTV7a/VpM+w==", + "dev": true + }, "node_modules/@nodelib/fs.scandir": { "version": "2.1.5", "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", @@ -366,6 +567,15 @@ "acorn": "^8" } }, + "node_modules/acorn-jsx": { + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz", + "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==", + "dev": true, + "peerDependencies": { + "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0" + } + }, "node_modules/aggregate-error": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/aggregate-error/-/aggregate-error-3.1.0.tgz", @@ -410,6 +620,15 @@ "integrity": "sha1-l6ERlkmyEa0zaR2fn0hqjsn74KM=", "dev": true }, + "node_modules/ansi-colors": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/ansi-colors/-/ansi-colors-4.1.1.tgz", + "integrity": "sha512-JoX0apGbHaUJBNl6yF+p6JAFYZ666/hhCGKN5t9QFjbJQKUU/g8MNbFDbvfrgKXvI1QpZplPOnwIo99lX/AAmA==", + "dev": true, + "engines": { + "node": ">=6" + } + }, "node_modules/ansi-html-community": { "version": "0.0.8", "resolved": "https://registry.npmjs.org/ansi-html-community/-/ansi-html-community-0.0.8.tgz", @@ -431,6 +650,21 @@ "node": ">=0.10.0" } }, + "node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, "node_modules/anymatch": { "version": "3.1.2", "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.2.tgz", @@ -444,6 +678,15 @@ "node": ">= 8" } }, + "node_modules/argparse": { + "version": "1.0.10", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", + "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", + "dev": true, + "dependencies": { + "sprintf-js": "~1.0.2" + } + }, "node_modules/array-flatten": { "version": "2.1.2", "resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-2.1.2.tgz", @@ -459,6 +702,15 @@ "node": ">=8" } }, + "node_modules/astral-regex": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/astral-regex/-/astral-regex-2.0.0.tgz", + "integrity": "sha512-Z7tMw1ytTXt5jqMcOP+OQteU1VuNK9Y02uuJtKQ1Sv69jXQKKg5cibLwGJow8yzZP+eAc18EmLGPal0bp36rvQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, "node_modules/async": { "version": "2.6.3", "resolved": "https://registry.npmjs.org/async/-/async-2.6.3.tgz", @@ -633,6 +885,15 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/callsites": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", + "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", + "dev": true, + "engines": { + "node": ">=6" + } + }, "node_modules/camel-case": { "version": "4.1.2", "resolved": "https://registry.npmjs.org/camel-case/-/camel-case-4.1.2.tgz", @@ -674,6 +935,34 @@ "integrity": "sha512-2nMHqg1x5PU+unxX7PGY7AuYxl2qDx7PSrTRjizr8sxdd3l/3hBuWWaki62qmtYm2U5i4Z5E7GbjlyDFhs9/EQ==", "dev": true }, + "node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/chalk/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, "node_modules/chokidar": { "version": "3.5.2", "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.5.2.tgz", @@ -751,6 +1040,24 @@ "node": ">=6" } }, + "node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, "node_modules/colord": { "version": "2.8.0", "resolved": "https://registry.npmjs.org/colord/-/colord-2.8.0.tgz", @@ -1161,6 +1468,12 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/deep-is": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz", + "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==", + "dev": true + }, "node_modules/default-gateway": { "version": "6.0.3", "resolved": "https://registry.npmjs.org/default-gateway/-/default-gateway-6.0.3.tgz", @@ -1274,6 +1587,18 @@ "buffer-indexof": "^1.0.0" } }, + "node_modules/doctrine": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-3.0.0.tgz", + "integrity": "sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w==", + "dev": true, + "dependencies": { + "esutils": "^2.0.2" + }, + "engines": { + "node": ">=6.0.0" + } + }, "node_modules/dom-converter": { "version": "0.2.0", "resolved": "https://registry.npmjs.org/dom-converter/-/dom-converter-0.2.0.tgz", @@ -1360,6 +1685,12 @@ "integrity": "sha512-ZzkDcdzePeF4dhoGZQT77V2CyJOpwfTZEOg4h0x6R/jQhGt/rIRpbRyVreWLtD7B/WsVxo91URm2WxMKR9JQZA==", "dev": true }, + "node_modules/emoji-regex": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", + "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", + "dev": true + }, "node_modules/encodeurl": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.2.tgz", @@ -1382,6 +1713,18 @@ "node": ">=10.13.0" } }, + "node_modules/enquirer": { + "version": "2.3.6", + "resolved": "https://registry.npmjs.org/enquirer/-/enquirer-2.3.6.tgz", + "integrity": "sha512-yjNnPr315/FjS4zIsUxYguYUPP2e1NK4d7E7ZOLiyYCcbFBiTMyID+2wvm2w6+pZ/odMA7cRkjhsPbltwBOrLg==", + "dev": true, + "dependencies": { + "ansi-colors": "^4.1.1" + }, + "engines": { + "node": ">=8.6" + } + }, "node_modules/entities": { "version": "2.2.0", "resolved": "https://registry.npmjs.org/entities/-/entities-2.2.0.tgz", @@ -1424,6 +1767,105 @@ "integrity": "sha1-Aljq5NPQwJdN4cFpGI7wBR0dGYg=", "dev": true }, + "node_modules/escape-string-regexp": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", + "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/eslint": { + "version": "7.32.0", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-7.32.0.tgz", + "integrity": "sha512-VHZ8gX+EDfz+97jGcgyGCyRia/dPOd6Xh9yPv8Bl1+SoaIwD+a/vlrOmGRUyOYu7MwUhc7CxqeaDZU13S4+EpA==", + "dev": true, + "dependencies": { + "@babel/code-frame": "7.12.11", + "@eslint/eslintrc": "^0.4.3", + "@humanwhocodes/config-array": "^0.5.0", + "ajv": "^6.10.0", + "chalk": "^4.0.0", + "cross-spawn": "^7.0.2", + "debug": "^4.0.1", + "doctrine": "^3.0.0", + "enquirer": "^2.3.5", + "escape-string-regexp": "^4.0.0", + "eslint-scope": "^5.1.1", + "eslint-utils": "^2.1.0", + "eslint-visitor-keys": "^2.0.0", + "espree": "^7.3.1", + "esquery": "^1.4.0", + "esutils": "^2.0.2", + "fast-deep-equal": "^3.1.3", + "file-entry-cache": "^6.0.1", + "functional-red-black-tree": "^1.0.1", + "glob-parent": "^5.1.2", + "globals": "^13.6.0", + "ignore": "^4.0.6", + "import-fresh": "^3.0.0", + "imurmurhash": "^0.1.4", + "is-glob": "^4.0.0", + "js-yaml": "^3.13.1", + "json-stable-stringify-without-jsonify": "^1.0.1", + "levn": "^0.4.1", + "lodash.merge": "^4.6.2", + "minimatch": "^3.0.4", + "natural-compare": "^1.4.0", + "optionator": "^0.9.1", + "progress": "^2.0.0", + "regexpp": "^3.1.0", + "semver": "^7.2.1", + "strip-ansi": "^6.0.0", + "strip-json-comments": "^3.1.0", + "table": "^6.0.9", + "text-table": "^0.2.0", + "v8-compile-cache": "^2.0.3" + }, + "bin": { + "eslint": "bin/eslint.js" + }, + "engines": { + "node": "^10.12.0 || >=12.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/eslint-plugin-unused-imports": { + "version": "1.1.5", + "resolved": "https://registry.npmjs.org/eslint-plugin-unused-imports/-/eslint-plugin-unused-imports-1.1.5.tgz", + "integrity": "sha512-TeV8l8zkLQrq9LBeYFCQmYVIXMjfHgdRQLw7dEZp4ZB3PeR10Y5Uif11heCsHRmhdRIYMoewr1d9ouUHLbLHew==", + "dev": true, + "dependencies": { + "eslint-rule-composer": "^0.3.0" + }, + "engines": { + "node": "^10.12.0 || >=12.0.0" + }, + "peerDependencies": { + "@typescript-eslint/eslint-plugin": "^4.14.2", + "eslint": "^6.0.0 || ^7.0.0" + }, + "peerDependenciesMeta": { + "@typescript-eslint/eslint-plugin": { + "optional": true + } + } + }, + "node_modules/eslint-rule-composer": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/eslint-rule-composer/-/eslint-rule-composer-0.3.0.tgz", + "integrity": "sha512-bt+Sh8CtDmn2OajxvNO+BX7Wn4CIWMpTRm3MaiKPCQcnnlm0CS2mhui6QaoeQugs+3Kj2ESKEEGJUdVafwhiCg==", + "dev": true, + "engines": { + "node": ">=4.0.0" + } + }, "node_modules/eslint-scope": { "version": "5.1.1", "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-5.1.1.tgz", @@ -1437,6 +1879,173 @@ "node": ">=8.0.0" } }, + "node_modules/eslint-utils": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/eslint-utils/-/eslint-utils-2.1.0.tgz", + "integrity": "sha512-w94dQYoauyvlDc43XnGB8lU3Zt713vNChgt4EWwhXAP2XkBvndfxF0AgIqKOOasjPIPzj9JqgwkwbCYD0/V3Zg==", + "dev": true, + "dependencies": { + "eslint-visitor-keys": "^1.1.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/mysticatea" + } + }, + "node_modules/eslint-utils/node_modules/eslint-visitor-keys": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-1.3.0.tgz", + "integrity": "sha512-6J72N8UNa462wa/KFODt/PJ3IU60SDpC3QXC1Hjc1BXXpfL2C9R5+AU7jhe0F6GREqVMh4Juu+NY7xn+6dipUQ==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/eslint-visitor-keys": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-2.1.0.tgz", + "integrity": "sha512-0rSmRBzXgDzIsD6mGdJgevzgezI534Cer5L/vyMX0kHzT/jiB43jRhd9YUlMGYLQy2zprNmoT8qasCGtY+QaKw==", + "dev": true, + "engines": { + "node": ">=10" + } + }, + "node_modules/eslint/node_modules/ansi-regex": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", + "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/eslint/node_modules/debug": { + "version": "4.3.2", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.2.tgz", + "integrity": "sha512-mOp8wKcvj7XxC78zLgw/ZA+6TSgkoE2C/ienthhRD298T7UNwAg9diBpLRxC0mOezLl4B0xV7M0cCO6P/O0Xhw==", + "dev": true, + "dependencies": { + "ms": "2.1.2" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } + } + }, + "node_modules/eslint/node_modules/glob-parent": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", + "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", + "dev": true, + "dependencies": { + "is-glob": "^4.0.1" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/eslint/node_modules/ignore": { + "version": "4.0.6", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-4.0.6.tgz", + "integrity": "sha512-cyFDKrqc/YdcWFniJhzI42+AzS+gNwmUzOSFcRCQYwySuBBBy/KjuxWLZ/FHEH6Moq1NizMOBWyTcv8O4OZIMg==", + "dev": true, + "engines": { + "node": ">= 4" + } + }, + "node_modules/eslint/node_modules/ms": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", + "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", + "dev": true + }, + "node_modules/eslint/node_modules/strip-ansi": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "dev": true, + "dependencies": { + "ansi-regex": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/espree": { + "version": "7.3.1", + "resolved": "https://registry.npmjs.org/espree/-/espree-7.3.1.tgz", + "integrity": "sha512-v3JCNCE64umkFpmkFGqzVKsOT0tN1Zr+ueqLZfpV1Ob8e+CEgPWa+OxCoGH3tnhimMKIaBm4m/vaRpJ/krRz2g==", + "dev": true, + "dependencies": { + "acorn": "^7.4.0", + "acorn-jsx": "^5.3.1", + "eslint-visitor-keys": "^1.3.0" + }, + "engines": { + "node": "^10.12.0 || >=12.0.0" + } + }, + "node_modules/espree/node_modules/acorn": { + "version": "7.4.1", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-7.4.1.tgz", + "integrity": "sha512-nQyp0o1/mNdbTO1PO6kHkwSrmgZ0MT/jCCpNiwbUjGoRN4dlBhqJtoQuCnEOKzgTVwg0ZWiCoQy6SxMebQVh8A==", + "dev": true, + "bin": { + "acorn": "bin/acorn" + }, + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/espree/node_modules/eslint-visitor-keys": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-1.3.0.tgz", + "integrity": "sha512-6J72N8UNa462wa/KFODt/PJ3IU60SDpC3QXC1Hjc1BXXpfL2C9R5+AU7jhe0F6GREqVMh4Juu+NY7xn+6dipUQ==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/esprima": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", + "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", + "dev": true, + "bin": { + "esparse": "bin/esparse.js", + "esvalidate": "bin/esvalidate.js" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/esquery": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.4.0.tgz", + "integrity": "sha512-cCDispWt5vHHtwMY2YrAQ4ibFkAL8RbH5YGBnZBc90MolvvfkkQcJro/aZiAQUlQ3qgrYS6D6v8Gc5G5CQsc9w==", + "dev": true, + "dependencies": { + "estraverse": "^5.1.0" + }, + "engines": { + "node": ">=0.10" + } + }, + "node_modules/esquery/node_modules/estraverse": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.2.0.tgz", + "integrity": "sha512-BxbNGGNm0RyRYvUdHpIwv9IWzeM9XClbOxwoATuFdOE7ZE6wHL+HQ5T8hoPM+zHvmKzzsEqhgy0GrQ5X13afiQ==", + "dev": true, + "engines": { + "node": ">=4.0" + } + }, "node_modules/esrecurse": { "version": "4.3.0", "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz", @@ -1467,6 +2076,15 @@ "node": ">=4.0" } }, + "node_modules/esutils": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", + "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, "node_modules/etag": { "version": "1.8.1", "resolved": "https://registry.npmjs.org/etag/-/etag-1.8.1.tgz", @@ -1607,6 +2225,12 @@ "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", "dev": true }, + "node_modules/fast-levenshtein": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", + "integrity": "sha1-PYpcZog6FqMMqGQ+hR8Zuqd5eRc=", + "dev": true + }, "node_modules/fastest-levenshtein": { "version": "1.0.12", "resolved": "https://registry.npmjs.org/fastest-levenshtein/-/fastest-levenshtein-1.0.12.tgz", @@ -1634,6 +2258,18 @@ "node": ">=0.8.0" } }, + "node_modules/file-entry-cache": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-6.0.1.tgz", + "integrity": "sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg==", + "dev": true, + "dependencies": { + "flat-cache": "^3.0.4" + }, + "engines": { + "node": "^10.12.0 || >=12.0.0" + } + }, "node_modules/fill-range": { "version": "7.0.1", "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", @@ -1677,6 +2313,25 @@ "node": ">=8" } }, + "node_modules/flat-cache": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-3.0.4.tgz", + "integrity": "sha512-dm9s5Pw7Jc0GvMYbshN6zchCA9RgQlzzEZX3vylR9IqFfS8XciblUXOKfW6SiuJ0e13eDYZoZV5wdrev7P3Nwg==", + "dev": true, + "dependencies": { + "flatted": "^3.1.0", + "rimraf": "^3.0.2" + }, + "engines": { + "node": "^10.12.0 || >=12.0.0" + } + }, + "node_modules/flatted": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.2.2.tgz", + "integrity": "sha512-JaTY/wtrcSyvXJl4IMFHPKyFur1sE9AUqc0QnhOaJ0CxHtAoIV8pYDzeEfAaNEtGkOfq4gr3LBFmdXW5mOQFnA==", + "dev": true + }, "node_modules/follow-redirects": { "version": "1.14.4", "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.14.4.tgz", @@ -1747,6 +2402,12 @@ "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==", "dev": true }, + "node_modules/functional-red-black-tree": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/functional-red-black-tree/-/functional-red-black-tree-1.0.1.tgz", + "integrity": "sha1-GwqzvVU7Kg1jmdKcDj6gslIHgyc=", + "dev": true + }, "node_modules/get-intrinsic": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.1.1.tgz", @@ -1811,6 +2472,21 @@ "integrity": "sha512-lkX1HJXwyMcprw/5YUZc2s7DrpAiHB21/V+E1rHUrVNokkvB6bqMzT0VfV6/86ZNabt1k14YOIaT7nDvOX3Iiw==", "dev": true }, + "node_modules/globals": { + "version": "13.11.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-13.11.0.tgz", + "integrity": "sha512-08/xrJ7wQjK9kkkRoI3OFUBbLx4f+6x3SGwcPvQ0QH6goFDrOU2oyAWrmh3dJezu65buo+HBMzAMQy6rovVC3g==", + "dev": true, + "dependencies": { + "type-fest": "^0.20.2" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/globby": { "version": "11.0.4", "resolved": "https://registry.npmjs.org/globby/-/globby-11.0.4.tgz", @@ -2078,6 +2754,21 @@ "node": ">=10.17.0" } }, + "node_modules/husky": { + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/husky/-/husky-7.0.2.tgz", + "integrity": "sha512-8yKEWNX4z2YsofXAMT7KvA1g8p+GxtB1ffV8XtpAEGuXNAbCV5wdNKH+qTpw8SM9fh4aMPDR+yQuKfgnreyZlg==", + "dev": true, + "bin": { + "husky": "lib/bin.js" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/typicode" + } + }, "node_modules/iconv-lite": { "version": "0.4.24", "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", @@ -2111,6 +2802,31 @@ "node": ">= 4" } }, + "node_modules/import-fresh": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.0.tgz", + "integrity": "sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw==", + "dev": true, + "dependencies": { + "parent-module": "^1.0.0", + "resolve-from": "^4.0.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/import-fresh/node_modules/resolve-from": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", + "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==", + "dev": true, + "engines": { + "node": ">=4" + } + }, "node_modules/import-local": { "version": "3.0.2", "resolved": "https://registry.npmjs.org/import-local/-/import-local-3.0.2.tgz", @@ -2127,6 +2843,15 @@ "node": ">=8" } }, + "node_modules/imurmurhash": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", + "integrity": "sha1-khi5srkoojixPcT7a21XbyMUU+o=", + "dev": true, + "engines": { + "node": ">=0.8.19" + } + }, "node_modules/indent-string": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/indent-string/-/indent-string-4.0.0.tgz", @@ -2300,6 +3025,15 @@ "node": ">=0.10.0" } }, + "node_modules/is-fullwidth-code-point": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", + "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", + "dev": true, + "engines": { + "node": ">=8" + } + }, "node_modules/is-glob": { "version": "4.0.1", "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.1.tgz", @@ -2456,6 +3190,25 @@ "node": ">= 10.13.0" } }, + "node_modules/js-tokens": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", + "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", + "dev": true + }, + "node_modules/js-yaml": { + "version": "3.14.1", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.1.tgz", + "integrity": "sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==", + "dev": true, + "dependencies": { + "argparse": "^1.0.7", + "esprima": "^4.0.0" + }, + "bin": { + "js-yaml": "bin/js-yaml.js" + } + }, "node_modules/json-parse-better-errors": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/json-parse-better-errors/-/json-parse-better-errors-1.0.2.tgz", @@ -2468,6 +3221,12 @@ "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", "dev": true }, + "node_modules/json-stable-stringify-without-jsonify": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz", + "integrity": "sha1-nbe1lJatPzz+8wp1FC0tkwrXJlE=", + "dev": true + }, "node_modules/kind-of": { "version": "6.0.3", "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.3.tgz", @@ -2477,6 +3236,19 @@ "node": ">=0.10.0" } }, + "node_modules/levn": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz", + "integrity": "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==", + "dev": true, + "dependencies": { + "prelude-ls": "^1.2.1", + "type-check": "~0.4.0" + }, + "engines": { + "node": ">= 0.8.0" + } + }, "node_modules/lilconfig": { "version": "2.0.3", "resolved": "https://registry.npmjs.org/lilconfig/-/lilconfig-2.0.3.tgz", @@ -2513,12 +3285,30 @@ "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==", "dev": true }, + "node_modules/lodash.clonedeep": { + "version": "4.5.0", + "resolved": "https://registry.npmjs.org/lodash.clonedeep/-/lodash.clonedeep-4.5.0.tgz", + "integrity": "sha1-4j8/nE+Pvd6HJSnBBxhXoIblzO8=", + "dev": true + }, "node_modules/lodash.memoize": { "version": "4.1.2", "resolved": "https://registry.npmjs.org/lodash.memoize/-/lodash.memoize-4.1.2.tgz", "integrity": "sha1-vMbEmkKihA7Zl/Mj6tpezRguC/4=", "dev": true }, + "node_modules/lodash.merge": { + "version": "4.6.2", + "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz", + "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==", + "dev": true + }, + "node_modules/lodash.truncate": { + "version": "4.4.2", + "resolved": "https://registry.npmjs.org/lodash.truncate/-/lodash.truncate-4.4.2.tgz", + "integrity": "sha1-WjUNoLERO4N+z//VgSy+WNbq4ZM=", + "dev": true + }, "node_modules/lodash.uniq": { "version": "4.5.0", "resolved": "https://registry.npmjs.org/lodash.uniq/-/lodash.uniq-4.5.0.tgz", @@ -2765,6 +3555,12 @@ "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1" } }, + "node_modules/natural-compare": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", + "integrity": "sha1-Sr6/7tdUHywnrPspvbvRXI1bpPc=", + "dev": true + }, "node_modules/negotiator": { "version": "0.6.2", "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.2.tgz", @@ -2943,6 +3739,23 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/optionator": { + "version": "0.9.1", + "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.1.tgz", + "integrity": "sha512-74RlY5FCnhq4jRxVUPKDaRwrVNXMqsGsiW6AJw4XK8hmtm10wC0ypZBLw5IIp85NZMr91+qd1RvvENwg7jjRFw==", + "dev": true, + "dependencies": { + "deep-is": "^0.1.3", + "fast-levenshtein": "^2.0.6", + "levn": "^0.4.1", + "prelude-ls": "^1.2.1", + "type-check": "^0.4.0", + "word-wrap": "^1.2.3" + }, + "engines": { + "node": ">= 0.8.0" + } + }, "node_modules/p-event": { "version": "4.2.0", "resolved": "https://registry.npmjs.org/p-event/-/p-event-4.2.0.tgz", @@ -3068,6 +3881,18 @@ "tslib": "^2.0.3" } }, + "node_modules/parent-module": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz", + "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==", + "dev": true, + "dependencies": { + "callsites": "^3.0.0" + }, + "engines": { + "node": ">=6" + } + }, "node_modules/parseurl": { "version": "1.3.3", "resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz", @@ -3700,6 +4525,15 @@ "integrity": "sha512-97DXOFbQJhk71ne5/Mt6cOu6yxsSfM0QGQyl0L25Gca4yGWEGJaig7l7gbCX623VqTBNGLRLaVUCnNkcedlRSQ==", "dev": true }, + "node_modules/prelude-ls": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz", + "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==", + "dev": true, + "engines": { + "node": ">= 0.8.0" + } + }, "node_modules/pretty-error": { "version": "3.0.4", "resolved": "https://registry.npmjs.org/pretty-error/-/pretty-error-3.0.4.tgz", @@ -3716,6 +4550,15 @@ "integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==", "dev": true }, + "node_modules/progress": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/progress/-/progress-2.0.3.tgz", + "integrity": "sha512-7PiHtLll5LdnKIMw100I+8xJXR5gW2QwWYkT6iJva0bXitZKa/XMrSbdmg3r2Xnaidz9Qumd0VPaMrZlF9V9sA==", + "dev": true, + "engines": { + "node": ">=0.4.0" + } + }, "node_modules/proxy-addr": { "version": "2.0.7", "resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.7.tgz", @@ -3882,6 +4725,18 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/regexpp": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/regexpp/-/regexpp-3.2.0.tgz", + "integrity": "sha512-pq2bWo9mVD43nbts2wGv17XLiNLya+GklZ8kaDLV2Z08gDCsGpnKn9BFMepvWuHCbyVvY7J5o5+BVvoQbmlJLg==", + "dev": true, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/mysticatea" + } + }, "node_modules/relateurl": { "version": "0.2.7", "resolved": "https://registry.npmjs.org/relateurl/-/relateurl-0.2.7.tgz", @@ -3904,6 +4759,15 @@ "strip-ansi": "^3.0.1" } }, + "node_modules/require-from-string": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/require-from-string/-/require-from-string-2.0.2.tgz", + "integrity": "sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, "node_modules/requires-port": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/requires-port/-/requires-port-1.0.0.tgz", @@ -4222,6 +5086,23 @@ "node": ">=8" } }, + "node_modules/slice-ansi": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/slice-ansi/-/slice-ansi-4.0.0.tgz", + "integrity": "sha512-qMCMfhY040cVHT43K9BFygqYbUPFZKHOg7K73mtTWJRb8pyP3fzf4Ixd5SzdEJQ6MRUg/WBnOLxghZtKKurENQ==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.0.0", + "astral-regex": "^2.0.0", + "is-fullwidth-code-point": "^3.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/slice-ansi?sponsor=1" + } + }, "node_modules/sockjs": { "version": "0.3.21", "resolved": "https://registry.npmjs.org/sockjs/-/sockjs-0.3.21.tgz", @@ -4343,6 +5224,12 @@ "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", "dev": true }, + "node_modules/sprintf-js": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", + "integrity": "sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw=", + "dev": true + }, "node_modules/stable": { "version": "0.1.8", "resolved": "https://registry.npmjs.org/stable/-/stable-0.1.8.tgz", @@ -4367,6 +5254,41 @@ "safe-buffer": "~5.2.0" } }, + "node_modules/string-width": { + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", + "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", + "dev": true, + "dependencies": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/string-width/node_modules/ansi-regex": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", + "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/string-width/node_modules/strip-ansi": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "dev": true, + "dependencies": { + "ansi-regex": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, "node_modules/strip-ansi": { "version": "3.0.1", "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", @@ -4388,6 +5310,18 @@ "node": ">=6" } }, + "node_modules/strip-json-comments": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", + "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", + "dev": true, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/style-loader": { "version": "3.3.0", "resolved": "https://registry.npmjs.org/style-loader/-/style-loader-3.3.0.tgz", @@ -4471,6 +5405,66 @@ "integrity": "sha512-2nMHqg1x5PU+unxX7PGY7AuYxl2qDx7PSrTRjizr8sxdd3l/3hBuWWaki62qmtYm2U5i4Z5E7GbjlyDFhs9/EQ==", "dev": true }, + "node_modules/table": { + "version": "6.7.2", + "resolved": "https://registry.npmjs.org/table/-/table-6.7.2.tgz", + "integrity": "sha512-UFZK67uvyNivLeQbVtkiUs8Uuuxv24aSL4/Vil2PJVtMgU8Lx0CYkP12uCGa3kjyQzOSgV1+z9Wkb82fCGsO0g==", + "dev": true, + "dependencies": { + "ajv": "^8.0.1", + "lodash.clonedeep": "^4.5.0", + "lodash.truncate": "^4.4.2", + "slice-ansi": "^4.0.0", + "string-width": "^4.2.3", + "strip-ansi": "^6.0.1" + }, + "engines": { + "node": ">=10.0.0" + } + }, + "node_modules/table/node_modules/ajv": { + "version": "8.6.3", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.6.3.tgz", + "integrity": "sha512-SMJOdDP6LqTkD0Uq8qLi+gMwSt0imXLSV080qFVwJCpH9U6Mb+SUGHAXM0KNbcBPguytWyvFxcHgMLe2D2XSpw==", + "dev": true, + "dependencies": { + "fast-deep-equal": "^3.1.1", + "json-schema-traverse": "^1.0.0", + "require-from-string": "^2.0.2", + "uri-js": "^4.2.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, + "node_modules/table/node_modules/ansi-regex": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", + "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/table/node_modules/json-schema-traverse": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", + "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==", + "dev": true + }, + "node_modules/table/node_modules/strip-ansi": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "dev": true, + "dependencies": { + "ansi-regex": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, "node_modules/tapable": { "version": "2.2.1", "resolved": "https://registry.npmjs.org/tapable/-/tapable-2.2.1.tgz", @@ -4570,6 +5564,12 @@ "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==", "dev": true }, + "node_modules/text-table": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/text-table/-/text-table-0.2.0.tgz", + "integrity": "sha1-f17oI66AUgfACvLfSoTsP8+lcLQ=", + "dev": true + }, "node_modules/thunky": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/thunky/-/thunky-1.1.0.tgz", @@ -4609,6 +5609,30 @@ "integrity": "sha512-77EbyPPpMz+FRFRuAFlWMtmgUWGe9UOG2Z25NqCwiIjRhOf5iKGuzSe5P2w1laq+FkRy4p+PCuVkJSGkzTEKVw==", "dev": true }, + "node_modules/type-check": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz", + "integrity": "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==", + "dev": true, + "dependencies": { + "prelude-ls": "^1.2.1" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/type-fest": { + "version": "0.20.2", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz", + "integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/type-is": { "version": "1.6.18", "resolved": "https://registry.npmjs.org/type-is/-/type-is-1.6.18.tgz", @@ -5021,6 +6045,15 @@ "integrity": "sha512-JcKqAHLPxcdb9KM49dufGXn2x3ssnfjbcaQdLlfZsL9rH9wgDQjUtDxbo8NE0F6SFvydeu1VhZe7hZuHsB2/pw==", "dev": true }, + "node_modules/word-wrap": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.3.tgz", + "integrity": "sha512-Hz/mrNwitNRh/HUAtM/VT/5VH+ygD6DV7mYKZAtHOrbs8U7lvPS6xf7EJKMF0uW1KJCl0H701g3ZGus+muE5vQ==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, "node_modules/wrappy": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", @@ -5099,12 +6132,170 @@ } }, "dependencies": { + "@babel/code-frame": { + "version": "7.12.11", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.12.11.tgz", + "integrity": "sha512-Zt1yodBx1UcyiePMSkWnU4hPqhwq7hGi2nFL1LeA3EUl+q2LQx16MISgJ0+z7dnmgvP9QtIleuETGOiOH1RcIw==", + "dev": true, + "requires": { + "@babel/highlight": "^7.10.4" + } + }, + "@babel/helper-validator-identifier": { + "version": "7.15.7", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.15.7.tgz", + "integrity": "sha512-K4JvCtQqad9OY2+yTU8w+E82ywk/fe+ELNlt1G8z3bVGlZfn/hOcQQsUhGhW/N+tb3fxK800wLtKOE/aM0m72w==", + "dev": true + }, + "@babel/highlight": { + "version": "7.14.5", + "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.14.5.tgz", + "integrity": "sha512-qf9u2WFWVV0MppaL877j2dBtQIDgmidgjGk5VIMw3OadXvYaXn66U1BFlH2t4+t3i+8PhedppRv+i40ABzd+gg==", + "dev": true, + "requires": { + "@babel/helper-validator-identifier": "^7.14.5", + "chalk": "^2.0.0", + "js-tokens": "^4.0.0" + }, + "dependencies": { + "ansi-styles": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", + "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", + "dev": true, + "requires": { + "color-convert": "^1.9.0" + } + }, + "chalk": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", + "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", + "dev": true, + "requires": { + "ansi-styles": "^3.2.1", + "escape-string-regexp": "^1.0.5", + "supports-color": "^5.3.0" + } + }, + "color-convert": { + "version": "1.9.3", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", + "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", + "dev": true, + "requires": { + "color-name": "1.1.3" + } + }, + "color-name": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", + "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=", + "dev": true + }, + "escape-string-regexp": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", + "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=", + "dev": true + }, + "has-flag": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", + "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=", + "dev": true + }, + "supports-color": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", + "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", + "dev": true, + "requires": { + "has-flag": "^3.0.0" + } + } + } + }, "@discoveryjs/json-ext": { "version": "0.5.5", "resolved": "https://registry.npmjs.org/@discoveryjs/json-ext/-/json-ext-0.5.5.tgz", "integrity": "sha512-6nFkfkmSeV/rqSaS4oWHgmpnYw194f6hmWF5is6b0J1naJZoiD0NTc9AiUwPHvWsowkjuHErCZT1wa0jg+BLIA==", "dev": true }, + "@eslint/eslintrc": { + "version": "0.4.3", + "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-0.4.3.tgz", + "integrity": "sha512-J6KFFz5QCYUJq3pf0mjEcCJVERbzv71PUIDczuh9JkwGEzced6CO5ADLHB1rbf/+oPBtoPfMYNOpGDzCANlbXw==", + "dev": true, + "requires": { + "ajv": "^6.12.4", + "debug": "^4.1.1", + "espree": "^7.3.0", + "globals": "^13.9.0", + "ignore": "^4.0.6", + "import-fresh": "^3.2.1", + "js-yaml": "^3.13.1", + "minimatch": "^3.0.4", + "strip-json-comments": "^3.1.1" + }, + "dependencies": { + "debug": { + "version": "4.3.2", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.2.tgz", + "integrity": "sha512-mOp8wKcvj7XxC78zLgw/ZA+6TSgkoE2C/ienthhRD298T7UNwAg9diBpLRxC0mOezLl4B0xV7M0cCO6P/O0Xhw==", + "dev": true, + "requires": { + "ms": "2.1.2" + } + }, + "ignore": { + "version": "4.0.6", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-4.0.6.tgz", + "integrity": "sha512-cyFDKrqc/YdcWFniJhzI42+AzS+gNwmUzOSFcRCQYwySuBBBy/KjuxWLZ/FHEH6Moq1NizMOBWyTcv8O4OZIMg==", + "dev": true + }, + "ms": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", + "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", + "dev": true + } + } + }, + "@humanwhocodes/config-array": { + "version": "0.5.0", + "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.5.0.tgz", + "integrity": "sha512-FagtKFz74XrTl7y6HCzQpwDfXP0yhxe9lHLD1UZxjvZIcbyRz8zTFF/yYNfSfzU414eDwZ1SrO0Qvtyf+wFMQg==", + "dev": true, + "requires": { + "@humanwhocodes/object-schema": "^1.2.0", + "debug": "^4.1.1", + "minimatch": "^3.0.4" + }, + "dependencies": { + "debug": { + "version": "4.3.2", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.2.tgz", + "integrity": "sha512-mOp8wKcvj7XxC78zLgw/ZA+6TSgkoE2C/ienthhRD298T7UNwAg9diBpLRxC0mOezLl4B0xV7M0cCO6P/O0Xhw==", + "dev": true, + "requires": { + "ms": "2.1.2" + } + }, + "ms": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", + "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", + "dev": true + } + } + }, + "@humanwhocodes/object-schema": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/@humanwhocodes/object-schema/-/object-schema-1.2.0.tgz", + "integrity": "sha512-wdppn25U8z/2yiaT6YGquE6X8sSv7hNMWSXYSSU1jGv/yd6XqjXgTDJ8KP4NgjTXfJ3GbRjeeb8RTV7a/VpM+w==", + "dev": true + }, "@nodelib/fs.scandir": { "version": "2.1.5", "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", @@ -5400,6 +6591,13 @@ "dev": true, "requires": {} }, + "acorn-jsx": { + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz", + "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==", + "dev": true, + "requires": {} + }, "aggregate-error": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/aggregate-error/-/aggregate-error-3.1.0.tgz", @@ -5435,6 +6633,12 @@ "integrity": "sha1-l6ERlkmyEa0zaR2fn0hqjsn74KM=", "dev": true }, + "ansi-colors": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/ansi-colors/-/ansi-colors-4.1.1.tgz", + "integrity": "sha512-JoX0apGbHaUJBNl6yF+p6JAFYZ666/hhCGKN5t9QFjbJQKUU/g8MNbFDbvfrgKXvI1QpZplPOnwIo99lX/AAmA==", + "dev": true + }, "ansi-html-community": { "version": "0.0.8", "resolved": "https://registry.npmjs.org/ansi-html-community/-/ansi-html-community-0.0.8.tgz", @@ -5447,6 +6651,15 @@ "integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8=", "dev": true }, + "ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "requires": { + "color-convert": "^2.0.1" + } + }, "anymatch": { "version": "3.1.2", "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.2.tgz", @@ -5457,6 +6670,15 @@ "picomatch": "^2.0.4" } }, + "argparse": { + "version": "1.0.10", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", + "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", + "dev": true, + "requires": { + "sprintf-js": "~1.0.2" + } + }, "array-flatten": { "version": "2.1.2", "resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-2.1.2.tgz", @@ -5469,6 +6691,12 @@ "integrity": "sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw==", "dev": true }, + "astral-regex": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/astral-regex/-/astral-regex-2.0.0.tgz", + "integrity": "sha512-Z7tMw1ytTXt5jqMcOP+OQteU1VuNK9Y02uuJtKQ1Sv69jXQKKg5cibLwGJow8yzZP+eAc18EmLGPal0bp36rvQ==", + "dev": true + }, "async": { "version": "2.6.3", "resolved": "https://registry.npmjs.org/async/-/async-2.6.3.tgz", @@ -5616,6 +6844,12 @@ "get-intrinsic": "^1.0.2" } }, + "callsites": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", + "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", + "dev": true + }, "camel-case": { "version": "4.1.2", "resolved": "https://registry.npmjs.org/camel-case/-/camel-case-4.1.2.tgz", @@ -5655,6 +6889,27 @@ } } }, + "chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "requires": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "dependencies": { + "supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "requires": { + "has-flag": "^4.0.0" + } + } + } + }, "chokidar": { "version": "3.5.2", "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.5.2.tgz", @@ -5714,6 +6969,21 @@ "shallow-clone": "^3.0.0" } }, + "color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "requires": { + "color-name": "~1.1.4" + } + }, + "color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, "colord": { "version": "2.8.0", "resolved": "https://registry.npmjs.org/colord/-/colord-2.8.0.tgz", @@ -6012,6 +7282,12 @@ "regexp.prototype.flags": "^1.2.0" } }, + "deep-is": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz", + "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==", + "dev": true + }, "default-gateway": { "version": "6.0.3", "resolved": "https://registry.npmjs.org/default-gateway/-/default-gateway-6.0.3.tgz", @@ -6104,6 +7380,15 @@ "buffer-indexof": "^1.0.0" } }, + "doctrine": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-3.0.0.tgz", + "integrity": "sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w==", + "dev": true, + "requires": { + "esutils": "^2.0.2" + } + }, "dom-converter": { "version": "0.2.0", "resolved": "https://registry.npmjs.org/dom-converter/-/dom-converter-0.2.0.tgz", @@ -6172,6 +7457,12 @@ "integrity": "sha512-ZzkDcdzePeF4dhoGZQT77V2CyJOpwfTZEOg4h0x6R/jQhGt/rIRpbRyVreWLtD7B/WsVxo91URm2WxMKR9JQZA==", "dev": true }, + "emoji-regex": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", + "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", + "dev": true + }, "encodeurl": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.2.tgz", @@ -6188,6 +7479,15 @@ "tapable": "^2.2.0" } }, + "enquirer": { + "version": "2.3.6", + "resolved": "https://registry.npmjs.org/enquirer/-/enquirer-2.3.6.tgz", + "integrity": "sha512-yjNnPr315/FjS4zIsUxYguYUPP2e1NK4d7E7ZOLiyYCcbFBiTMyID+2wvm2w6+pZ/odMA7cRkjhsPbltwBOrLg==", + "dev": true, + "requires": { + "ansi-colors": "^4.1.1" + } + }, "entities": { "version": "2.2.0", "resolved": "https://registry.npmjs.org/entities/-/entities-2.2.0.tgz", @@ -6218,6 +7518,122 @@ "integrity": "sha1-Aljq5NPQwJdN4cFpGI7wBR0dGYg=", "dev": true }, + "escape-string-regexp": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", + "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", + "dev": true + }, + "eslint": { + "version": "7.32.0", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-7.32.0.tgz", + "integrity": "sha512-VHZ8gX+EDfz+97jGcgyGCyRia/dPOd6Xh9yPv8Bl1+SoaIwD+a/vlrOmGRUyOYu7MwUhc7CxqeaDZU13S4+EpA==", + "dev": true, + "requires": { + "@babel/code-frame": "7.12.11", + "@eslint/eslintrc": "^0.4.3", + "@humanwhocodes/config-array": "^0.5.0", + "ajv": "^6.10.0", + "chalk": "^4.0.0", + "cross-spawn": "^7.0.2", + "debug": "^4.0.1", + "doctrine": "^3.0.0", + "enquirer": "^2.3.5", + "escape-string-regexp": "^4.0.0", + "eslint-scope": "^5.1.1", + "eslint-utils": "^2.1.0", + "eslint-visitor-keys": "^2.0.0", + "espree": "^7.3.1", + "esquery": "^1.4.0", + "esutils": "^2.0.2", + "fast-deep-equal": "^3.1.3", + "file-entry-cache": "^6.0.1", + "functional-red-black-tree": "^1.0.1", + "glob-parent": "^5.1.2", + "globals": "^13.6.0", + "ignore": "^4.0.6", + "import-fresh": "^3.0.0", + "imurmurhash": "^0.1.4", + "is-glob": "^4.0.0", + "js-yaml": "^3.13.1", + "json-stable-stringify-without-jsonify": "^1.0.1", + "levn": "^0.4.1", + "lodash.merge": "^4.6.2", + "minimatch": "^3.0.4", + "natural-compare": "^1.4.0", + "optionator": "^0.9.1", + "progress": "^2.0.0", + "regexpp": "^3.1.0", + "semver": "^7.2.1", + "strip-ansi": "^6.0.0", + "strip-json-comments": "^3.1.0", + "table": "^6.0.9", + "text-table": "^0.2.0", + "v8-compile-cache": "^2.0.3" + }, + "dependencies": { + "ansi-regex": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", + "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", + "dev": true + }, + "debug": { + "version": "4.3.2", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.2.tgz", + "integrity": "sha512-mOp8wKcvj7XxC78zLgw/ZA+6TSgkoE2C/ienthhRD298T7UNwAg9diBpLRxC0mOezLl4B0xV7M0cCO6P/O0Xhw==", + "dev": true, + "requires": { + "ms": "2.1.2" + } + }, + "glob-parent": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", + "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", + "dev": true, + "requires": { + "is-glob": "^4.0.1" + } + }, + "ignore": { + "version": "4.0.6", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-4.0.6.tgz", + "integrity": "sha512-cyFDKrqc/YdcWFniJhzI42+AzS+gNwmUzOSFcRCQYwySuBBBy/KjuxWLZ/FHEH6Moq1NizMOBWyTcv8O4OZIMg==", + "dev": true + }, + "ms": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", + "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", + "dev": true + }, + "strip-ansi": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "dev": true, + "requires": { + "ansi-regex": "^5.0.1" + } + } + } + }, + "eslint-plugin-unused-imports": { + "version": "1.1.5", + "resolved": "https://registry.npmjs.org/eslint-plugin-unused-imports/-/eslint-plugin-unused-imports-1.1.5.tgz", + "integrity": "sha512-TeV8l8zkLQrq9LBeYFCQmYVIXMjfHgdRQLw7dEZp4ZB3PeR10Y5Uif11heCsHRmhdRIYMoewr1d9ouUHLbLHew==", + "dev": true, + "requires": { + "eslint-rule-composer": "^0.3.0" + } + }, + "eslint-rule-composer": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/eslint-rule-composer/-/eslint-rule-composer-0.3.0.tgz", + "integrity": "sha512-bt+Sh8CtDmn2OajxvNO+BX7Wn4CIWMpTRm3MaiKPCQcnnlm0CS2mhui6QaoeQugs+3Kj2ESKEEGJUdVafwhiCg==", + "dev": true + }, "eslint-scope": { "version": "5.1.1", "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-5.1.1.tgz", @@ -6228,6 +7644,77 @@ "estraverse": "^4.1.1" } }, + "eslint-utils": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/eslint-utils/-/eslint-utils-2.1.0.tgz", + "integrity": "sha512-w94dQYoauyvlDc43XnGB8lU3Zt713vNChgt4EWwhXAP2XkBvndfxF0AgIqKOOasjPIPzj9JqgwkwbCYD0/V3Zg==", + "dev": true, + "requires": { + "eslint-visitor-keys": "^1.1.0" + }, + "dependencies": { + "eslint-visitor-keys": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-1.3.0.tgz", + "integrity": "sha512-6J72N8UNa462wa/KFODt/PJ3IU60SDpC3QXC1Hjc1BXXpfL2C9R5+AU7jhe0F6GREqVMh4Juu+NY7xn+6dipUQ==", + "dev": true + } + } + }, + "eslint-visitor-keys": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-2.1.0.tgz", + "integrity": "sha512-0rSmRBzXgDzIsD6mGdJgevzgezI534Cer5L/vyMX0kHzT/jiB43jRhd9YUlMGYLQy2zprNmoT8qasCGtY+QaKw==", + "dev": true + }, + "espree": { + "version": "7.3.1", + "resolved": "https://registry.npmjs.org/espree/-/espree-7.3.1.tgz", + "integrity": "sha512-v3JCNCE64umkFpmkFGqzVKsOT0tN1Zr+ueqLZfpV1Ob8e+CEgPWa+OxCoGH3tnhimMKIaBm4m/vaRpJ/krRz2g==", + "dev": true, + "requires": { + "acorn": "^7.4.0", + "acorn-jsx": "^5.3.1", + "eslint-visitor-keys": "^1.3.0" + }, + "dependencies": { + "acorn": { + "version": "7.4.1", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-7.4.1.tgz", + "integrity": "sha512-nQyp0o1/mNdbTO1PO6kHkwSrmgZ0MT/jCCpNiwbUjGoRN4dlBhqJtoQuCnEOKzgTVwg0ZWiCoQy6SxMebQVh8A==", + "dev": true + }, + "eslint-visitor-keys": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-1.3.0.tgz", + "integrity": "sha512-6J72N8UNa462wa/KFODt/PJ3IU60SDpC3QXC1Hjc1BXXpfL2C9R5+AU7jhe0F6GREqVMh4Juu+NY7xn+6dipUQ==", + "dev": true + } + } + }, + "esprima": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", + "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", + "dev": true + }, + "esquery": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.4.0.tgz", + "integrity": "sha512-cCDispWt5vHHtwMY2YrAQ4ibFkAL8RbH5YGBnZBc90MolvvfkkQcJro/aZiAQUlQ3qgrYS6D6v8Gc5G5CQsc9w==", + "dev": true, + "requires": { + "estraverse": "^5.1.0" + }, + "dependencies": { + "estraverse": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.2.0.tgz", + "integrity": "sha512-BxbNGGNm0RyRYvUdHpIwv9IWzeM9XClbOxwoATuFdOE7ZE6wHL+HQ5T8hoPM+zHvmKzzsEqhgy0GrQ5X13afiQ==", + "dev": true + } + } + }, "esrecurse": { "version": "4.3.0", "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz", @@ -6251,6 +7738,12 @@ "integrity": "sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==", "dev": true }, + "esutils": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", + "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", + "dev": true + }, "etag": { "version": "1.8.1", "resolved": "https://registry.npmjs.org/etag/-/etag-1.8.1.tgz", @@ -6374,6 +7867,12 @@ "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", "dev": true }, + "fast-levenshtein": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", + "integrity": "sha1-PYpcZog6FqMMqGQ+hR8Zuqd5eRc=", + "dev": true + }, "fastest-levenshtein": { "version": "1.0.12", "resolved": "https://registry.npmjs.org/fastest-levenshtein/-/fastest-levenshtein-1.0.12.tgz", @@ -6398,6 +7897,15 @@ "websocket-driver": ">=0.5.1" } }, + "file-entry-cache": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-6.0.1.tgz", + "integrity": "sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg==", + "dev": true, + "requires": { + "flat-cache": "^3.0.4" + } + }, "fill-range": { "version": "7.0.1", "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", @@ -6432,6 +7940,22 @@ "path-exists": "^4.0.0" } }, + "flat-cache": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-3.0.4.tgz", + "integrity": "sha512-dm9s5Pw7Jc0GvMYbshN6zchCA9RgQlzzEZX3vylR9IqFfS8XciblUXOKfW6SiuJ0e13eDYZoZV5wdrev7P3Nwg==", + "dev": true, + "requires": { + "flatted": "^3.1.0", + "rimraf": "^3.0.2" + } + }, + "flatted": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.2.2.tgz", + "integrity": "sha512-JaTY/wtrcSyvXJl4IMFHPKyFur1sE9AUqc0QnhOaJ0CxHtAoIV8pYDzeEfAaNEtGkOfq4gr3LBFmdXW5mOQFnA==", + "dev": true + }, "follow-redirects": { "version": "1.14.4", "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.14.4.tgz", @@ -6475,6 +7999,12 @@ "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==", "dev": true }, + "functional-red-black-tree": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/functional-red-black-tree/-/functional-red-black-tree-1.0.1.tgz", + "integrity": "sha1-GwqzvVU7Kg1jmdKcDj6gslIHgyc=", + "dev": true + }, "get-intrinsic": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.1.1.tgz", @@ -6521,6 +8051,15 @@ "integrity": "sha512-lkX1HJXwyMcprw/5YUZc2s7DrpAiHB21/V+E1rHUrVNokkvB6bqMzT0VfV6/86ZNabt1k14YOIaT7nDvOX3Iiw==", "dev": true }, + "globals": { + "version": "13.11.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-13.11.0.tgz", + "integrity": "sha512-08/xrJ7wQjK9kkkRoI3OFUBbLx4f+6x3SGwcPvQ0QH6goFDrOU2oyAWrmh3dJezu65buo+HBMzAMQy6rovVC3g==", + "dev": true, + "requires": { + "type-fest": "^0.20.2" + } + }, "globby": { "version": "11.0.4", "resolved": "https://registry.npmjs.org/globby/-/globby-11.0.4.tgz", @@ -6728,6 +8267,12 @@ "integrity": "sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==", "dev": true }, + "husky": { + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/husky/-/husky-7.0.2.tgz", + "integrity": "sha512-8yKEWNX4z2YsofXAMT7KvA1g8p+GxtB1ffV8XtpAEGuXNAbCV5wdNKH+qTpw8SM9fh4aMPDR+yQuKfgnreyZlg==", + "dev": true + }, "iconv-lite": { "version": "0.4.24", "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", @@ -6750,6 +8295,24 @@ "integrity": "sha512-BMpfD7PpiETpBl/A6S498BaIJ6Y/ABT93ETbby2fP00v4EbvPBXWEoaR1UBPKs3iR53pJY7EtZk5KACI57i1Uw==", "dev": true }, + "import-fresh": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.0.tgz", + "integrity": "sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw==", + "dev": true, + "requires": { + "parent-module": "^1.0.0", + "resolve-from": "^4.0.0" + }, + "dependencies": { + "resolve-from": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", + "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==", + "dev": true + } + } + }, "import-local": { "version": "3.0.2", "resolved": "https://registry.npmjs.org/import-local/-/import-local-3.0.2.tgz", @@ -6760,6 +8323,12 @@ "resolve-cwd": "^3.0.0" } }, + "imurmurhash": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", + "integrity": "sha1-khi5srkoojixPcT7a21XbyMUU+o=", + "dev": true + }, "indent-string": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/indent-string/-/indent-string-4.0.0.tgz", @@ -6881,6 +8450,12 @@ "integrity": "sha1-qIwCU1eR8C7TfHahueqXc8gz+MI=", "dev": true }, + "is-fullwidth-code-point": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", + "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", + "dev": true + }, "is-glob": { "version": "4.0.1", "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.1.tgz", @@ -6992,6 +8567,22 @@ "supports-color": "^8.0.0" } }, + "js-tokens": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", + "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", + "dev": true + }, + "js-yaml": { + "version": "3.14.1", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.1.tgz", + "integrity": "sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==", + "dev": true, + "requires": { + "argparse": "^1.0.7", + "esprima": "^4.0.0" + } + }, "json-parse-better-errors": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/json-parse-better-errors/-/json-parse-better-errors-1.0.2.tgz", @@ -7004,12 +8595,28 @@ "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", "dev": true }, + "json-stable-stringify-without-jsonify": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz", + "integrity": "sha1-nbe1lJatPzz+8wp1FC0tkwrXJlE=", + "dev": true + }, "kind-of": { "version": "6.0.3", "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.3.tgz", "integrity": "sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw==", "dev": true }, + "levn": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz", + "integrity": "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==", + "dev": true, + "requires": { + "prelude-ls": "^1.2.1", + "type-check": "~0.4.0" + } + }, "lilconfig": { "version": "2.0.3", "resolved": "https://registry.npmjs.org/lilconfig/-/lilconfig-2.0.3.tgz", @@ -7037,12 +8644,30 @@ "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==", "dev": true }, + "lodash.clonedeep": { + "version": "4.5.0", + "resolved": "https://registry.npmjs.org/lodash.clonedeep/-/lodash.clonedeep-4.5.0.tgz", + "integrity": "sha1-4j8/nE+Pvd6HJSnBBxhXoIblzO8=", + "dev": true + }, "lodash.memoize": { "version": "4.1.2", "resolved": "https://registry.npmjs.org/lodash.memoize/-/lodash.memoize-4.1.2.tgz", "integrity": "sha1-vMbEmkKihA7Zl/Mj6tpezRguC/4=", "dev": true }, + "lodash.merge": { + "version": "4.6.2", + "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz", + "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==", + "dev": true + }, + "lodash.truncate": { + "version": "4.4.2", + "resolved": "https://registry.npmjs.org/lodash.truncate/-/lodash.truncate-4.4.2.tgz", + "integrity": "sha1-WjUNoLERO4N+z//VgSy+WNbq4ZM=", + "dev": true + }, "lodash.uniq": { "version": "4.5.0", "resolved": "https://registry.npmjs.org/lodash.uniq/-/lodash.uniq-4.5.0.tgz", @@ -7228,6 +8853,12 @@ "integrity": "sha512-gSu9VZ2HtmoKYe/lmyPFES5nknFrHa+/DT9muUFWFMi6Jh9E1I7bkvlQ8xxf1Kos9pi9o8lBnIOkatMhKX/YUw==", "dev": true }, + "natural-compare": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", + "integrity": "sha1-Sr6/7tdUHywnrPspvbvRXI1bpPc=", + "dev": true + }, "negotiator": { "version": "0.6.2", "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.2.tgz", @@ -7358,6 +8989,20 @@ "is-wsl": "^2.2.0" } }, + "optionator": { + "version": "0.9.1", + "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.1.tgz", + "integrity": "sha512-74RlY5FCnhq4jRxVUPKDaRwrVNXMqsGsiW6AJw4XK8hmtm10wC0ypZBLw5IIp85NZMr91+qd1RvvENwg7jjRFw==", + "dev": true, + "requires": { + "deep-is": "^0.1.3", + "fast-levenshtein": "^2.0.6", + "levn": "^0.4.1", + "prelude-ls": "^1.2.1", + "type-check": "^0.4.0", + "word-wrap": "^1.2.3" + } + }, "p-event": { "version": "4.2.0", "resolved": "https://registry.npmjs.org/p-event/-/p-event-4.2.0.tgz", @@ -7446,6 +9091,15 @@ "tslib": "^2.0.3" } }, + "parent-module": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz", + "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==", + "dev": true, + "requires": { + "callsites": "^3.0.0" + } + }, "parseurl": { "version": "1.3.3", "resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz", @@ -7866,6 +9520,12 @@ "integrity": "sha512-97DXOFbQJhk71ne5/Mt6cOu6yxsSfM0QGQyl0L25Gca4yGWEGJaig7l7gbCX623VqTBNGLRLaVUCnNkcedlRSQ==", "dev": true }, + "prelude-ls": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz", + "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==", + "dev": true + }, "pretty-error": { "version": "3.0.4", "resolved": "https://registry.npmjs.org/pretty-error/-/pretty-error-3.0.4.tgz", @@ -7882,6 +9542,12 @@ "integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==", "dev": true }, + "progress": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/progress/-/progress-2.0.3.tgz", + "integrity": "sha512-7PiHtLll5LdnKIMw100I+8xJXR5gW2QwWYkT6iJva0bXitZKa/XMrSbdmg3r2Xnaidz9Qumd0VPaMrZlF9V9sA==", + "dev": true + }, "proxy-addr": { "version": "2.0.7", "resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.7.tgz", @@ -7998,6 +9664,12 @@ "define-properties": "^1.1.3" } }, + "regexpp": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/regexpp/-/regexpp-3.2.0.tgz", + "integrity": "sha512-pq2bWo9mVD43nbts2wGv17XLiNLya+GklZ8kaDLV2Z08gDCsGpnKn9BFMepvWuHCbyVvY7J5o5+BVvoQbmlJLg==", + "dev": true + }, "relateurl": { "version": "0.2.7", "resolved": "https://registry.npmjs.org/relateurl/-/relateurl-0.2.7.tgz", @@ -8017,6 +9689,12 @@ "strip-ansi": "^3.0.1" } }, + "require-from-string": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/require-from-string/-/require-from-string-2.0.2.tgz", + "integrity": "sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==", + "dev": true + }, "requires-port": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/requires-port/-/requires-port-1.0.0.tgz", @@ -8252,6 +9930,17 @@ "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", "dev": true }, + "slice-ansi": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/slice-ansi/-/slice-ansi-4.0.0.tgz", + "integrity": "sha512-qMCMfhY040cVHT43K9BFygqYbUPFZKHOg7K73mtTWJRb8pyP3fzf4Ixd5SzdEJQ6MRUg/WBnOLxghZtKKurENQ==", + "dev": true, + "requires": { + "ansi-styles": "^4.0.0", + "astral-regex": "^2.0.0", + "is-fullwidth-code-point": "^3.0.0" + } + }, "sockjs": { "version": "0.3.21", "resolved": "https://registry.npmjs.org/sockjs/-/sockjs-0.3.21.tgz", @@ -8352,6 +10041,12 @@ } } }, + "sprintf-js": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", + "integrity": "sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw=", + "dev": true + }, "stable": { "version": "0.1.8", "resolved": "https://registry.npmjs.org/stable/-/stable-0.1.8.tgz", @@ -8373,6 +10068,34 @@ "safe-buffer": "~5.2.0" } }, + "string-width": { + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", + "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", + "dev": true, + "requires": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" + }, + "dependencies": { + "ansi-regex": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", + "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", + "dev": true + }, + "strip-ansi": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "dev": true, + "requires": { + "ansi-regex": "^5.0.1" + } + } + } + }, "strip-ansi": { "version": "3.0.1", "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", @@ -8388,6 +10111,12 @@ "integrity": "sha512-BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA==", "dev": true }, + "strip-json-comments": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", + "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", + "dev": true + }, "style-loader": { "version": "3.3.0", "resolved": "https://registry.npmjs.org/style-loader/-/style-loader-3.3.0.tgz", @@ -8443,6 +10172,55 @@ } } }, + "table": { + "version": "6.7.2", + "resolved": "https://registry.npmjs.org/table/-/table-6.7.2.tgz", + "integrity": "sha512-UFZK67uvyNivLeQbVtkiUs8Uuuxv24aSL4/Vil2PJVtMgU8Lx0CYkP12uCGa3kjyQzOSgV1+z9Wkb82fCGsO0g==", + "dev": true, + "requires": { + "ajv": "^8.0.1", + "lodash.clonedeep": "^4.5.0", + "lodash.truncate": "^4.4.2", + "slice-ansi": "^4.0.0", + "string-width": "^4.2.3", + "strip-ansi": "^6.0.1" + }, + "dependencies": { + "ajv": { + "version": "8.6.3", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.6.3.tgz", + "integrity": "sha512-SMJOdDP6LqTkD0Uq8qLi+gMwSt0imXLSV080qFVwJCpH9U6Mb+SUGHAXM0KNbcBPguytWyvFxcHgMLe2D2XSpw==", + "dev": true, + "requires": { + "fast-deep-equal": "^3.1.1", + "json-schema-traverse": "^1.0.0", + "require-from-string": "^2.0.2", + "uri-js": "^4.2.2" + } + }, + "ansi-regex": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", + "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", + "dev": true + }, + "json-schema-traverse": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", + "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==", + "dev": true + }, + "strip-ansi": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "dev": true, + "requires": { + "ansi-regex": "^5.0.1" + } + } + } + }, "tapable": { "version": "2.2.1", "resolved": "https://registry.npmjs.org/tapable/-/tapable-2.2.1.tgz", @@ -8509,6 +10287,12 @@ } } }, + "text-table": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/text-table/-/text-table-0.2.0.tgz", + "integrity": "sha1-f17oI66AUgfACvLfSoTsP8+lcLQ=", + "dev": true + }, "thunky": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/thunky/-/thunky-1.1.0.tgz", @@ -8542,6 +10326,21 @@ "integrity": "sha512-77EbyPPpMz+FRFRuAFlWMtmgUWGe9UOG2Z25NqCwiIjRhOf5iKGuzSe5P2w1laq+FkRy4p+PCuVkJSGkzTEKVw==", "dev": true }, + "type-check": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz", + "integrity": "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==", + "dev": true, + "requires": { + "prelude-ls": "^1.2.1" + } + }, + "type-fest": { + "version": "0.20.2", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz", + "integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==", + "dev": true + }, "type-is": { "version": "1.6.18", "resolved": "https://registry.npmjs.org/type-is/-/type-is-1.6.18.tgz", @@ -8844,6 +10643,12 @@ "integrity": "sha512-JcKqAHLPxcdb9KM49dufGXn2x3ssnfjbcaQdLlfZsL9rH9wgDQjUtDxbo8NE0F6SFvydeu1VhZe7hZuHsB2/pw==", "dev": true }, + "word-wrap": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.3.tgz", + "integrity": "sha512-Hz/mrNwitNRh/HUAtM/VT/5VH+ygD6DV7mYKZAtHOrbs8U7lvPS6xf7EJKMF0uW1KJCl0H701g3ZGus+muE5vQ==", + "dev": true + }, "wrappy": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", diff --git a/package.json b/package.json index fdc45bb8..d148ae57 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,9 @@ "main": "index.js", "scripts": { "start": "webpack serve --open --config webpack.dev.js", - "build": "webpack --config webpack.prod.js" + "build": "webpack --config webpack.prod.js", + "lint": "eslint --fix --ext .js .", + "prepare": "husky install" }, "keywords": [ "startpage", @@ -29,7 +31,10 @@ "copy-webpack-plugin": "^9.0.1", "css-loader": "^6.3.0", "css-minimizer-webpack-plugin": "^3.0.2", + "eslint": "^7.32.0", + "eslint-plugin-unused-imports": "^1.1.5", "html-webpack-plugin": "^5.3.1", + "husky": "^7.0.2", "mini-css-extract-plugin": "^2.2.0", "moment": "^2.29.1", "sortablejs": "^1.13.0", diff --git a/src/component/accentPresetButton/index.js b/src/component/accentPresetButton/index.js index 7e89b27c..bd72540b 100644 --- a/src/component/accentPresetButton/index.js +++ b/src/component/accentPresetButton/index.js @@ -1,6 +1,5 @@ import { state } from '../state'; import { data } from '../data'; -import { theme } from '../theme'; import { toolbar } from '../toolbar'; import { themeSetting } from '../menuContent/themeSetting'; @@ -8,15 +7,11 @@ import { Button } from '../button'; import { node } from '../../utility/node'; import { convertColor } from '../../utility/convertColor'; -import { isValidString } from '../../utility/isValidString'; -import { complexNode } from '../../utility/complexNode'; import { applyCSSVar } from '../../utility/applyCSSVar'; -import { applyCSSClass } from '../../utility/applyCSSClass'; -import { applyCSSState } from '../../utility/applyCSSState'; import './index.css'; -export const AccentPresetButton = function({ presetData = false } = {}) { +export const AccentPresetButton = function ({ presetData = false } = {}) { this.name = () => { @@ -24,7 +19,7 @@ export const AccentPresetButton = function({ presetData = false } = {}) { if (presetData.prefix) { fullName = presetData.prefix + ' ' + presetData.name.toLowerCase(); - }; + } return fullName; diff --git a/src/component/alert/index.js b/src/component/alert/index.js index a30c515b..544ec8bf 100644 --- a/src/component/alert/index.js +++ b/src/component/alert/index.js @@ -6,7 +6,7 @@ import { node } from '../../utility/node'; import './index.css'; -export const Alert = function({ +export const Alert = function ({ children = [], iconName = false } = {}) { @@ -29,7 +29,7 @@ export const Alert = function({ this.element.alert.appendChild(this.element.header); - }; + } this.element.body.appendChild(this.element.message); diff --git a/src/component/appName/index.js b/src/component/appName/index.js deleted file mode 100644 index abb126a6..00000000 --- a/src/component/appName/index.js +++ /dev/null @@ -1 +0,0 @@ -export const appName = 'nightTab'; diff --git a/src/component/bookmark/index.js b/src/component/bookmark/index.js index 80f25be3..54f69dec 100644 --- a/src/component/bookmark/index.js +++ b/src/component/bookmark/index.js @@ -3,7 +3,6 @@ import { data } from '../data'; import { layout } from '../layout'; import { group } from '../group'; import { header } from '../header'; -import { bookmarkDefault } from '../bookmarkDefault'; import { bookmarkPreset } from '../bookmarkPreset'; import { groupAndBookmark } from '../groupAndBookmark'; @@ -15,12 +14,10 @@ import { StagedGroup } from '../stagedGroup'; import { Modal } from '../modal'; import { node } from '../../utility/node'; -import { clearChildNode } from '../../utility/clearChildNode'; import { applyCSSVar } from '../../utility/applyCSSVar'; import { applyCSSClass } from '../../utility/applyCSSClass'; import { applyCSSState } from '../../utility/applyCSSState'; import { set } from '../../utility/set'; -import { get } from '../../utility/get'; import { sortArrayOfObject } from '../../utility/sortArrayOfObject'; import Sortable from 'sortablejs'; @@ -80,14 +77,14 @@ bookmark.item = { if (bookmarkData.propagate.display || bookmarkData.propagate.layout || bookmarkData.propagate.theme) { - bookmark.all.forEach((item, i) => { + bookmark.all.forEach((item) => { - item.items.forEach((item, i) => { + item.items.forEach((item) => { if (bookmarkData.propagate.display) { item.display.visual.show = bookmarkData.link.display.visual.show; item.display.name.show = bookmarkData.link.display.name.show; - }; + } if (bookmarkData.propagate.layout) { item.display.visual.size = bookmarkData.link.display.visual.size; @@ -98,27 +95,27 @@ bookmark.item = { item.display.alignment = bookmarkData.link.display.alignment; item.display.direction = bookmarkData.link.display.direction; item.display.order = bookmarkData.link.display.order; - }; + } if (bookmarkData.propagate.theme) { item.accent = bookmarkData.link.accent; item.color = bookmarkData.link.color; item.border = bookmarkData.link.border; item.display.visual.shadow = bookmarkData.link.display.visual.shadow; - }; + } }); }); - }; + } }, applyVar: (path, value) => { - bookmark.all.forEach((item, i) => { + bookmark.all.forEach((item) => { - item.items.forEach((item, i) => { + item.items.forEach((item) => { set({ object: item, path: path, value: value }); @@ -130,28 +127,28 @@ bookmark.item = { sort: { letter: () => { - bookmark.all.forEach((item, i) => { + bookmark.all.forEach((item) => { item.items = sortArrayOfObject(item.items, 'display.visual.letter.text'); }); }, icon: () => { - bookmark.all.forEach((item, i) => { + bookmark.all.forEach((item) => { item.items = sortArrayOfObject(item.items, 'display.visual.icon.name'); }); }, name: () => { - bookmark.all.forEach((item, i) => { + bookmark.all.forEach((item) => { item.items = sortArrayOfObject(item.items, 'display.name.text'); }); } } }, - render: (groupIndex) => { + render: () => { const addBookmarkToGroup = (bookmarkData, groupIndex, bookmarkIndex) => { @@ -205,15 +202,15 @@ bookmark.item = { addBookmarkToGroup(item, groupIndex, bookmarkIndex); - }; + } }); - }; + } }); - }; + } } else { @@ -238,11 +235,11 @@ bookmark.item = { addEmptyGroup(groupIndex); - }; + } }); - }; + } }, clear: () => { @@ -273,7 +270,7 @@ bookmark.edit = { bookmark.edit.close(); } else { bookmark.edit.open(); - }; + } }, render: () => { @@ -282,17 +279,17 @@ bookmark.edit = { if (bookmark.tile.current.length > 0) { - bookmark.tile.current.forEach((item, i) => { + bookmark.tile.current.forEach((item) => { if (state.get.current().bookmark.edit) { item.control.enable(); } else { item.control.disable(); - }; + } }); - }; + } } }; @@ -301,8 +298,8 @@ bookmark.direction = { mod: { vertical: () => { - bookmark.all.forEach((item, i) => { - item.items.forEach((item, i) => { + bookmark.all.forEach((item) => { + item.items.forEach((item) => { item.display.direction = 'vertical'; @@ -312,8 +309,8 @@ bookmark.direction = { }, horizontal: () => { - bookmark.all.forEach((item, i) => { - item.items.forEach((item, i) => { + bookmark.all.forEach((item) => { + item.items.forEach((item) => { item.display.direction = 'horizontal'; @@ -343,11 +340,11 @@ bookmark.add = { newBookmarkData.position.destination.group = groupIndex; newBookmarkData.position.destination.item = bookmark.all[groupIndex].items.length; - }; + } if (!bookmark.all.length > 0) { newBookmarkData.group.destination = 'new'; - }; + } const bookmarkForm = new BookmarkForm({ bookmarkData: newBookmarkData }); @@ -374,8 +371,7 @@ bookmark.add = { successAction: () => { switch (newBookmarkData.group.destination) { - case 'new': - + case 'new': { const newGroupData = new StagedGroup(); newGroupData.group.name.text = newBookmarkData.group.name; @@ -389,8 +385,9 @@ bookmark.add = { layout.area.assemble(); break; + } - }; + } newBookmarkData.link.timestamp = new Date().getTime(); @@ -427,7 +424,7 @@ bookmark.sort = { bookmark.sort.sortable = []; - group.area.current.forEach((item, i) => { + group.area.current.forEach((item) => { bookmark.sort.sortable.push(Sortable.create(item.element.body, { handle: '.bookmark-control-sort', @@ -473,7 +470,7 @@ bookmark.count = () => { let count = 0; - bookmark.all.forEach((item, i) => { count = count + item.items.length }); + bookmark.all.forEach((item) => { count = count + item.items.length; }); return count; @@ -489,7 +486,7 @@ bookmark.restore = (dataToRestore) => { bookmark.append = (dataToAppend) => { - dataToAppend.bookmark.forEach((item, i) => { + dataToAppend.bookmark.forEach((item) => { bookmark.all.push(item); @@ -505,7 +502,7 @@ bookmark.reset = () => { const groupIndex = i; - item.items.forEach((item, i) => { + item.items.forEach((item) => { const newBookmarkData = new StagedBookmark(); @@ -531,7 +528,7 @@ bookmark.reset = () => { newBookmarkData.position.destination.item = i; - bookmark.item.mod.edit(newBookmarkData) + bookmark.item.mod.edit(newBookmarkData); }); diff --git a/src/component/bookmarkEmpty/index.js b/src/component/bookmarkEmpty/index.js index 02fe0988..3b6c6643 100644 --- a/src/component/bookmarkEmpty/index.js +++ b/src/component/bookmarkEmpty/index.js @@ -1,4 +1,3 @@ -import { state } from '../state'; import { bookmark } from '../bookmark'; import { group } from '../group'; @@ -8,7 +7,7 @@ import { node } from '../../utility/node'; import './index.css'; -export const BookmarkEmpty = function() { +export const BookmarkEmpty = function () { this.element = { empty: node('div|class:bookmark-empty'), diff --git a/src/component/bookmarkForm/index.js b/src/component/bookmarkForm/index.js index c29c0195..ce3dcee3 100644 --- a/src/component/bookmarkForm/index.js +++ b/src/component/bookmarkForm/index.js @@ -12,29 +12,25 @@ import { BookmarkPreview } from '../bookmarkPreview'; import { Alert } from '../alert'; import { Control_helperText } from '../control/helperText'; -import { Control_inputButton } from '../control/inputButton'; import { Control_groupText } from '../control/groupText'; import { Control_radio } from '../control/radio'; import { Control_radioGrid } from '../control/radioGrid'; import { Control_checkbox } from '../control/checkbox'; -import { Control_slider } from '../control/slider'; import { Control_sliderSlim } from '../control/sliderSlim'; import { Control_colorMixer } from '../control/colorMixer'; -import { Control_color } from '../control/color'; import { Control_text } from '../control/text'; import { Control_select } from '../control/select'; import { node } from '../../utility/node'; import { complexNode } from '../../utility/complexNode'; import { isValidString } from '../../utility/isValidString'; -import { trimString } from '../../utility/trimString'; import { ordinalNumber } from '../../utility/ordinalNumber'; import { randomString } from '../../utility/randomString'; import { randomNumber } from '../../utility/randomNumber'; import './index.css'; -export const BookmarkForm = function({ +export const BookmarkForm = function ({ bookmarkData = false } = {}) { @@ -58,7 +54,7 @@ export const BookmarkForm = function({ }); - }; + } return option; @@ -74,19 +70,19 @@ export const BookmarkForm = function({ if (bookmarkData.type.new || !(bookmarkData.position.origin.group === bookmarkData.position.destination.group)) { count++; - }; + } for (var i = 1; i <= count; i++) { option.push(ordinalNumber(i)); - }; + } } else { option.push(ordinalNumber(1)); - }; + } return option; @@ -591,9 +587,9 @@ export const BookmarkForm = function({ bookmarkData.position.destination.item = bookmark.all[bookmarkData.position.destination.group].items.length - 1; } else { bookmarkData.position.destination.item = bookmark.all[bookmarkData.position.destination.group].items.length; - }; + } - }; + } this.control.group.position.item.updateOption(this.selectOption.item(), bookmarkData.position.destination.item); @@ -1086,7 +1082,7 @@ export const BookmarkForm = function({ case 'letter': this.control.bookmark.display.visual.letter.text.enable(); this.control.bookmark.display.visual.icon.text.disable(); - this.control.bookmark.display.visual.icon.preview.disable() + this.control.bookmark.display.visual.icon.preview.disable(); this.control.bookmark.display.visual.icon.remove.disable(); this.control.bookmark.display.visual.image.url.disable(); break; @@ -1102,11 +1098,11 @@ export const BookmarkForm = function({ case 'image': this.control.bookmark.display.visual.letter.text.disable(); this.control.bookmark.display.visual.icon.text.disable(); - this.control.bookmark.display.visual.icon.preview.disable() + this.control.bookmark.display.visual.icon.preview.disable(); this.control.bookmark.display.visual.icon.remove.disable(); this.control.bookmark.display.visual.image.url.enable(); break; - }; + } } else { this.control.bookmark.display.visual.type.disable(); this.control.bookmark.display.visual.letter.text.disable(); @@ -1115,7 +1111,7 @@ export const BookmarkForm = function({ this.control.bookmark.display.visual.icon.remove.disable(); this.control.bookmark.display.visual.image.url.disable(); this.control.bookmark.display.visual.size.disable(); - }; + } if (bookmarkData.link.display.name.show) { this.control.bookmark.display.name.text.enable(); @@ -1123,7 +1119,7 @@ export const BookmarkForm = function({ } else { this.control.bookmark.display.name.text.disable(); this.control.bookmark.display.name.size.disable(); - }; + } if (bookmarkData.link.display.visual.show || bookmarkData.link.display.name.show) { this.control.bookmark.display.translate.label.classList.remove('disabled'); @@ -1137,7 +1133,7 @@ export const BookmarkForm = function({ this.control.bookmark.display.translate.y.disable(); this.control.bookmark.display.rotate.disable(); this.control.bookmark.display.alignment.disable(); - }; + } if (bookmarkData.link.display.visual.show && bookmarkData.link.display.name.show) { this.control.bookmark.display.direction.enable(); @@ -1147,7 +1143,7 @@ export const BookmarkForm = function({ this.control.bookmark.display.direction.disable(); this.control.bookmark.display.order.disable(); this.control.bookmark.display.gutter.disable(); - }; + } switch (bookmarkData.link.display.visual.type) { case 'letter': @@ -1160,7 +1156,7 @@ export const BookmarkForm = function({ this.control.bookmark.display.visual.shadow.size.disable(); this.helper.bookmark.display.visual.shadow.size.disable(); break; - }; + } switch (bookmarkData.link.color.by) { case 'theme': @@ -1170,7 +1166,7 @@ export const BookmarkForm = function({ case 'custom': this.control.bookmark.color.color.enable(); break; - }; + } switch (bookmarkData.link.accent.by) { case 'theme': @@ -1180,7 +1176,7 @@ export const BookmarkForm = function({ case 'custom': this.control.bookmark.accent.color.enable(); break; - }; + } if (bookmarkData.link.background.show) { this.control.bookmark.background.type.enable(); @@ -1200,7 +1196,7 @@ export const BookmarkForm = function({ this.control.bookmark.background.video.url.enable(); this.helper.bookmark.background.video.enable(); break; - }; + } } else { this.control.bookmark.background.type.disable(); this.control.bookmark.background.image.url.disable(); @@ -1208,7 +1204,7 @@ export const BookmarkForm = function({ this.control.bookmark.background.video.url.disable(); this.helper.bookmark.background.video.disable(); this.control.bookmark.background.opacity.disable(); - }; + } switch (bookmarkData.group.destination) { case 'existing': @@ -1224,13 +1220,13 @@ export const BookmarkForm = function({ this.control.group.name.enable(); this.control.group.random.enable(); break; - }; + } if (!bookmark.all.length > 0) { this.control.group.destination.radioSet[0].radio.disable(); } else { this.control.group.destination.radioSet[0].radio.enable(); - }; + } }; @@ -1248,7 +1244,7 @@ export const BookmarkForm = function({ this.control.bookmark.display.visual.icon.preview.update(node('span|class:bookmark-form-icon ' + bookmarkData.link.display.visual.icon.prefix + ' fa-' + bookmarkData.link.display.visual.icon.name)); } else { this.control.bookmark.display.visual.icon.preview.update(); - }; + } this.control.bookmark.display.visual.image.url.update(); @@ -1278,7 +1274,7 @@ export const BookmarkForm = function({ this.element.form.addEventListener('keydown', (event) => { - if (event.keyCode == 13) { event.preventDefault(); return false; }; + if (event.keyCode == 13) { event.preventDefault(); return false; } }); @@ -1299,7 +1295,7 @@ export const BookmarkForm = function({ bookmarkData.link.display.visual.icon.prefix = 'fas'; } else if (suggestData.styles.includes('brands')) { bookmarkData.link.display.visual.icon.prefix = 'fab'; - }; + } this.preview.update.assemble(bookmarkData); this.update(); diff --git a/src/component/bookmarkPreset/index.js b/src/component/bookmarkPreset/index.js index 7f8cfd96..dce55043 100644 --- a/src/component/bookmarkPreset/index.js +++ b/src/component/bookmarkPreset/index.js @@ -1,161 +1,161 @@ - const bookmarkPreset = {}; +const bookmarkPreset = {}; - bookmarkPreset.get = () => { - return [{ - name: { text: 'Cool stuff', show: true }, - collapse: false, - toolbar: { openAll: { show: true }, collapse: { show: true } }, - items: [{ - url: 'https://zombiefox.github.io/awesomeSheet/', - display: { - alignment: 'center-center', - direction: 'vertical', - order: 'visual-name', - rotate: 0, - translate: { x: 0, y: 0 }, - gutter: 25, - name: { show: true, text: 'awesomeSheet', size: 7 }, - visual: { show: true, type: 'icon', size: 25, letter: { text: 'AS' }, icon: { name: 'dice-d20', prefix: 'fas', label: 'Dice D20' }, image: { url: '' }, shadow: { size: 0 } } - }, - accent: { by: 'theme', hsl: { h: 0, s: 0, l: 0 }, rgb: { r: 0, g: 0, b: 0 } }, - color: { by: 'theme', hsl: { h: 0, s: 0, l: 0 }, rgb: { r: 0, g: 0, b: 0 }, opacity: 100 }, - background: { show: false, type: 'image', opacity: 100, image: { url: '' }, video: { url: '' } }, - border: 0, - shape: { wide: false, tall: false }, - timestamp: 1626297988913 - }, { - url: 'https://www.amazon.co.uk/', - display: { - alignment: 'center-center', - direction: 'vertical', - order: 'visual-name', - rotate: 0, - translate: { x: 0, y: 0 }, - gutter: 25, - name: { show: true, text: 'Amazon', size: 7 }, - visual: { show: true, type: 'letter', size: 25, letter: { text: 'AZ' }, icon: { name: 'amazon', prefix: 'fab', label: 'Amazon' }, image: { url: '' }, shadow: { size: 0 } } - }, - accent: { by: 'theme', hsl: { h: 0, s: 0, l: 0 }, rgb: { r: 0, g: 0, b: 0 } }, - color: { by: 'theme', hsl: { h: 0, s: 0, l: 0 }, rgb: { r: 0, g: 0, b: 0 }, opacity: 100 }, - background: { show: false, type: 'image', opacity: 100, image: { url: '' }, video: { url: '' } }, - border: 0, - shape: { wide: false, tall: false }, - timestamp: 1626297999213 - }, { - url: 'https://mail.google.com/', - display: { - alignment: 'center-center', - direction: 'vertical', - order: 'visual-name', - rotate: 0, - translate: { x: 0, y: 0 }, - gutter: 25, - name: { show: true, text: 'Gmail', size: 7 }, - visual: { show: true, type: 'letter', size: 25, letter: { text: 'GM' }, icon: { name: 'envelope', prefix: 'fas', label: 'Envelope' }, image: { url: '' }, shadow: { size: 0 } } - }, - accent: { by: 'theme', hsl: { h: 0, s: 0, l: 0 }, rgb: { r: 0, g: 0, b: 0 } }, - color: { by: 'theme', hsl: { h: 0, s: 0, l: 0 }, rgb: { r: 0, g: 0, b: 0 }, opacity: 100 }, - background: { show: false, type: 'image', opacity: 100, image: { url: '' }, video: { url: '' } }, - border: 0, - shape: { wide: false, tall: false }, - timestamp: 1626298011293 - }, { - url: 'https://www.reddit.com/', - display: { - alignment: 'center-center', - direction: 'vertical', - order: 'visual-name', - rotate: 0, - translate: { x: 0, y: 0 }, - gutter: 25, - name: { show: true, text: 'Reddit', size: 7 }, - visual: { show: true, type: 'icon', size: 25, letter: { text: 'R' }, icon: { name: 'reddit-alien', prefix: 'fab', label: 'reddit Alien' }, image: { url: '' }, shadow: { size: 0 } } - }, - accent: { by: 'theme', hsl: { h: 0, s: 0, l: 0 }, rgb: { r: 0, g: 0, b: 0 } }, - color: { by: 'theme', hsl: { h: 0, s: 0, l: 0 }, rgb: { r: 0, g: 0, b: 0 }, opacity: 100 }, - background: { show: false, type: 'image', opacity: 100, image: { url: '' }, video: { url: '' } }, - border: 0, - shape: { wide: false, tall: false }, - timestamp: 1626298017175 - }, { - url: 'https://www.netflix.com/', - display: { - alignment: 'center-center', - direction: 'vertical', - order: 'visual-name', - rotate: 0, - translate: { x: 0, y: 0 }, - gutter: 25, - name: { show: true, text: 'Netflix', size: 7 }, - visual: { show: true, type: 'icon', size: 25, letter: { text: 'N' }, icon: { name: 'film', prefix: 'fas', label: 'Film' }, image: { url: '' }, shadow: { size: 0 } } - }, - accent: { by: 'theme', hsl: { h: 0, s: 0, l: 0 }, rgb: { r: 0, g: 0, b: 0 } }, - color: { by: 'theme', hsl: { h: 0, s: 0, l: 0 }, rgb: { r: 0, g: 0, b: 0 }, opacity: 100 }, - background: { show: false, type: 'image', opacity: 100, image: { url: '' }, video: { url: '' } }, - border: 0, - shape: { wide: false, tall: false }, - timestamp: 1626298022303 - }, { - url: 'https://drive.google.com/drive/', - display: { - alignment: 'center-center', - direction: 'vertical', - order: 'visual-name', - rotate: 0, - translate: { x: 0, y: 0 }, - gutter: 25, - name: { show: true, text: 'Drive', size: 7 }, - visual: { show: true, type: 'letter', size: 25, letter: { text: 'DR' }, icon: { name: 'google-drive', prefix: 'fab', label: 'Drive' }, image: { url: '' }, shadow: { size: 0 } } - }, - accent: { by: 'theme', hsl: { h: 0, s: 0, l: 0 }, rgb: { r: 0, g: 0, b: 0 } }, - color: { by: 'theme', hsl: { h: 0, s: 0, l: 0 }, rgb: { r: 0, g: 0, b: 0 }, opacity: 100 }, - background: { show: false, type: 'image', opacity: 100, image: { url: '' }, video: { url: '' } }, - border: 0, - shape: { wide: false, tall: false }, - timestamp: 1626298028996 - }] - }, { - name: { text: 'Dev sites', show: true }, - collapse: false, - toolbar: { openAll: { show: true }, collapse: { show: true } }, - items: [{ - url: 'https://devdocs.io/', - display: { - alignment: 'center-center', - direction: 'vertical', - order: 'visual-name', - rotate: 0, - translate: { x: 0, y: 0 }, - gutter: 25, - name: { show: true, text: 'Devdocs', size: 7 }, - visual: { show: true, type: 'icon', size: 25, letter: { text: 'DEV' }, icon: { name: 'code', prefix: 'fas', label: 'Code' }, image: { url: '' }, shadow: { size: 0 } } - }, - accent: { by: 'theme', hsl: { h: 0, s: 0, l: 0 }, rgb: { r: 0, g: 0, b: 0 } }, - color: { by: 'theme', hsl: { h: 0, s: 0, l: 0 }, rgb: { r: 0, g: 0, b: 0 }, opacity: 100 }, - background: { show: false, type: 'image', opacity: 100, image: { url: '' }, video: { url: '' } }, - border: 0, - shape: { wide: false, tall: false }, - timestamp: 1626298034209 - }, { - url: 'https://github.com/', - display: { - alignment: 'center-center', - direction: 'vertical', - order: 'visual-name', - rotate: 0, - translate: { x: 0, y: 0 }, - gutter: 25, - name: { show: true, text: 'Github', size: 7 }, - visual: { show: true, type: 'icon', size: 25, letter: { text: 'GIT' }, icon: { name: 'github', prefix: 'fab', label: 'GitHub' }, image: { url: '' }, shadow: { size: 0 } } - }, - accent: { by: 'theme', hsl: { h: 0, s: 0, l: 0 }, rgb: { r: 0, g: 0, b: 0 } }, - color: { by: 'theme', hsl: { h: 0, s: 0, l: 0 }, rgb: { r: 0, g: 0, b: 0 }, opacity: 100 }, - background: { show: false, type: 'image', opacity: 100, image: { url: '' }, video: { url: '' } }, - border: 0, - shape: { wide: false, tall: false }, - timestamp: 1626298038470 - }] - }]; - }; +bookmarkPreset.get = () => { + return [{ + name: { text: 'Cool stuff', show: true }, + collapse: false, + toolbar: { openAll: { show: true }, collapse: { show: true } }, + items: [{ + url: 'https://zombiefox.github.io/awesomeSheet/', + display: { + alignment: 'center-center', + direction: 'vertical', + order: 'visual-name', + rotate: 0, + translate: { x: 0, y: 0 }, + gutter: 25, + name: { show: true, text: 'awesomeSheet', size: 7 }, + visual: { show: true, type: 'icon', size: 25, letter: { text: 'AS' }, icon: { name: 'dice-d20', prefix: 'fas', label: 'Dice D20' }, image: { url: '' }, shadow: { size: 0 } } + }, + accent: { by: 'theme', hsl: { h: 0, s: 0, l: 0 }, rgb: { r: 0, g: 0, b: 0 } }, + color: { by: 'theme', hsl: { h: 0, s: 0, l: 0 }, rgb: { r: 0, g: 0, b: 0 }, opacity: 100 }, + background: { show: false, type: 'image', opacity: 100, image: { url: '' }, video: { url: '' } }, + border: 0, + shape: { wide: false, tall: false }, + timestamp: 1626297988913 + }, { + url: 'https://www.amazon.co.uk/', + display: { + alignment: 'center-center', + direction: 'vertical', + order: 'visual-name', + rotate: 0, + translate: { x: 0, y: 0 }, + gutter: 25, + name: { show: true, text: 'Amazon', size: 7 }, + visual: { show: true, type: 'letter', size: 25, letter: { text: 'AZ' }, icon: { name: 'amazon', prefix: 'fab', label: 'Amazon' }, image: { url: '' }, shadow: { size: 0 } } + }, + accent: { by: 'theme', hsl: { h: 0, s: 0, l: 0 }, rgb: { r: 0, g: 0, b: 0 } }, + color: { by: 'theme', hsl: { h: 0, s: 0, l: 0 }, rgb: { r: 0, g: 0, b: 0 }, opacity: 100 }, + background: { show: false, type: 'image', opacity: 100, image: { url: '' }, video: { url: '' } }, + border: 0, + shape: { wide: false, tall: false }, + timestamp: 1626297999213 + }, { + url: 'https://mail.google.com/', + display: { + alignment: 'center-center', + direction: 'vertical', + order: 'visual-name', + rotate: 0, + translate: { x: 0, y: 0 }, + gutter: 25, + name: { show: true, text: 'Gmail', size: 7 }, + visual: { show: true, type: 'letter', size: 25, letter: { text: 'GM' }, icon: { name: 'envelope', prefix: 'fas', label: 'Envelope' }, image: { url: '' }, shadow: { size: 0 } } + }, + accent: { by: 'theme', hsl: { h: 0, s: 0, l: 0 }, rgb: { r: 0, g: 0, b: 0 } }, + color: { by: 'theme', hsl: { h: 0, s: 0, l: 0 }, rgb: { r: 0, g: 0, b: 0 }, opacity: 100 }, + background: { show: false, type: 'image', opacity: 100, image: { url: '' }, video: { url: '' } }, + border: 0, + shape: { wide: false, tall: false }, + timestamp: 1626298011293 + }, { + url: 'https://www.reddit.com/', + display: { + alignment: 'center-center', + direction: 'vertical', + order: 'visual-name', + rotate: 0, + translate: { x: 0, y: 0 }, + gutter: 25, + name: { show: true, text: 'Reddit', size: 7 }, + visual: { show: true, type: 'icon', size: 25, letter: { text: 'R' }, icon: { name: 'reddit-alien', prefix: 'fab', label: 'reddit Alien' }, image: { url: '' }, shadow: { size: 0 } } + }, + accent: { by: 'theme', hsl: { h: 0, s: 0, l: 0 }, rgb: { r: 0, g: 0, b: 0 } }, + color: { by: 'theme', hsl: { h: 0, s: 0, l: 0 }, rgb: { r: 0, g: 0, b: 0 }, opacity: 100 }, + background: { show: false, type: 'image', opacity: 100, image: { url: '' }, video: { url: '' } }, + border: 0, + shape: { wide: false, tall: false }, + timestamp: 1626298017175 + }, { + url: 'https://www.netflix.com/', + display: { + alignment: 'center-center', + direction: 'vertical', + order: 'visual-name', + rotate: 0, + translate: { x: 0, y: 0 }, + gutter: 25, + name: { show: true, text: 'Netflix', size: 7 }, + visual: { show: true, type: 'icon', size: 25, letter: { text: 'N' }, icon: { name: 'film', prefix: 'fas', label: 'Film' }, image: { url: '' }, shadow: { size: 0 } } + }, + accent: { by: 'theme', hsl: { h: 0, s: 0, l: 0 }, rgb: { r: 0, g: 0, b: 0 } }, + color: { by: 'theme', hsl: { h: 0, s: 0, l: 0 }, rgb: { r: 0, g: 0, b: 0 }, opacity: 100 }, + background: { show: false, type: 'image', opacity: 100, image: { url: '' }, video: { url: '' } }, + border: 0, + shape: { wide: false, tall: false }, + timestamp: 1626298022303 + }, { + url: 'https://drive.google.com/drive/', + display: { + alignment: 'center-center', + direction: 'vertical', + order: 'visual-name', + rotate: 0, + translate: { x: 0, y: 0 }, + gutter: 25, + name: { show: true, text: 'Drive', size: 7 }, + visual: { show: true, type: 'letter', size: 25, letter: { text: 'DR' }, icon: { name: 'google-drive', prefix: 'fab', label: 'Drive' }, image: { url: '' }, shadow: { size: 0 } } + }, + accent: { by: 'theme', hsl: { h: 0, s: 0, l: 0 }, rgb: { r: 0, g: 0, b: 0 } }, + color: { by: 'theme', hsl: { h: 0, s: 0, l: 0 }, rgb: { r: 0, g: 0, b: 0 }, opacity: 100 }, + background: { show: false, type: 'image', opacity: 100, image: { url: '' }, video: { url: '' } }, + border: 0, + shape: { wide: false, tall: false }, + timestamp: 1626298028996 + }] + }, { + name: { text: 'Dev sites', show: true }, + collapse: false, + toolbar: { openAll: { show: true }, collapse: { show: true } }, + items: [{ + url: 'https://devdocs.io/', + display: { + alignment: 'center-center', + direction: 'vertical', + order: 'visual-name', + rotate: 0, + translate: { x: 0, y: 0 }, + gutter: 25, + name: { show: true, text: 'Devdocs', size: 7 }, + visual: { show: true, type: 'icon', size: 25, letter: { text: 'DEV' }, icon: { name: 'code', prefix: 'fas', label: 'Code' }, image: { url: '' }, shadow: { size: 0 } } + }, + accent: { by: 'theme', hsl: { h: 0, s: 0, l: 0 }, rgb: { r: 0, g: 0, b: 0 } }, + color: { by: 'theme', hsl: { h: 0, s: 0, l: 0 }, rgb: { r: 0, g: 0, b: 0 }, opacity: 100 }, + background: { show: false, type: 'image', opacity: 100, image: { url: '' }, video: { url: '' } }, + border: 0, + shape: { wide: false, tall: false }, + timestamp: 1626298034209 + }, { + url: 'https://github.com/', + display: { + alignment: 'center-center', + direction: 'vertical', + order: 'visual-name', + rotate: 0, + translate: { x: 0, y: 0 }, + gutter: 25, + name: { show: true, text: 'Github', size: 7 }, + visual: { show: true, type: 'icon', size: 25, letter: { text: 'GIT' }, icon: { name: 'github', prefix: 'fab', label: 'GitHub' }, image: { url: '' }, shadow: { size: 0 } } + }, + accent: { by: 'theme', hsl: { h: 0, s: 0, l: 0 }, rgb: { r: 0, g: 0, b: 0 } }, + color: { by: 'theme', hsl: { h: 0, s: 0, l: 0 }, rgb: { r: 0, g: 0, b: 0 }, opacity: 100 }, + background: { show: false, type: 'image', opacity: 100, image: { url: '' }, video: { url: '' } }, + border: 0, + shape: { wide: false, tall: false }, + timestamp: 1626298038470 + }] + }]; +}; - export { bookmarkPreset }; +export { bookmarkPreset }; diff --git a/src/component/bookmarkPreview/index.js b/src/component/bookmarkPreview/index.js index 1f093585..a742f0db 100644 --- a/src/component/bookmarkPreview/index.js +++ b/src/component/bookmarkPreview/index.js @@ -4,7 +4,7 @@ import { node } from '../../utility/node'; import './index.css'; -export const BookmarkPreview = function({ +export const BookmarkPreview = function ({ bookmarkData = false } = {}) { @@ -20,19 +20,19 @@ export const BookmarkPreview = function({ this.grid.classList.add('bookmark-preview-grid-tall'); } else { this.grid.classList.remove('bookmark-preview-grid-tall'); - }; + } if (bookmarkData.link.shape.wide) { this.grid.classList.add('bookmark-preview-grid-wide'); } else { this.grid.classList.remove('bookmark-preview-grid-wide'); - }; + } if (bookmarkData.link.shape.tall || bookmarkData.link.shape.wide) { this.title.textContent = 'Preview (50% scale)'; } else { this.title.textContent = 'Preview'; - }; + } }; diff --git a/src/component/bookmarkTile/index.js b/src/component/bookmarkTile/index.js index 2437e843..db1e74c8 100644 --- a/src/component/bookmarkTile/index.js +++ b/src/component/bookmarkTile/index.js @@ -16,7 +16,7 @@ import { complexNode } from '../../utility/complexNode'; import { isValidString } from '../../utility/isValidString'; import { trimString } from '../../utility/trimString'; -const BookmarkTile = function({ +const BookmarkTile = function ({ bookmarkData = {}, preview = false } = {}) { @@ -57,7 +57,7 @@ const BookmarkTile = function({ control: node('div|class:bookmark-control') }; - if (preview) { this.element.bookmark.classList.add('bookmark-preview'); }; + if (preview) { this.element.bookmark.classList.add('bookmark-preview'); } this.control = {}; @@ -75,7 +75,7 @@ const BookmarkTile = function({ if (bookmarkData.position.destination.item < 0) { bookmarkData.position.destination.item = 0; - }; + } bookmark.item.mod.move(bookmarkData); @@ -106,7 +106,7 @@ const BookmarkTile = function({ if (bookmarkData.position.destination.item > bookmark.all[bookmarkData.position.destination.group].items.length - 1) { bookmarkData.position.destination.item = bookmark.all[bookmarkData.position.destination.group].items.length - 1; - }; + } bookmark.item.mod.move(bookmarkData); @@ -144,8 +144,7 @@ const BookmarkTile = function({ successAction: () => { switch (newBookmarkData.group.destination) { - case 'new': - + case 'new': { newBookmarkData.position.destination.group = bookmark.all.length; const newGroupData = new StagedGroup(); @@ -157,7 +156,8 @@ const BookmarkTile = function({ group.item.mod.add(newGroupData); break; - }; + } + } bookmark.item.mod.edit(newBookmarkData); @@ -211,7 +211,7 @@ const BookmarkTile = function({ for (var key in this.control.button) { this.control.button[key].disable(); - }; + } this.control.searchState(); @@ -221,7 +221,7 @@ const BookmarkTile = function({ for (var key in this.control.button) { this.control.button[key].enable(); - }; + } this.control.searchState(); @@ -237,7 +237,7 @@ const BookmarkTile = function({ this.control.button.left.enable(); this.control.button.right.enable(); this.control.button.sort.enable(); - }; + } }; @@ -245,27 +245,27 @@ const BookmarkTile = function({ if (newBookmarkData) { bookmarkData = newBookmarkData; - }; + } if (isValidString(bookmarkData.link.url) && !preview) { this.element.content.link.setAttribute('href', trimString(bookmarkData.link.url)); } else { this.element.content.link.setAttribute('href', '#'); - }; + } if (state.get.current().bookmark.newTab && !preview) { this.element.content.link.setAttribute('target', '_blank'); - }; + } if (!preview) { this.element.bookmark.style.setProperty('--bookmark-transition-delay', bookmarkData.position.origin.item); - }; + } this.element.bookmark.style.setProperty('--theme-bookmark-item-opacity', bookmarkData.link.color.opacity); if (bookmarkData.link.color.opacity < 100) { this.element.bookmark.style.setProperty('--bookmark-clip-padding', 0); - }; + } if (bookmarkData.link.color.opacity < 40) { @@ -275,25 +275,25 @@ const BookmarkTile = function({ this.element.bookmark.classList.remove('is-bookmark-opacity-low'); - }; + } if (preview) { const alignment = ['top-left', 'top-center', 'top-right', 'center-left', 'center-center', 'center-right', 'bottom-left', 'bottom-center', 'bottom-right']; - alignment.forEach((item, i) => { + alignment.forEach((item) => { this.element.bookmark.classList.remove('is-bookmark-alignment-' + item); }); const order = ['visual-name', 'name-visual']; - order.forEach((item, i) => { + order.forEach((item) => { this.element.bookmark.classList.remove('is-bookmark-order-' + item); }); const direction = ['vertical', 'horizontal']; - direction.forEach((item, i) => { + direction.forEach((item) => { this.element.bookmark.classList.remove('is-bookmark-direction-' + item); }); - }; + } this.element.bookmark.classList.add('is-bookmark-alignment-' + bookmarkData.link.display.alignment); @@ -331,7 +331,7 @@ const BookmarkTile = function({ this.element.bookmark.style.setProperty('--bookmark-display-visual-color', 'var(--theme-accent)'); - }; + } if (bookmarkData.link.display.visual.shadow.size > 0) { @@ -371,7 +371,7 @@ const BookmarkTile = function({ this.element.bookmark.style.removeProperty('--bookmark-display-visual-shadow'); - }; + } if (bookmarkData.link.color.by == 'custom') { @@ -407,7 +407,7 @@ const BookmarkTile = function({ this.element.bookmark.style.setProperty('--button-link-text-active', 'var(--theme-color-text)'); - }; + } if (bookmarkData.link.background.show) { this.element.bookmark.style.setProperty('--bookmark-background-opacity', bookmarkData.link.background.opacity); @@ -416,18 +416,18 @@ const BookmarkTile = function({ case 'image': if (isValidString(bookmarkData.link.background.image.url)) { this.element.bookmark.style.setProperty('--bookmark-background-image-url', 'url("' + trimString(bookmarkData.link.background.image.url) + '")'); - }; + } break; - }; - }; + } + } if (bookmarkData.link.shape.tall) { this.element.bookmark.classList.add('bookmark-tall'); - }; + } if (bookmarkData.link.shape.wide) { this.element.bookmark.classList.add('bookmark-wide'); - }; + } }; @@ -440,7 +440,7 @@ const BookmarkTile = function({ if (isValidString(bookmarkData.link.display.visual.letter.text)) { this.element.content.display.visual.visual.appendChild(this.element.content.display.visual.letter); this.element.content.display.display.appendChild(this.element.content.display.visual.visual); - }; + } break; case 'icon': @@ -448,27 +448,27 @@ const BookmarkTile = function({ this.element.content.display.visual.icon.appendChild(this.element.content.display.visual.faIcon); this.element.content.display.visual.visual.appendChild(this.element.content.display.visual.icon); this.element.content.display.display.appendChild(this.element.content.display.visual.visual); - }; + } break; case 'image': if (isValidString(bookmarkData.link.display.visual.image.url)) { this.element.content.display.visual.visual.appendChild(this.element.content.display.visual.image); this.element.content.display.display.appendChild(this.element.content.display.visual.visual); - }; + } break; - }; - }; + } + } if (bookmarkData.link.display.name.show && isValidString(bookmarkData.link.display.name.text)) { this.element.content.display.name.name.appendChild(this.element.content.display.name.text); this.element.content.display.display.appendChild(this.element.content.display.name.name); - }; + } this.element.content.display.wrap.appendChild(this.element.content.display.display); this.element.content.link.appendChild(this.element.content.display.wrap); - }; + } if (bookmarkData.link.background.show) { @@ -492,14 +492,14 @@ const BookmarkTile = function({ this.element.content.background.video.appendChild(this.video.video); - }; + } break; - }; + } this.element.content.link.appendChild(this.element.content.background.wrap); - }; + } this.element.bookmark.appendChild(this.element.front); @@ -521,7 +521,7 @@ const BookmarkTile = function({ if (isValidString(bookmarkData.link.url)) { - this.element.url.text.textContent = trimString(bookmarkData.link.url).replace(/^https?\:\/\//i, '').replace('www.', '').replace(/\/+$/, ''); + this.element.url.text.textContent = trimString(bookmarkData.link.url).replace(/^https?:\/\//i, '').replace('www.', '').replace(/\/+$/, ''); this.element.url.text.title = trimString(bookmarkData.link.url); @@ -529,13 +529,13 @@ const BookmarkTile = function({ this.element.back.appendChild(this.element.url.url); - }; + } if (state.get.current().bookmark.edit) { this.control.enable(); } else { this.control.disable(); - }; + } }; diff --git a/src/component/button/index.js b/src/component/button/index.js index 6ba46ecc..9089de2f 100644 --- a/src/component/button/index.js +++ b/src/component/button/index.js @@ -6,7 +6,7 @@ import { node } from '../../utility/node'; import './index.css'; -export const Button = function({ +export const Button = function ({ text = 'Button', srOnly = false, iconName = false, @@ -26,10 +26,10 @@ export const Button = function({ if (srOnly) { buttonText.classList.add('sr-only'); - }; + } this.button.appendChild(buttonText); - }; + } if (iconName) { @@ -44,13 +44,13 @@ export const Button = function({ this.button.prepend(icon.render(iconName)); break; - }; + } - }; + } if (block) { this.button.classList.add('button-block'); - }; + } switch (size) { case 'small': @@ -60,23 +60,23 @@ export const Button = function({ case 'large': this.button.classList.add('button-large'); break; - }; + } if (title) { this.button.setAttribute('title', title); - }; + } if (classList.length > 0) { - classList.forEach((item, i) => { + classList.forEach((item) => { this.button.classList.add(item); }); - }; + } if (func) { - this.button.addEventListener('click', (event) => { + this.button.addEventListener('click', () => { func(); }); - }; + } this.style = {}; @@ -85,7 +85,7 @@ export const Button = function({ if (style) { if (style.length > 0) { - style.forEach((item, i) => { + style.forEach((item) => { switch (item) { case 'link': this.button.classList.add('button-link'); @@ -98,11 +98,11 @@ export const Button = function({ case 'ring': this.button.classList.add('button-ring'); break; - }; + } }); - }; + } - }; + } }; diff --git a/src/component/clock/index.js b/src/component/clock/index.js index d3a02b5a..343e6444 100644 --- a/src/component/clock/index.js +++ b/src/component/clock/index.js @@ -1,7 +1,6 @@ import { state } from '../state'; import { node } from '../../utility/node'; -import { ordinalWord } from '../../utility/ordinalWord'; import { wordNumber } from '../../utility/wordNumber'; import { trimString } from '../../utility/trimString'; import { isValidString } from '../../utility/isValidString'; @@ -12,7 +11,7 @@ import moment from 'moment'; import './index.css'; -export const Clock = function({} = {}) { +export const Clock = function () { this.now; @@ -48,17 +47,17 @@ export const Clock = function({} = {}) { if (!state.get.current().header.clock.hour24.show && this.now.hours() > 12) { value = value - 12; - }; + } if (!state.get.current().header.clock.hour24.show && this.now.hours() == 0) { value = 12; - }; + } value = wordNumber(value); if (state.get.current().header.clock.hour24.show && this.now.hours() > 0 && this.now.hours() < 10) { value = 'Zero ' + value; - }; + } break; @@ -68,19 +67,19 @@ export const Clock = function({} = {}) { if (!state.get.current().header.clock.hour24.show && this.now.hours() > 12) { value = value - 12; - }; + } if (!state.get.current().header.clock.hour24.show && this.now.hours() == 0) { value = 12; - }; + } if (state.get.current().header.clock.hour24.show && this.now.hours() < 10) { value = '0' + value; - }; + } break; - }; + } return value; @@ -98,7 +97,7 @@ export const Clock = function({} = {}) { if (this.now.minutes() > 0 && this.now.minutes() < 10) { value = 'Zero ' + value; - }; + } break; @@ -108,11 +107,11 @@ export const Clock = function({} = {}) { if (this.now.minutes() < 10) { value = '0' + value; - }; + } break; - }; + } return value; @@ -130,7 +129,7 @@ export const Clock = function({} = {}) { if (this.now.seconds() > 0 && this.now.seconds() < 10) { value = 'Zero ' + value; - }; + } break; @@ -140,11 +139,11 @@ export const Clock = function({} = {}) { if (this.now.seconds() < 10) { value = '0' + value; - }; + } break; - }; + } return value; @@ -162,19 +161,19 @@ export const Clock = function({} = {}) { if (state.get.current().header.clock.hour.show) { this.element.clock.appendChild(this.element.hour); - }; + } if (state.get.current().header.clock.minute.show) { this.element.clock.appendChild(this.element.minute); - }; + } if (state.get.current().header.clock.second.show) { this.element.clock.appendChild(this.element.second); - }; + } if (!state.get.current().header.clock.hour24.show && state.get.current().header.clock.meridiem.show) { this.element.clock.appendChild(this.element.meridiem); - }; + } if (state.get.current().header.clock.separator.show) { @@ -184,7 +183,7 @@ export const Clock = function({} = {}) { separatorCharacter = trimString(state.get.current().header.clock.separator.text); } else { separatorCharacter = ':'; - }; + } let parts = this.element.clock.querySelectorAll('span'); @@ -205,12 +204,12 @@ export const Clock = function({} = {}) { this.element.clock.insertBefore(separator, item); - }; + } }); - }; + } - }; + } }; @@ -222,19 +221,19 @@ export const Clock = function({} = {}) { if (state.get.current().header.clock.hour.show) { this.element.hour.innerHTML = this.string.hour(); - }; + } if (state.get.current().header.clock.minute.show) { this.element.minute.innerHTML = this.string.minute(); - }; + } if (state.get.current().header.clock.second.show) { this.element.second.innerHTML = this.string.second(); - }; + } if (!state.get.current().header.clock.hour24.show && state.get.current().header.clock.meridiem.show) { this.element.meridiem.innerHTML = this.string.meridiem(); - }; + } }; diff --git a/src/component/collapse/index.js b/src/component/collapse/index.js index 563de50c..db1261a3 100644 --- a/src/component/collapse/index.js +++ b/src/component/collapse/index.js @@ -1,19 +1,16 @@ -import { form } from '../form'; -import { icon } from '../icon'; -import { complexNode } from '../../utility/complexNode'; import { node } from '../../utility/node'; import './index.css'; -export const Collapse = function({ +export const Collapse = function ({ type = false, radioGroup = false, checkbox = false, target = false } = {}) { - target.forEach((item, i) => { + target.forEach((item) => { item.state = { collapsed: true }; @@ -32,7 +29,7 @@ export const Collapse = function({ }; this.collapse = () => { - target.forEach((item, i) => { + target.forEach((item) => { item.spacer.appendChild(item.content); item.area.appendChild(item.spacer); @@ -44,12 +41,12 @@ export const Collapse = function({ }; this.toggle = () => { - target.forEach((item, i) => { + target.forEach((item) => { if (item.state.collapsed) { item.state.collapsed = false; } else { item.state.collapsed = true; - }; + } }); this.update(); @@ -64,7 +61,7 @@ export const Collapse = function({ area.classList.remove('is-collapsed'); // area.classList.add('is-pop'); area.removeAttribute('aria-hidden'); - }; + } }; this.renderToggle = (state, toggle) => { @@ -74,25 +71,24 @@ export const Collapse = function({ } else { toggle.classList.add('active'); toggle.classList.add('is-collapsed'); - }; + } }; this.update = () => { switch (type) { - case 'radio': - + case 'radio': { const selectedRadioValue = radioGroup.value(); - target.forEach((item, i) => { + target.forEach((item) => { this.renderTarget(!(item.id === selectedRadioValue), item.area); }); break; + } - case 'checkbox': - + case 'checkbox': { let state = true; if (checkbox.length > 1) { @@ -107,29 +103,30 @@ export const Collapse = function({ state = checkbox.checked(); - }; + } - target.forEach((item, i) => { + target.forEach((item) => { this.renderTarget(!state, item.area); }); break; + } case 'toggle': - target.forEach((item, i) => { + target.forEach((item) => { this.renderTarget(item.state.collapsed, item.area); if (item.toggle) { this.renderToggle(item.state.collapsed, item.toggle); - }; + } }); break; - }; + } }; diff --git a/src/component/control/checkbox/index.js b/src/component/control/checkbox/index.js index 3afc4cae..f09d1061 100644 --- a/src/component/control/checkbox/index.js +++ b/src/component/control/checkbox/index.js @@ -1,28 +1,21 @@ -import { state } from '../../state'; -import { data } from '../../data'; -import { bookmark } from '../../bookmark'; import * as form from '../../form'; -import { Button } from '../../button'; -import { Collapse } from '../../collapse'; -import { node } from '../../../utility/node'; import { get } from '../../../utility/get'; import { set } from '../../../utility/set'; -import { convertColor } from '../../../utility/convertColor'; -import { isValidString } from '../../../utility/isValidString'; -export const Control_checkbox = function({ +export const Control_checkbox = function ({ object = {}, id = 'name', path = false, labelText = 'name', description = false, action = false, - inputButton = false, - inputHide = false, - inputButtonStyle = false + //FIXME deprecated properties + inputButton = false, //eslint-disable-line + inputHide = false, //eslint-disable-line + inputButtonStyle = false //eslint-disable-line } = {}) { this.checkbox = form.input.checkbox({ @@ -32,7 +25,7 @@ export const Control_checkbox = function({ set({ object: object, path: path, value: this.checkbox.checked }); - if (action) { action(); }; + if (action) { action(); } } }); diff --git a/src/component/control/color/index.js b/src/component/control/color/index.js index 0eefc285..1ad1fb11 100644 --- a/src/component/control/color/index.js +++ b/src/component/control/color/index.js @@ -1,26 +1,21 @@ -import { state } from '../../state'; -import { data } from '../../data'; -import { bookmark } from '../../bookmark'; import * as form from '../../form'; import { Button } from '../../button'; -import { Collapse } from '../../collapse'; -import { node } from '../../../utility/node'; import { get } from '../../../utility/get'; import { set } from '../../../utility/set'; import { convertColor } from '../../../utility/convertColor'; -import { isValidString } from '../../../utility/isValidString'; import { randomNumber } from '../../../utility/randomNumber'; -export const Control_color = function({ +export const Control_color = function ({ object = {}, path = false, id = 'name', labelText = 'Name', srOnly = false, - value = '#000000', + //FIXME deprecated property + value = '#000000', //eslint-disable-line defaultValue = false, action = false, randomColor = false, @@ -55,9 +50,9 @@ export const Control_color = function({ })) }); - }; + } - if (action) { action(); }; + if (action) { action(); } this.text.value = convertColor.rgb.hex(get({ object: object, path: path + '.rgb' })); @@ -78,9 +73,9 @@ export const Control_color = function({ set({ object: object, path: path + '.rgb', value: convertColor.hex.rgb(this.text.value) }); - }; + } - if (action) { action(); }; + if (action) { action(); } this.update({ delay: true }); @@ -99,7 +94,7 @@ export const Control_color = function({ this.update({ all: true }); - if (action) { action(); }; + if (action) { action(); } } }); @@ -125,7 +120,7 @@ export const Control_color = function({ this.update({ all: true }); - if (action) { action(); }; + if (action) { action(); } } }); @@ -149,7 +144,7 @@ export const Control_color = function({ object: object, path: path + '.rgb' })); - }; + } }; @@ -158,7 +153,7 @@ export const Control_color = function({ this.delayedUpdate = setTimeout(updateControl, 2000); } else { updateControl(); - }; + } }; @@ -174,17 +169,17 @@ export const Control_color = function({ if (randomColor) { formGroup.appendChild(this.random.button); - }; + } if (defaultValue || (typeof defaultValue === 'number' && defaultValue === 0)) { formGroup.appendChild(this.reset.button); - }; + } if (extraButtons.length > 0) { - extraButtons.forEach((item, i) => { + extraButtons.forEach((item) => { formGroup.appendChild(item.button); }); - }; + } const wrap = form.wrap({ children: [ @@ -205,10 +200,10 @@ export const Control_color = function({ this.reset.disable(); if (extraButtons.length > 0) { - extraButtons.forEach((item, i) => { + extraButtons.forEach((item) => { item.disable(); }); - }; + } }; this.enable = () => { @@ -219,10 +214,10 @@ export const Control_color = function({ this.reset.enable(); if (extraButtons.length > 0) { - extraButtons.forEach((item, i) => { + extraButtons.forEach((item) => { item.enable(); }); - }; + } }; }; diff --git a/src/component/control/colorMixer/index.js b/src/component/control/colorMixer/index.js index 55ed4df1..6e76fbc1 100644 --- a/src/component/control/colorMixer/index.js +++ b/src/component/control/colorMixer/index.js @@ -1,6 +1,3 @@ -import { state } from '../../state'; -import { data } from '../../data'; -import { bookmark } from '../../bookmark'; import * as form from '../../form'; @@ -11,12 +8,11 @@ import { node } from '../../../utility/node'; import { get } from '../../../utility/get'; import { set } from '../../../utility/set'; import { convertColor } from '../../../utility/convertColor'; -import { isValidString } from '../../../utility/isValidString'; import { Control_color } from '../color'; import { Control_sliderSlim } from '../sliderSlim'; -export const Control_colorMixer = function({ +export const Control_colorMixer = function ({ object = {}, path = false, defaultValue = false, @@ -64,7 +60,7 @@ export const Control_colorMixer = function({ this.colorSliderL.update(); if (action) { action(); - }; + } } }); @@ -90,7 +86,7 @@ export const Control_colorMixer = function({ this.colorSliderL.update(); if (action) { action(); - }; + } } }); @@ -116,7 +112,7 @@ export const Control_colorMixer = function({ this.colorSliderL.update(); if (action) { action(); - }; + } } }); @@ -142,7 +138,7 @@ export const Control_colorMixer = function({ this.colorSliderS.update(); if (action) { action(); - }; + } } }); @@ -168,7 +164,7 @@ export const Control_colorMixer = function({ this.colorSliderL.update(); if (action) { action(); - }; + } } }); @@ -194,7 +190,7 @@ export const Control_colorMixer = function({ this.colorSliderL.update(); if (action) { action(); - }; + } } }); @@ -220,7 +216,7 @@ export const Control_colorMixer = function({ this.colorSliderL.update(); if (action) { action(); - }; + } } }); @@ -255,7 +251,7 @@ export const Control_colorMixer = function({ ] }) ] - }) + }); }; this.disable = () => { @@ -270,7 +266,7 @@ export const Control_colorMixer = function({ this.colorSliderB.disable(); } else { this.moreControlsUpdate(); - }; + } }; this.enable = () => { @@ -285,7 +281,7 @@ export const Control_colorMixer = function({ this.colorSliderB.enable(); } else { this.moreControlsUpdate(); - }; + } }; this.moreControlsUpdate = () => { @@ -304,7 +300,7 @@ export const Control_colorMixer = function({ this.colorSliderR.enable(); this.colorSliderG.enable(); this.colorSliderB.enable(); - }; + } }; diff --git a/src/component/control/groupText/index.js b/src/component/control/groupText/index.js index ca557c9d..d156a463 100644 --- a/src/component/control/groupText/index.js +++ b/src/component/control/groupText/index.js @@ -1,20 +1,11 @@ -import { state } from '../../state'; -import { data } from '../../data'; -import { bookmark } from '../../bookmark'; import * as form from '../../form'; -import { Button } from '../../button'; -import { Collapse } from '../../collapse'; -import { node } from '../../../utility/node'; -import { get } from '../../../utility/get'; -import { set } from '../../../utility/set'; -import { convertColor } from '../../../utility/convertColor'; import { isValidString } from '../../../utility/isValidString'; import { clearChildNode } from '../../../utility/clearChildNode'; -export const Control_groupText = function({ +export const Control_groupText = function ({ text = false, classList = [] } = {}) { @@ -32,7 +23,7 @@ export const Control_groupText = function({ this.groupText.textContent = content; } else if (content && content != '') { this.groupText.appendChild(content); - }; + } }; this.wrap = () => { @@ -40,7 +31,7 @@ export const Control_groupText = function({ children: [ this.groupText ] - }) + }); }; this.disable = () => { diff --git a/src/component/control/helperText/index.js b/src/component/control/helperText/index.js index 4a777de1..ab46fa4b 100644 --- a/src/component/control/helperText/index.js +++ b/src/component/control/helperText/index.js @@ -1,26 +1,16 @@ -import { state } from '../../state'; -import { data } from '../../data'; -import { bookmark } from '../../bookmark'; import * as form from '../../form'; -import { Button } from '../../button'; -import { Collapse } from '../../collapse'; -import { node } from '../../../utility/node'; -import { get } from '../../../utility/get'; -import { set } from '../../../utility/set'; -import { convertColor } from '../../../utility/convertColor'; -import { isValidString } from '../../../utility/isValidString'; -export const Control_helperText = function({ +export const Control_helperText = function ({ text = [], - complexText= false + complexText = false } = {}) { this.para = []; - text.forEach((item, i) => { + text.forEach((item) => { this.para.push(form.helper({ tag: 'p', text: item, @@ -31,7 +21,7 @@ export const Control_helperText = function({ this.wrap = () => { const formWrap = form.wrap(); - this.para.forEach((item, i) => { + this.para.forEach((item) => { formWrap.appendChild(item); }); @@ -39,13 +29,13 @@ export const Control_helperText = function({ }; this.disable = () => { - this.para.forEach((item, i) => { + this.para.forEach((item) => { item.classList.add('disabled'); }); }; this.enable = () => { - this.para.forEach((item, i) => { + this.para.forEach((item) => { item.classList.remove('disabled'); }); }; diff --git a/src/component/control/index.js b/src/component/control/index.js index 76d891c9..f30d9d88 100644 --- a/src/component/control/index.js +++ b/src/component/control/index.js @@ -8,6 +8,7 @@ import { Control_radio } from './radio'; import { Control_radioGrid } from './radioGrid'; import { Control_slider } from './slider'; import { Control_sliderSlim } from './sliderSlim'; +import { Control_sliderDouble } from './sliderDouble'; import { Control_text } from './text'; import { Control_select } from './select'; @@ -23,6 +24,6 @@ export { Control_slider, Control_sliderSlim, Control_sliderDouble, - Control_text + Control_text, Control_select }; diff --git a/src/component/control/inputButton/index.js b/src/component/control/inputButton/index.js index f9821a34..661c5f08 100644 --- a/src/component/control/inputButton/index.js +++ b/src/component/control/inputButton/index.js @@ -1,19 +1,12 @@ -import { state } from '../../state'; -import { data } from '../../data'; -import { bookmark } from '../../bookmark'; import * as form from '../../form'; -import { Button } from '../../button'; -import { Collapse } from '../../collapse'; -import { node } from '../../../utility/node'; import { get } from '../../../utility/get'; import { set } from '../../../utility/set'; import { convertColor } from '../../../utility/convertColor'; -import { isValidString } from '../../../utility/isValidString'; -export const Control_inputButton = function({ +export const Control_inputButton = function ({ object = {}, path = false, id = 'name', @@ -36,7 +29,7 @@ export const Control_inputButton = function({ func: () => { if (action) { action(); - }; + } } }); @@ -65,16 +58,16 @@ export const Control_inputButton = function({ path: path + '.rgb' })) }); - }; + } if (action) { action(); - }; + } } }); break; - }; + } this.label = form.label({ text: labelText, @@ -94,7 +87,7 @@ export const Control_inputButton = function({ if (inputButtonStyle) { if (inputButtonStyle.length > 0) { - inputButtonStyle.forEach((item, i) => { + inputButtonStyle.forEach((item) => { switch (item) { case 'link': @@ -112,12 +105,12 @@ export const Control_inputButton = function({ case 'dot': this.button.classList.add('input-color-dot'); break; - }; + } }); - }; - }; + } + } }; @@ -145,11 +138,11 @@ export const Control_inputButton = function({ if (inputButtonClassList.length > 0) { - inputButtonClassList.forEach((item, i) => { + inputButtonClassList.forEach((item) => { this.button.classList.add(item); }); - }; + } this.button.appendChild(this.input); @@ -164,7 +157,7 @@ export const Control_inputButton = function({ })); break; - }; + } }; this.wrap = () => { @@ -172,7 +165,7 @@ export const Control_inputButton = function({ children: [ this.button ] - }) + }); }; this.disable = () => { diff --git a/src/component/control/radio/index.js b/src/component/control/radio/index.js index 4c31a224..dca6725a 100644 --- a/src/component/control/radio/index.js +++ b/src/component/control/radio/index.js @@ -1,19 +1,11 @@ -import { state } from '../../state'; -import { data } from '../../data'; -import { bookmark } from '../../bookmark'; import * as form from '../../form'; -import { Button } from '../../button'; -import { Collapse } from '../../collapse'; -import { node } from '../../../utility/node'; import { get } from '../../../utility/get'; import { set } from '../../../utility/set'; -import { convertColor } from '../../../utility/convertColor'; -import { isValidString } from '../../../utility/isValidString'; -export const Control_radio = function({ +export const Control_radio = function ({ radioGroup = [], object = {}, label = false, @@ -38,10 +30,10 @@ export const Control_radio = function({ text: label, noPadding: true }); - }; + } if (radioGroup.length > 0) { - radioGroup.forEach((item, i) => { + radioGroup.forEach((item) => { const radioAndLabel = { radio: form.input.radio({ id: item.id, @@ -52,7 +44,7 @@ export const Control_radio = function({ set({ object: object, path: radioGroupPath, value: item.value }); - if (action) { action(); }; + if (action) { action(); } } }), @@ -97,16 +89,16 @@ export const Control_radio = function({ this.radioSet.push(radioAndLabel); }); - }; + } this.value = () => { let currentSelectedRadio = false; - this.radioSet.forEach((item, i) => { + this.radioSet.forEach((item) => { if (item.radio.checked) { currentSelectedRadio = item.radio.value; - }; + } }); return currentSelectedRadio; @@ -115,7 +107,7 @@ export const Control_radio = function({ this.update = () => { - this.radioSet.forEach((item, i) => { + this.radioSet.forEach((item) => { item.radio.update(); }); @@ -127,9 +119,9 @@ export const Control_radio = function({ if (this.label) { wrap.appendChild(form.wrap({ children: [this.label] })); - }; + } - this.radioSet.forEach((item, i) => { + this.radioSet.forEach((item) => { wrap.appendChild( item.wrap() ); @@ -140,14 +132,15 @@ export const Control_radio = function({ }; this.inputButton = ({ - inputHide = false + //FIXME deprecated property + inputHide = false //eslint-disable-line } = {}) => { const wrap = form.wrap(); const group = form.group(); - this.radioSet.forEach((item, i) => { + this.radioSet.forEach((item) => { group.appendChild( item.inputButton() ); @@ -166,7 +159,7 @@ export const Control_radio = function({ wrap: true }); - this.radioSet.forEach((item, i) => { + this.radioSet.forEach((item) => { inline.appendChild( form.wrap({ children: [ @@ -181,7 +174,7 @@ export const Control_radio = function({ if (this.label) { wrap.appendChild(form.wrap({ children: [this.label] })); - }; + } wrap.appendChild(form.wrap({ children: [inline] })); @@ -190,23 +183,23 @@ export const Control_radio = function({ }; this.disable = () => { - this.radioSet.forEach((item, i) => { + this.radioSet.forEach((item) => { item.radio.disable(); }); if (label) { this.label.classList.add('disabled'); - }; + } }; this.enable = () => { - this.radioSet.forEach((item, i) => { + this.radioSet.forEach((item) => { item.radio.enable(); }); if (label) { this.label.classList.remove('disabled'); - }; + } }; }; diff --git a/src/component/control/radioGrid/index.js b/src/component/control/radioGrid/index.js index feec24d0..034d9539 100644 --- a/src/component/control/radioGrid/index.js +++ b/src/component/control/radioGrid/index.js @@ -1,19 +1,11 @@ -import { state } from '../../state'; -import { data } from '../../data'; -import { bookmark } from '../../bookmark'; import * as form from '../../form'; -import { Button } from '../../button'; -import { Collapse } from '../../collapse'; -import { node } from '../../../utility/node'; import { get } from '../../../utility/get'; import { set } from '../../../utility/set'; -import { convertColor } from '../../../utility/convertColor'; -import { isValidString } from '../../../utility/isValidString'; -export const Control_radioGrid = function({ +export const Control_radioGrid = function ({ radioGroup = [], label = false, object = {}, @@ -37,10 +29,10 @@ export const Control_radioGrid = function({ this.label = form.label({ text: label }); - }; + } if (radioGroup.length > 0) { - radioGroup.forEach((item, i) => { + radioGroup.forEach((item) => { const radioAndLabel = {}; radioAndLabel.position = item.position; @@ -54,7 +46,7 @@ export const Control_radioGrid = function({ set({ object: object, path: radioGroupPath, value: item.value }); - if (action) { action(); }; + if (action) { action(); } } }); @@ -92,22 +84,22 @@ export const Control_radioGrid = function({ this.radioSet.push(radioAndLabel); }); - }; + } this.value = () => { let currentSelectedRadio = false; - this.radioSet.forEach((item, i) => { + this.radioSet.forEach((item) => { if (item.radio.checked) { currentSelectedRadio = item.radio.value; - }; + } }); return currentSelectedRadio; }; this.update = () => { - this.radioSet.forEach((item, i) => { + this.radioSet.forEach((item) => { item.radio.update(); }); }; @@ -131,9 +123,9 @@ export const Control_radioGrid = function({ case '2x2': gridElement.classList.add('form-grid-2x2'); break; - }; + } - this.radioSet.forEach((item, i) => { + this.radioSet.forEach((item) => { const wrap = form.wrap({ children: [ item.radio, @@ -148,7 +140,7 @@ export const Control_radioGrid = function({ if (label) { wrap.appendChild(this.label); - }; + } wrap.appendChild(gridElement); @@ -156,7 +148,7 @@ export const Control_radioGrid = function({ }; this.disable = () => { - this.radioSet.forEach((item, i) => { + this.radioSet.forEach((item) => { item.radio.disable(); }); @@ -164,11 +156,11 @@ export const Control_radioGrid = function({ if (label) { this.label.classList.add('disabled'); - }; + } }; this.enable = () => { - this.radioSet.forEach((item, i) => { + this.radioSet.forEach((item) => { item.radio.enable(); }); @@ -176,7 +168,7 @@ export const Control_radioGrid = function({ if (label) { this.label.classList.remove('disabled'); - }; + } }; }; diff --git a/src/component/control/select/index.js b/src/component/control/select/index.js index 72fe985c..dab814b3 100644 --- a/src/component/control/select/index.js +++ b/src/component/control/select/index.js @@ -1,22 +1,14 @@ -import { state } from '../../state'; -import { data } from '../../data'; -import { bookmark } from '../../bookmark'; import * as form from '../../form'; -import { Button } from '../../button'; -import { Collapse } from '../../collapse'; -import { node } from '../../../utility/node'; import { complexNode } from '../../../utility/complexNode'; import { get } from '../../../utility/get'; import { set } from '../../../utility/set'; -import { convertColor } from '../../../utility/convertColor'; -import { isValidString } from '../../../utility/isValidString'; import { trimString } from '../../../utility/trimString'; import { clearChildNode } from '../../../utility/clearChildNode'; -export const Control_select = function({ +export const Control_select = function ({ option = [], selected = 0, object = {}, @@ -36,7 +28,7 @@ export const Control_select = function({ set({ object: object, path: path, value: this.select.selectedIndex }); - if (action) { action(); }; + if (action) { action(); } } }); @@ -48,8 +40,8 @@ export const Control_select = function({ }); if (srOnly) { - this.label.classList.add('sr-only') - }; + this.label.classList.add('sr-only'); + } this.update = () => { this.select.selectedIndex = get({ @@ -64,7 +56,7 @@ export const Control_select = function({ clearChildNode(this.select); - option.forEach((item, i) => { + option.forEach((item) => { this.select.appendChild( complexNode({ @@ -81,9 +73,9 @@ export const Control_select = function({ if (selectedIndex || selectedIndex === 0) { this.select.selectedIndex = selectedIndex; - }; + } - }; + } }; @@ -97,7 +89,7 @@ export const Control_select = function({ this.label, this.select ] - }) + }); }; this.disable = () => { diff --git a/src/component/control/slider/index.js b/src/component/control/slider/index.js index 7387aa47..8362358d 100644 --- a/src/component/control/slider/index.js +++ b/src/component/control/slider/index.js @@ -1,20 +1,13 @@ -import { state } from '../../state'; -import { data } from '../../data'; -import { bookmark } from '../../bookmark'; import * as form from '../../form'; import { Button } from '../../button'; -import { Collapse } from '../../collapse'; -import { node } from '../../../utility/node'; import { get } from '../../../utility/get'; import { set } from '../../../utility/set'; -import { convertColor } from '../../../utility/convertColor'; -import { isValidString } from '../../../utility/isValidString'; import { minMax } from '../../../utility/minMax'; -export const Control_slider = function({ +export const Control_slider = function ({ object = {}, path = false, id = 'name', @@ -58,9 +51,9 @@ export const Control_slider = function({ classList.push('input-range-contrast-spectrum'); break; - }; + } - }; + } this.range = form.input.range({ id: id, @@ -75,11 +68,11 @@ export const Control_slider = function({ set({ object: object, path: path, value: this.value() }); - }; + } - if (sliderAction) { sliderAction(); }; + if (sliderAction) { sliderAction(); } - if (action) { action(); }; + if (action) { action(); } this.updateNumber(); @@ -109,11 +102,11 @@ export const Control_slider = function({ }) }); - }; + } - if (numberAction) { numberAction(); }; + if (numberAction) { numberAction(); } - if (action) { this.action({ delay: true }) }; + if (action) { this.action({ delay: true }); } this.updateRange(); @@ -136,9 +129,9 @@ export const Control_slider = function({ value: JSON.parse(JSON.stringify(defaultValue)) }); - if (action) { action(); }; + if (action) { action(); } - if (resetAction) { resetAction(); }; + if (resetAction) { resetAction(); } this.update(); @@ -161,7 +154,7 @@ export const Control_slider = function({ } else { this.delayedAction = null; delayedAction(); - }; + } }; @@ -183,7 +176,7 @@ export const Control_slider = function({ } else { this.delayedUpdateRange = null; updateControl(); - }; + } }; @@ -201,7 +194,7 @@ export const Control_slider = function({ } else { this.delayedUpdateNumber = null; updateControl(); - }; + } }; @@ -228,7 +221,7 @@ export const Control_slider = function({ if (defaultValue || (typeof defaultValue === 'number' && defaultValue === 0)) { formGroup.appendChild(this.reset.button); - }; + } const formInline = form.inline({ block: true, diff --git a/src/component/control/sliderDouble/index.js b/src/component/control/sliderDouble/index.js index 39e9f54e..e8084636 100644 --- a/src/component/control/sliderDouble/index.js +++ b/src/component/control/sliderDouble/index.js @@ -1,21 +1,14 @@ import { state } from '../../state'; -import { data } from '../../data'; -import { bookmark } from '../../bookmark'; import * as form from '../../form'; -import { Button } from '../../button'; -import { Collapse } from '../../collapse'; import { Control_slider } from '../slider'; import { node } from '../../../utility/node'; import { get } from '../../../utility/get'; import { set } from '../../../utility/set'; -import { convertColor } from '../../../utility/convertColor'; -import { isValidString } from '../../../utility/isValidString'; -import { minMax } from '../../../utility/minMax'; -export const Control_sliderDouble = function({ +export const Control_sliderDouble = function ({ object = {}, labelText = 'Name', style = false, @@ -76,7 +69,7 @@ export const Control_sliderDouble = function({ rightClipPostion = rightClipPostion + 1; } else { rightClipPostion = rightClipPostion - 1; - }; + } this.element.sliderDouble.style.setProperty('--slider-double-right-clip', rightClipPostion); @@ -98,12 +91,12 @@ export const Control_sliderDouble = function({ action: () => { if (get({ object: state.get.current(), path: left.path }) > get({ object: state.get.minMax(), path: left.path }).max - 10) { - set({ object: state.get.current(), path: left.path, value: get({ object: state.get.minMax(), path: left.path }).max - 10 }) - }; + set({ object: state.get.current(), path: left.path, value: get({ object: state.get.minMax(), path: left.path }).max - 10 }); + } if (get({ object: state.get.current(), path: left.path }) >= get({ object: state.get.current(), path: right.path }) - 10) { - set({ object: state.get.current(), path: right.path, value: get({ object: state.get.current(), path: left.path }) + 10 }) - }; + set({ object: state.get.current(), path: right.path, value: get({ object: state.get.current(), path: left.path }) + 10 }); + } this.range.left.updateRange(); @@ -113,7 +106,7 @@ export const Control_sliderDouble = function({ if (left.action) { left.action(); - }; + } }, focusAction: left.focusAction, @@ -139,12 +132,12 @@ export const Control_sliderDouble = function({ action: () => { if (get({ object: state.get.current(), path: right.path }) < get({ object: state.get.minMax(), path: right.path }).min + 10) { - set({ object: state.get.current(), path: right.path, value: get({ object: state.get.minMax(), path: right.path }).min + 10 }) - }; + set({ object: state.get.current(), path: right.path, value: get({ object: state.get.minMax(), path: right.path }).min + 10 }); + } if (get({ object: state.get.current(), path: right.path }) <= get({ object: state.get.current(), path: left.path }) + 10) { - set({ object: state.get.current(), path: left.path, value: get({ object: state.get.current(), path: right.path }) - 10 }) - }; + set({ object: state.get.current(), path: left.path, value: get({ object: state.get.current(), path: right.path }) - 10 }); + } this.range.left.update(); @@ -154,7 +147,7 @@ export const Control_sliderDouble = function({ if (right.action) { right.action(); - }; + } }, focusAction: right.focusAction, @@ -177,7 +170,7 @@ export const Control_sliderDouble = function({ if (left.defaultValue || (typeof left.defaultValue === 'number' && left.defaultValue === 0)) { leftNumberReset.prepend(this.range.left.reset.button); - }; + } const rightNumberReset = form.group({ children: [ @@ -187,7 +180,7 @@ export const Control_sliderDouble = function({ if (right.defaultValue || (typeof right.defaultValue === 'number' && right.defaultValue === 0)) { rightNumberReset.appendChild(this.range.right.reset.button); - }; + } const wrap = form.wrap({ children: [ @@ -244,7 +237,7 @@ export const Control_sliderDouble = function({ this.delayedUpdate = setTimeout(updateControl, 2000); } else { updateControl(); - }; + } this.rightClip(); diff --git a/src/component/control/sliderSlim/index.js b/src/component/control/sliderSlim/index.js index 473ee4f7..c11de917 100644 --- a/src/component/control/sliderSlim/index.js +++ b/src/component/control/sliderSlim/index.js @@ -1,20 +1,13 @@ -import { state } from '../../state'; -import { data } from '../../data'; -import { bookmark } from '../../bookmark'; import * as form from '../../form'; import { Button } from '../../button'; -import { Collapse } from '../../collapse'; -import { node } from '../../../utility/node'; import { get } from '../../../utility/get'; import { set } from '../../../utility/set'; -import { convertColor } from '../../../utility/convertColor'; -import { isValidString } from '../../../utility/isValidString'; import { minMax } from '../../../utility/minMax'; -export const Control_sliderSlim = function({ +export const Control_sliderSlim = function ({ object = {}, path = false, id = 'name', @@ -39,14 +32,14 @@ export const Control_sliderSlim = function({ forInput: id, text: labelText, noPadding: true, - classList: ['form-group-text', 'form-group-text-left', 'form-group-text-transparent', 'form-group-text-borderless', 'form-group-item-medium', ] + classList: ['form-group-text', 'form-group-text-left', 'form-group-text-transparent', 'form-group-text-borderless', 'form-group-item-medium',] }); const classList = ['form-group-item-grow']; if (hue) { classList.push('input-range-hue-spectrum'); - }; + } this.range = form.input.range({ id: id, @@ -61,11 +54,11 @@ export const Control_sliderSlim = function({ set({ object: object, path: path, value: this.value() }); - }; + } - if (action) { action(); }; + if (action) { action(); } - if (sliderAction) { sliderAction(); }; + if (sliderAction) { sliderAction(); } this.number.value = get({ object: object, path: path }); @@ -95,11 +88,11 @@ export const Control_sliderSlim = function({ }) }); - }; + } - if (action) { action(); }; + if (action) { action(); } - if (numberAction) { numberAction(); }; + if (numberAction) { numberAction(); } this.update({ delay: true }); @@ -122,9 +115,9 @@ export const Control_sliderSlim = function({ this.update(); - if (action) { action(); }; + if (action) { action(); } - if (resetAction) { resetAction(); }; + if (resetAction) { resetAction(); } } }); @@ -145,7 +138,7 @@ export const Control_sliderSlim = function({ this.delayedUpdate = setTimeout(updateControl, 2000); } else { updateControl(); - }; + } }; @@ -162,7 +155,7 @@ export const Control_sliderSlim = function({ if (defaultValue || (typeof defaultValue === 'number' && defaultValue === 0)) { formGroup.appendChild(this.reset.button); - }; + } const formInline = form.inline({ block: true, diff --git a/src/component/control/text/index.js b/src/component/control/text/index.js index a178e607..b486bd48 100644 --- a/src/component/control/text/index.js +++ b/src/component/control/text/index.js @@ -1,19 +1,11 @@ -import { state } from '../../state'; -import { data } from '../../data'; -import { bookmark } from '../../bookmark'; import * as form from '../../form'; -import { Button } from '../../button'; -import { Collapse } from '../../collapse'; -import { node } from '../../../utility/node'; import { get } from '../../../utility/get'; import { set } from '../../../utility/set'; -import { convertColor } from '../../../utility/convertColor'; -import { isValidString } from '../../../utility/isValidString'; -export const Control_text = function({ +export const Control_text = function ({ object = {}, path = false, id = 'name', @@ -33,8 +25,8 @@ export const Control_text = function({ }); if (srOnly) { - this.label.classList.add('sr-only') - }; + this.label.classList.add('sr-only'); + } this.text = form.input.text({ id: id, @@ -43,28 +35,28 @@ export const Control_text = function({ if (path) { set({ object: object, path: path, value: this.text.value }); - }; + } - if (action) { action(); }; + if (action) { action(); } } }); if (value) { this.text.value = value; - }; + } if (min) { this.text.min = min; - }; + } if (max) { this.text.max = max; - }; + } if (placeholder) { this.text.placeholder = placeholder; - }; + } this.update = () => { @@ -78,7 +70,7 @@ export const Control_text = function({ this.label, this.text ] - }) + }); }; this.disable = () => { diff --git a/src/component/control/textReset/index.js b/src/component/control/textReset/index.js index 303a4b45..031bda9e 100644 --- a/src/component/control/textReset/index.js +++ b/src/component/control/textReset/index.js @@ -1,19 +1,12 @@ -import { state } from '../../state'; -import { data } from '../../data'; -import { bookmark } from '../../bookmark'; import * as form from '../../form'; import { Button } from '../../button'; -import { Collapse } from '../../collapse'; -import { node } from '../../../utility/node'; import { get } from '../../../utility/get'; import { set } from '../../../utility/set'; -import { convertColor } from '../../../utility/convertColor'; -import { isValidString } from '../../../utility/isValidString'; -export const Control_textReset = function({ +export const Control_textReset = function ({ object = {}, path = false, id = 'name', @@ -34,8 +27,8 @@ export const Control_textReset = function({ }); if (srOnly) { - this.label.classList.add('sr-only') - }; + this.label.classList.add('sr-only'); + } this.text = form.input.text({ id: id, @@ -47,28 +40,28 @@ export const Control_textReset = function({ path: path, value: this.text.value }); - }; + } if (action) { action(); - }; + } } }); if (value) { this.text.value = value; - }; + } if (min) { this.text.min = min; - }; + } if (max) { this.text.max = max; - }; + } if (placeholder) { this.text.placeholder = placeholder; - }; + } this.reset = new Button({ text: false, @@ -85,7 +78,7 @@ export const Control_textReset = function({ this.update(); if (action) { action(); - }; + } } }); diff --git a/src/component/control/textarea/index.js b/src/component/control/textarea/index.js index 4a4810d8..ca457cc9 100644 --- a/src/component/control/textarea/index.js +++ b/src/component/control/textarea/index.js @@ -1,19 +1,11 @@ -import { state } from '../../state'; -import { data } from '../../data'; -import { bookmark } from '../../bookmark'; import * as form from '../../form'; -import { Button } from '../../button'; -import { Collapse } from '../../collapse'; -import { node } from '../../../utility/node'; import { get } from '../../../utility/get'; import { set } from '../../../utility/set'; -import { convertColor } from '../../../utility/convertColor'; -import { isValidString } from '../../../utility/isValidString'; -export const Control_textarea = function({ +export const Control_textarea = function ({ object = {}, path = false, id = 'name', @@ -33,8 +25,8 @@ export const Control_textarea = function({ }); if (srOnly) { - this.label.classList.add('sr-only') - }; + this.label.classList.add('sr-only'); + } this.textarea = form.input.textarea({ id: id, @@ -43,28 +35,28 @@ export const Control_textarea = function({ if (path) { set({ object: object, path: path, value: this.textarea.value }); - }; + } - if (action) { action(); }; + if (action) { action(); } } }); if (value) { this.textarea.value = value; - }; + } if (min) { this.textarea.minLength = min; - }; + } if (max) { this.textarea.maxLength = max; - }; + } if (placeholder) { this.textarea.placeholder = placeholder; - }; + } this.update = () => { @@ -78,7 +70,7 @@ export const Control_textarea = function({ this.label, this.textarea ] - }) + }); }; this.disable = () => { diff --git a/src/component/customTheme/index.js b/src/component/customTheme/index.js index a6b2b434..538779de 100644 --- a/src/component/customTheme/index.js +++ b/src/component/customTheme/index.js @@ -1,15 +1,12 @@ import { state } from '../state'; import { data } from '../data'; -import * as form from '../form'; import { Modal } from '../modal'; import { CustomThemeTile } from '../customThemeTile'; import { CustomThemeForm } from '../customThemeForm'; import { StagedCustomTheme } from '../stagedCustomTheme'; -import { node } from '../../utility/node'; -import { clearChildNode } from '../../utility/clearChildNode'; import { applyCSSState } from '../../utility/applyCSSState'; const customTheme = {}; @@ -117,7 +114,7 @@ customTheme.edit = { customTheme.edit.close(); } else { customTheme.edit.open(); - }; + } }, render: () => { @@ -125,16 +122,16 @@ customTheme.edit = { applyCSSState('theme.custom.edit'); if (customTheme.tile.current.length > 0) { - customTheme.tile.current.forEach((item, i) => { + customTheme.tile.current.forEach((item) => { if (state.get.current().theme.custom.edit) { item.control.enable(); } else { item.control.disable(); - }; + } }); - }; + } } }; diff --git a/src/component/customThemeForm/index.js b/src/component/customThemeForm/index.js index 8b238936..e5ffbe0b 100644 --- a/src/component/customThemeForm/index.js +++ b/src/component/customThemeForm/index.js @@ -1,29 +1,13 @@ -import * as form from '../form'; import { Button } from '../button'; -import { Control_helperText } from '../control/helperText'; -import { Control_inputButton } from '../control/inputButton'; -import { Control_groupText } from '../control/groupText'; -import { Control_radio } from '../control/radio'; -import { Control_radioGrid } from '../control/radioGrid'; -import { Control_checkbox } from '../control/checkbox'; -import { Control_slider } from '../control/slider'; -import { Control_sliderSlim } from '../control/sliderSlim'; -import { Control_colorMixer } from '../control/colorMixer'; -import { Control_color } from '../control/color'; import { Control_text } from '../control/text'; -import { Control_select } from '../control/select'; import { node } from '../../utility/node'; -import { complexNode } from '../../utility/complexNode'; -import { isValidString } from '../../utility/isValidString'; -import { trimString } from '../../utility/trimString'; -import { ordinalNumber } from '../../utility/ordinalNumber'; import { randomString } from '../../utility/randomString'; import { randomNumber } from '../../utility/randomNumber'; -export const CustomThemeForm = function({ +export const CustomThemeForm = function ({ customThemeData = false } = {}) { diff --git a/src/component/customThemeTile/index.js b/src/component/customThemeTile/index.js index 3c61b793..06ddd46f 100644 --- a/src/component/customThemeTile/index.js +++ b/src/component/customThemeTile/index.js @@ -6,7 +6,6 @@ import { toolbar } from '../toolbar'; import { layout } from '../layout'; import { header } from '../header'; import { bookmark } from '../bookmark'; -import { group } from '../group'; import { groupAndBookmark } from '../groupAndBookmark'; import { customTheme } from '../customTheme'; import { themeSetting } from '../menuContent/themeSetting'; @@ -19,7 +18,6 @@ import { StagedCustomTheme } from '../stagedCustomTheme'; import { node } from '../../utility/node'; import { convertColor } from '../../utility/convertColor'; import { isValidString } from '../../utility/isValidString'; -import { complexNode } from '../../utility/complexNode'; import { applyCSSVar } from '../../utility/applyCSSVar'; import { applyCSSClass } from '../../utility/applyCSSClass'; import { applyCSSState } from '../../utility/applyCSSState'; @@ -393,13 +391,13 @@ export const CustomThemeTile = function({ this.control.disable = () => { for (var key in this.control.button) { this.control.button[key].disable(); - }; + } }; this.control.enable = () => { for (var key in this.control.button) { this.control.button[key].enable(); - }; + } }; this.previewTile = () => { @@ -432,13 +430,13 @@ export const CustomThemeTile = function({ darken(); } else if (window.matchMedia('(prefers-color-scheme:light)').matches) { lighten(); - }; + } - }; + } - if (hsl.l < 0) { hsl.l = 0; }; + if (hsl.l < 0) { hsl.l = 0; } - if (hsl.l > 100) { hsl.l = 100; }; + if (hsl.l > 100) { hsl.l = 100; } let rgb = convertColor.hsl.rgb(hsl); @@ -453,7 +451,7 @@ export const CustomThemeTile = function({ this.element.preview.appendChild(node('span|class:theme-custom-background-0' + i)); - }; + } this.element.tile.style.setProperty('--theme-custom-text', '0, 0%, calc(((((var(--theme-custom-background-01-rgb-r) * var(--theme-t-r)) + (var(--theme-custom-background-01-rgb-g) * var(--theme-t-g)) + (var(--theme-custom-background-01-rgb-b) * var(--theme-t-b))) / 255) - var(--theme-t)) * -10000000%)'); @@ -465,7 +463,7 @@ export const CustomThemeTile = function({ this.element.preview.appendChild(node('span|class:theme-custom-accent')); - return node('div|class:theme-custom-tile') + return node('div|class:theme-custom-tile'); }; @@ -481,7 +479,7 @@ export const CustomThemeTile = function({ this.element.custom.button.appendChild(this.element.name); - }; + } this.element.front.appendChild(this.element.custom.button); @@ -499,7 +497,7 @@ export const CustomThemeTile = function({ this.control.enable(); } else { this.control.disable(); - }; + } }; diff --git a/src/component/data/index.js b/src/component/data/index.js index 504be02b..2eee6e65 100644 --- a/src/component/data/index.js +++ b/src/component/data/index.js @@ -3,7 +3,7 @@ import { bookmark } from '../bookmark'; import { menu } from '../menu'; import { version } from '../version'; import { update } from '../update'; -import { appName } from '../appName'; +import { APP_NAME } from '../../constant'; import { Modal } from '../modal'; import { ImportForm } from '../importForm'; @@ -17,11 +17,11 @@ import { clearChildNode } from '../../utility/clearChildNode'; const data = {}; data.set = (key, data) => { - localStorage.setItem(key, data); + window.localStorage.setItem(key, data); }; data.get = (key) => { - return localStorage.getItem(key); + return window.localStorage.getItem(key); }; data.import = { @@ -31,7 +31,6 @@ data.import = { theme: { include: true } }, reset: () => { - data.import.state.setup.include = true; data.import.state.bookmark.include = true; @@ -39,56 +38,46 @@ data.import = { data.import.state.bookmark.type = 'restore'; data.import.state.theme.include = true; - }, file: ({ fileList = false, feedback = false, input = false } = {}) => { - if (fileList.length > 0) { data.validate.file({ fileList: fileList, feedback: feedback, input: input }); - }; - + } }, drop: ({ fileList = false, feedback = false }) => { - if (fileList.length > 0) { data.validate.file({ fileList: fileList, feedback: feedback }); - }; - + } }, paste: ({ clipboardData = false, feedback = false }) => { - data.validate.paste({ clipboardData: clipboardData, feedback: feedback }); - }, render: (dataToImport) => { - let dataToCheck = JSON.parse(dataToImport); - if (dataToCheck.version != version.number) { - + if (dataToCheck.version !== version.number) { dataToCheck = data.update(dataToCheck); - - }; + } const importForm = new ImportForm({ dataToImport: dataToCheck, @@ -96,41 +85,34 @@ data.import = { }); const importModal = new Modal({ - heading: 'Restoring from a ' + appName + ' backup', + heading: 'Restoring from a ' + APP_NAME + ' backup', content: importForm.form(), successText: 'Import', width: 'small', successAction: () => { - if (data.import.state.setup.include || data.import.state.theme.include || data.import.state.bookmark.include) { - let dataToRestore = JSON.parse(dataToImport); - if (dataToRestore.version != version.number) { - + if (dataToRestore.version !== version.number) { data.backup(dataToRestore); dataToRestore = data.update(dataToRestore); - - }; + } data.restore(dataToRestore); data.save(); data.reload.render(); - - }; + } data.import.reset(); - }, cancelAction: () => { data.import.reset(); }, closeAction: () => { data.import.reset(); } }); importModal.open(); - } }; @@ -138,94 +120,67 @@ data.validate = { paste: ({ feedback = false } = {}) => { - navigator.clipboard.readText().then(clipboardData => { - // is the data a JSON object if (isJson(clipboardData)) { - // is this JSON from this app - if (JSON.parse(clipboardData)[appName] || JSON.parse(clipboardData)[appName.toLowerCase()]) { - + if (JSON.parse(clipboardData)[APP_NAME] || JSON.parse(clipboardData)[APP_NAME.toLowerCase()]) { data.feedback.clear.render(feedback); data.feedback.success.render(feedback, 'Clipboard data', () => { - menu.close(); data.import.render(clipboardData); - }); - } else { - data.feedback.clear.render(feedback); data.feedback.fail.notClipboardJson.render(feedback, 'Clipboard data'); - - }; - + } } else { - // not a JSON object data.feedback.clear.render(feedback); data.feedback.fail.notClipboardJson.render(feedback, 'Clipboard data'); - - }; - - }).catch(error => { - + } + }).catch(() => { data.feedback.clear.render(feedback); data.feedback.fail.notClipboardJson.render(feedback, 'Clipboard data'); - }); - }, file: ({ fileList = false, feedback = false, input = false } = {}) => { - // make new file reader - var reader = new FileReader(); + const reader = new window.FileReader(); // define the on load event for the reader reader.onload = (event) => { - // is this a JSON file if (isJson(event.target.result)) { - // is this JSON from this app - if (JSON.parse(event.target.result)[appName] || JSON.parse(event.target.result)[appName.toLowerCase()]) { - + if (JSON.parse(event.target.result)[APP_NAME] || JSON.parse(event.target.result)[APP_NAME.toLowerCase()]) { data.feedback.clear.render(feedback); data.feedback.success.render(feedback, fileList[0].name, () => { - menu.close(); data.import.render(event.target.result); - }); - if (input) { input.value = ''; }; - + if (input) { input.value = ''; } } else { - data.feedback.clear.render(feedback); data.feedback.fail.notAppJson.render(feedback, fileList[0].name); - if (input) { input.value = ''; }; - - }; - + if (input) { input.value = ''; } + } } else { - // not a JSON file data.feedback.clear.render(feedback); @@ -233,18 +188,13 @@ data.validate = { data.feedback.fail.notJson.render(feedback, fileList[0].name); if (input) { - input.value = ''; - - }; - - }; - + } + } }; // invoke the reader reader.readAsText(fileList.item(0)); - } }; @@ -254,7 +204,7 @@ data.export = () => { const leadingZero = (value) => { if (value < 10) { value = '0' + value; - }; + } return value; }; @@ -266,7 +216,7 @@ data.export = () => { timestamp.year = leadingZero(timestamp.year); timestamp = timestamp.year + '.' + timestamp.month + '.' + timestamp.date + ' - ' + timestamp.hours + ' ' + timestamp.minutes + ' ' + timestamp.seconds; - const fileName = appName + ' backup - ' + timestamp + '.json'; + const fileName = APP_NAME + ' backup - ' + timestamp + '.json'; const dataToExport = 'data:text/json;charset=utf-8,' + encodeURIComponent(JSON.stringify(data.load())); @@ -284,55 +234,41 @@ data.export = () => { }; data.remove = (key) => { - localStorage.removeItem(key); + window.localStorage.removeItem(key); }; data.backup = (dataToBackup) => { - if (dataToBackup) { - - data.set(appName + 'Backup', JSON.stringify(dataToBackup)); + data.set(APP_NAME + 'Backup', JSON.stringify(dataToBackup)); console.log('data version ' + dataToBackup.version + ' backed up'); - - }; - + } }; data.update = (dataToUpdate) => { - - if (dataToUpdate.version != version.number) { - + if (dataToUpdate.version !== version.number) { dataToUpdate = update.run(dataToUpdate); - } else { - console.log('data version:', version.number, 'no need to run update'); - - }; + } return dataToUpdate; - }; data.restore = (dataToRestore) => { - if (dataToRestore) { - console.log('data found to load'); if (data.import.state.setup.include) { state.set.restore.setup(dataToRestore); - }; + } if (data.import.state.theme.include) { state.set.restore.theme(dataToRestore); - }; + } if (data.import.state.bookmark.include) { - switch (data.import.state.bookmark.type) { - case 'restore': bookmark.restore(dataToRestore); break; @@ -340,24 +276,18 @@ data.restore = (dataToRestore) => { case 'append': bookmark.append(dataToRestore); break; - - }; - - }; - + } + } } else { - console.log('no data found to load'); state.set.default(); - - }; - + } }; data.save = () => { - data.set(appName, JSON.stringify({ - [appName]: true, + data.set(APP_NAME, JSON.stringify({ + [APP_NAME]: true, version: version.number, state: state.get.current(), bookmark: bookmark.all @@ -365,67 +295,54 @@ data.save = () => { }; data.load = () => { + if (data.get(APP_NAME) !== null && data.get(APP_NAME) !== undefined) { + let dataToLoad = JSON.parse(data.get(APP_NAME)); - if (data.get(appName) != null && data.get(appName) != undefined) { - - let dataToLoad = JSON.parse(data.get(appName)); - - if (dataToLoad.version != version.number) { - + if (dataToLoad.version !== version.number) { data.backup(dataToLoad); dataToLoad = data.update(dataToLoad); - - }; + } return dataToLoad; - } else { - return false; - - }; - + } }; data.wipe = { all: () => { - - data.remove(appName); + data.remove(APP_NAME); data.reload.render(); - }, partial: () => { - bookmark.reset(); - data.set(appName, JSON.stringify({ - [appName]: true, + data.set(APP_NAME, JSON.stringify({ + [APP_NAME]: true, version: version.number, state: state.get.default(), bookmark: bookmark.all })); data.reload.render(); - } }; data.reload = { render: () => { - location.reload(); + window.location.reload(); } }; data.clear = { all: { render: () => { - const clearModal = new Modal({ - heading: 'Clear all ' + appName + ' data?', + heading: 'Clear all ' + APP_NAME + ' data?', content: node('div', [ - node('p:Are you sure you want to clear all ' + appName + ' Bookmarks and Settings? ' + appName + ' will be restore to the default state.'), + node('p:Are you sure you want to clear all ' + APP_NAME + ' Bookmarks and Settings? ' + APP_NAME + ' will be restore to the default state.'), node('p:This can not be undone.') ]), successText: 'Clear all data', @@ -436,16 +353,14 @@ data.clear = { }); clearModal.open(); - } }, partial: { render: () => { - const clearModal = new Modal({ - heading: 'Clear ' + appName + ' data except bookmarks?', + heading: 'Clear ' + APP_NAME + ' data except bookmarks?', content: node('div', [ - node('p:Are you sure you want to clear all ' + appName + ' Settings? ' + appName + ' will be restore to the default state but your Bookmarks and Groups will remain.'), + node('p:Are you sure you want to clear all ' + APP_NAME + ' Settings? ' + APP_NAME + ' will be restore to the default state but your Bookmarks and Groups will remain.'), node('p:This can not be undone.') ]), successText: 'Clear all except bookmarks', @@ -456,7 +371,6 @@ data.clear = { }); clearModal.open(); - } } }; @@ -477,36 +391,34 @@ data.feedback.clear = { data.feedback.success = { render: (feedback, filename, action) => { - - feedback.appendChild(node('p:Success! Restoring ' + appName + ' Bookmarks and Settings.|class:muted small')); + feedback.appendChild(node('p:Success! Restoring ' + APP_NAME + ' Bookmarks and Settings.|class:muted small')); feedback.appendChild(node('p:' + filename)); if (action) { data.feedback.animation.set.render(feedback, 'is-pop', action); - }; - + } } }; data.feedback.fail = { notJson: { render: (feedback, filename) => { - feedback.appendChild(node('p:Not a JSON file. Make sure the selected file came from ' + appName + '.|class:small muted')); + feedback.appendChild(node('p:Not a JSON file. Make sure the selected file came from ' + APP_NAME + '.|class:small muted')); feedback.appendChild(complexNode({ tag: 'p', text: filename })); data.feedback.animation.set.render(feedback, 'is-shake'); } }, notAppJson: { render: (feedback, filename) => { - feedback.appendChild(node('p:Not the right kind of JSON file. Make sure the selected file came from ' + appName + '.|class:small muted')); + feedback.appendChild(node('p:Not the right kind of JSON file. Make sure the selected file came from ' + APP_NAME + '.|class:small muted')); feedback.appendChild(complexNode({ tag: 'p', text: filename })); data.feedback.animation.set.render(feedback, 'is-shake'); } }, notClipboardJson: { render: (feedback, name) => { - feedback.appendChild(node('p:Not the right kind of data. Make sure the clipboard holds data from ' + appName + ' or a ' + appName + ' backup JSON file.|class:small muted')); + feedback.appendChild(node('p:Not the right kind of data. Make sure the clipboard holds data from ' + APP_NAME + ' or a ' + APP_NAME + ' backup JSON file.|class:small muted')); feedback.appendChild(node('p:' + name)); data.feedback.animation.set.render(feedback, 'is-shake'); } @@ -521,7 +433,7 @@ data.feedback.animation = { const animationEndAction = () => { if (action) { action(); - }; + } data.feedback.animation.reset.render(feedback); }; diff --git a/src/component/date/index.js b/src/component/date/index.js index 30f8b0de..4332d51c 100644 --- a/src/component/date/index.js +++ b/src/component/date/index.js @@ -12,7 +12,7 @@ import moment from 'moment'; import './index.css'; -export const Date = function({} = {}) { +export const Date = function () { this.now; @@ -48,7 +48,7 @@ export const Date = function({} = {}) { if (state.get.current().header.date.day.length == 'short') { value = value.substring(0, 3); - }; + } break; @@ -59,14 +59,14 @@ export const Date = function({} = {}) { if (state.get.current().header.date.day.weekStart == 'monday') { if (value == 0) { value = 7; - }; + } } else if (state.get.current().header.date.day.weekStart == 'sunday') { value = value + 1; - }; + } break; - }; + } return value; @@ -84,7 +84,7 @@ export const Date = function({} = {}) { value = ordinalWord(wordNumber(this.now.date())); } else { value = wordNumber(this.now.date()); - }; + } break; @@ -94,11 +94,11 @@ export const Date = function({} = {}) { value = this.now.format('Do'); } else { value = this.now.format('D'); - }; + } break; - }; + } return value; @@ -115,7 +115,7 @@ export const Date = function({} = {}) { value = this.now.format('MMMM'); if (state.get.current().header.date.month.length == 'short') { value = value.substring(0, 3); - }; + } break; @@ -125,11 +125,11 @@ export const Date = function({} = {}) { value = this.now.format('Mo'); } else { value = this.now.format('M'); - }; + } break; - }; + } return value; @@ -153,7 +153,7 @@ export const Date = function({} = {}) { break; - }; + } return value; @@ -165,7 +165,7 @@ export const Date = function({} = {}) { if (state.get.current().header.date.day.show) { this.element.date.appendChild(this.element.day); - }; + } if (state.get.current().header.date.date.show && state.get.current().header.date.month.show) { @@ -175,11 +175,11 @@ export const Date = function({} = {}) { if (state.get.current().header.date.date.show) { this.element.date.appendChild(this.element.dateOfMonth); - }; + } if (state.get.current().header.date.month.show) { this.element.date.appendChild(this.element.month); - }; + } break; @@ -187,31 +187,31 @@ export const Date = function({} = {}) { if (state.get.current().header.date.month.show) { this.element.date.appendChild(this.element.month); - }; + } if (state.get.current().header.date.date.show) { this.element.date.appendChild(this.element.dateOfMonth); - }; + } break; - }; + } } else { if (state.get.current().header.date.date.show) { this.element.date.appendChild(this.element.dateOfMonth); - }; + } if (state.get.current().header.date.month.show) { this.element.date.appendChild(this.element.month); - }; + } - }; + } if (state.get.current().header.date.year.show) { this.element.date.appendChild(this.element.year); - }; + } if (state.get.current().header.date.separator.show) { @@ -221,7 +221,7 @@ export const Date = function({} = {}) { separatorCharacter = trimString(state.get.current().header.date.separator.text); } else { separatorCharacter = '/'; - }; + } let parts = this.element.date.querySelectorAll('span'); @@ -241,12 +241,12 @@ export const Date = function({} = {}) { this.element.date.insertBefore(separator, item); - }; + } }); - }; + } - }; + } }; @@ -258,19 +258,19 @@ export const Date = function({} = {}) { if (state.get.current().header.date.day.show) { this.element.day.innerHTML = this.string.day(); - }; + } if (state.get.current().header.date.date.show) { this.element.dateOfMonth.innerHTML = this.string.dateOfMonth(); - }; + } if (state.get.current().header.date.month.show) { this.element.month.innerHTML = this.string.month(); - }; + } if (state.get.current().header.date.year.show) { this.element.year.innerHTML = this.string.year(); - }; + } }; diff --git a/src/component/dropFile/index.js b/src/component/dropFile/index.js index 671c7918..f80715ac 100644 --- a/src/component/dropFile/index.js +++ b/src/component/dropFile/index.js @@ -1,14 +1,11 @@ -import { state } from '../state'; -import { data } from '../data'; import * as form from '../form'; import { node } from '../../utility/node'; -import { complexNode } from '../../utility/complexNode'; import './index.css'; -export const DropFile = function({ +export const DropFile = function ({ heading = 'Drop file here', dropAaction = false, enterAction = false, @@ -38,7 +35,7 @@ export const DropFile = function({ if (enterAction) { enterAction(); - }; + } }); @@ -51,7 +48,7 @@ export const DropFile = function({ if (leaveAction) { leaveAction(); - }; + } }); @@ -75,7 +72,7 @@ export const DropFile = function({ if (dropAaction) { dropAaction(); - }; + } }); @@ -90,7 +87,7 @@ export const DropFile = function({ children: [ this.element.drop ] - }) + }); }; this.assemble(); diff --git a/src/component/dropdown/index.js b/src/component/dropdown/index.js index e0fbebc9..bd39cbdc 100644 --- a/src/component/dropdown/index.js +++ b/src/component/dropdown/index.js @@ -1,15 +1,12 @@ -import { form } from '../form'; -import { icon } from '../icon'; import { Button } from '../button'; import { KeyboardShortcut } from '../keyboardShortcut'; -import { complexNode } from '../../utility/complexNode'; import { node } from '../../utility/node'; import './index.css'; -export const Dropdown = function({ +export const Dropdown = function ({ text = 'Dropdown', menuItem = [], buttonStyle = [], @@ -37,7 +34,7 @@ export const Dropdown = function({ this.close(); } else { this.open(); - }; + } } }) @@ -74,8 +71,8 @@ export const Dropdown = function({ const body = document.querySelector('body'); if (body.contains(this.element.menu)) { - body.removeChild(this.element.menu) - }; + body.removeChild(this.element.menu); + } this.bind.remove(); @@ -126,15 +123,15 @@ export const Dropdown = function({ this.close(); - }; + } }; this.position = () => { - const vWidth = window.innerWidth || doc.documentElement.clientWidth; + const vWidth = window.innerWidth; - const vHeight = window.innerHeight || doc.documentElement.clientHeight; + const vHeight = window.innerHeight; const dropdownRect = this.element.toggle.button.getBoundingClientRect(); @@ -146,7 +143,7 @@ export const Dropdown = function({ menuTop = dropdownRect.top - menuRect.height; } else { menuTop = dropdownRect.bottom; - }; + } let menuLeft = dropdownRect.left + (dropdownRect.width / 2) - (menuRect.width / 2); @@ -154,7 +151,7 @@ export const Dropdown = function({ menuLeft = 0; } else if ((menuLeft + menuRect.width) > vWidth) { menuLeft = vWidth - menuRect.width; - }; + } this.element.menu.style.setProperty('--dropdown-menu-top', menuTop); @@ -166,7 +163,7 @@ export const Dropdown = function({ if (menuItem.length > 0) { - menuItem.forEach((item, i) => { + menuItem.forEach((item) => { const dropdownMenuButton = new Button({ text: item.text, @@ -178,7 +175,7 @@ export const Dropdown = function({ if (item.action()) { item.action(); - }; + } this.close(); @@ -190,7 +187,7 @@ export const Dropdown = function({ this.element.menu.appendChild(this.element.content); - }; + } }; diff --git a/src/component/easterEgg/index.js b/src/component/easterEgg/index.js index ef9418cd..6b8d83c8 100644 --- a/src/component/easterEgg/index.js +++ b/src/component/easterEgg/index.js @@ -1,5 +1,4 @@ import { data } from '../data'; -import { state } from '../state'; import { menu } from '../menu'; import { bookmark } from '../bookmark'; import { group } from '../group'; @@ -8,7 +7,6 @@ import { groupAndBookmark } from '../groupAndBookmark'; import { StagedBookmark } from '../stagedBookmark'; import { StagedGroup } from '../stagedGroup'; -import { node } from '../../utility/node'; import { randomNumber } from '../../utility/randomNumber'; import { convertColor } from '../../utility/convertColor'; @@ -30,7 +28,7 @@ easterEgg.toaster.render = () => { group.item.mod.add(newGroupData); - }; + } const newBookmarkData = new StagedBookmark(); diff --git a/src/component/edge/index.js b/src/component/edge/index.js index 973af4fd..8e58a7cb 100644 --- a/src/component/edge/index.js +++ b/src/component/edge/index.js @@ -4,7 +4,7 @@ import { node } from '../../utility/node'; import './index.css'; -export const Edge = function({ +export const Edge = function ({ primary = false, secondary = false, padding = 0 @@ -40,7 +40,7 @@ export const Edge = function({ } }; - this.assemble = (edge) => { + this.assemble = () => { this.element.edge.primary = node('div|class:edge is-transparent'); @@ -52,13 +52,13 @@ export const Edge = function({ this.element.edge.primary.classList.remove('is-edge-opening'); - }; + } if (event.propertyName === 'opacity' && getComputedStyle(this.element.edge.primary).opacity == 0) { if (this.element.edge.primary.parentElement.contains(this.element.edge.primary)) { this.element.edge.primary.parentElement.removeChild(this.element.edge.primary); - }; + } this.element.edge.primary.removeAttribute('style'); @@ -66,7 +66,7 @@ export const Edge = function({ this.bind.remove(); - }; + } }); @@ -74,11 +74,11 @@ export const Edge = function({ if (secondary.length > 0) { - secondary.forEach((item, i) => { + secondary.forEach(() => { this.element.edge.secondary.push(node('div|class:edge-secondary is-transparent')); }); - this.element.edge.secondary.forEach((item, i) => { + this.element.edge.secondary.forEach((item) => { item.addEventListener('transitionend', (event) => { @@ -86,25 +86,25 @@ export const Edge = function({ item.classList.remove('is-edge-opening'); - }; + } if (event.propertyName === 'opacity' && getComputedStyle(item).opacity == 0) { if (item.parentElement.contains(item)) { item.parentElement.removeChild(item); - }; + } item.removeAttribute('style'); item.classList.remove('is-edge-opening'); - }; + } }); }); - }; + } }; @@ -116,7 +116,7 @@ export const Edge = function({ if (this.element.edge.secondary.length > 0) { - this.element.edge.secondary.forEach((item, i) => { + this.element.edge.secondary.forEach((item) => { item.classList.remove('is-opaque'); @@ -124,14 +124,11 @@ export const Edge = function({ }); - }; + } }; this.appear = (edge) => { - - const html = document.querySelector('html'); - const body = document.querySelector('body'); body.appendChild(edge); @@ -168,11 +165,11 @@ export const Edge = function({ this.appear(this.element.edge.secondary[i]); - }; + } }); - }; + } this.track(); @@ -230,7 +227,7 @@ export const Edge = function({ this.style(item, this.element.edge.secondary[i]); }); - }; + } }; @@ -239,7 +236,7 @@ export const Edge = function({ if (newPrimary) { primary = newPrimary; - }; + } this.assemble(); @@ -248,7 +245,7 @@ export const Edge = function({ if (newSecondary) { secondary = newSecondary; - }; + } this.assemble(); diff --git a/src/component/fontawesome/index.js b/src/component/fontawesome/index.js index 69da0195..933c855f 100644 --- a/src/component/fontawesome/index.js +++ b/src/component/fontawesome/index.js @@ -1,7188 +1,7188 @@ import './index.css'; export const fontawesome = [{ - name: "500px", + name: '500px', search: [], - styles: ["brands"], - label: "500px" + styles: ['brands'], + label: '500px' }, { - name: "accessible-icon", - search: ["accessibility", "handicap", "person", "wheelchair", "wheelchair-alt"], - styles: ["brands"], - label: "Accessible Icon" + name: 'accessible-icon', + search: ['accessibility', 'handicap', 'person', 'wheelchair', 'wheelchair-alt'], + styles: ['brands'], + label: 'Accessible Icon' }, { - name: "accusoft", + name: 'accusoft', search: [], - styles: ["brands"], - label: "Accusoft" + styles: ['brands'], + label: 'Accusoft' }, { - name: "acquisitions-incorporated", - search: ["Dungeons & Dragons", "d&d", "dnd", "fantasy", "game", "gaming", "tabletop"], - styles: ["brands"], - label: "Acquisitions Incorporated" + name: 'acquisitions-incorporated', + search: ['Dungeons & Dragons', 'd&d', 'dnd', 'fantasy', 'game', 'gaming', 'tabletop'], + styles: ['brands'], + label: 'Acquisitions Incorporated' }, { - name: "ad", - search: ["advertisement", "media", "newspaper", "promotion", "publicity"], - styles: ["solid"], - label: "Ad" + name: 'ad', + search: ['advertisement', 'media', 'newspaper', 'promotion', 'publicity'], + styles: ['solid'], + label: 'Ad' }, { - name: "address-book", - search: ["contact", "directory", "index", "little black book", "rolodex"], - styles: ["solid", "regular"], - label: "Address Book" + name: 'address-book', + search: ['contact', 'directory', 'index', 'little black book', 'rolodex'], + styles: ['solid', 'regular'], + label: 'Address Book' }, { - name: "address-card", - search: ["about", "contact", "id", "identification", "postcard", "profile"], - styles: ["solid", "regular"], - label: "Address Card" + name: 'address-card', + search: ['about', 'contact', 'id', 'identification', 'postcard', 'profile'], + styles: ['solid', 'regular'], + label: 'Address Card' }, { - name: "adjust", - search: ["contrast", "dark", "light", "saturation"], - styles: ["solid"], - label: "adjust" + name: 'adjust', + search: ['contrast', 'dark', 'light', 'saturation'], + styles: ['solid'], + label: 'adjust' }, { - name: "adn", + name: 'adn', search: [], - styles: ["brands"], - label: "App.net" + styles: ['brands'], + label: 'App.net' }, { - name: "adobe", - search: ["acrobat", "app", "design", "illustrator", "indesign", "photoshop"], - styles: ["brands"], - label: "Adobe" + name: 'adobe', + search: ['acrobat', 'app', 'design', 'illustrator', 'indesign', 'photoshop'], + styles: ['brands'], + label: 'Adobe' }, { - name: "adversal", + name: 'adversal', search: [], - styles: ["brands"], - label: "Adversal" + styles: ['brands'], + label: 'Adversal' }, { - name: "affiliatetheme", + name: 'affiliatetheme', search: [], - styles: ["brands"], - label: "affiliatetheme" + styles: ['brands'], + label: 'affiliatetheme' }, { - name: "air-freshener", - search: ["car", "deodorize", "fresh", "pine", "scent"], - styles: ["solid"], - label: "Air Freshener" + name: 'air-freshener', + search: ['car', 'deodorize', 'fresh', 'pine', 'scent'], + styles: ['solid'], + label: 'Air Freshener' }, { - name: "airbnb", + name: 'airbnb', search: [], - styles: ["brands"], - label: "Airbnb" + styles: ['brands'], + label: 'Airbnb' }, { - name: "algolia", + name: 'algolia', search: [], - styles: ["brands"], - label: "Algolia" + styles: ['brands'], + label: 'Algolia' }, { - name: "align-center", - search: ["format", "middle", "paragraph", "text"], - styles: ["solid"], - label: "align-center" + name: 'align-center', + search: ['format', 'middle', 'paragraph', 'text'], + styles: ['solid'], + label: 'align-center' }, { - name: "align-justify", - search: ["format", "paragraph", "text"], - styles: ["solid"], - label: "align-justify" + name: 'align-justify', + search: ['format', 'paragraph', 'text'], + styles: ['solid'], + label: 'align-justify' }, { - name: "align-left", - search: ["format", "paragraph", "text"], - styles: ["solid"], - label: "align-left" + name: 'align-left', + search: ['format', 'paragraph', 'text'], + styles: ['solid'], + label: 'align-left' }, { - name: "align-right", - search: ["format", "paragraph", "text"], - styles: ["solid"], - label: "align-right" + name: 'align-right', + search: ['format', 'paragraph', 'text'], + styles: ['solid'], + label: 'align-right' }, { - name: "alipay", + name: 'alipay', search: [], - styles: ["brands"], - label: "Alipay" + styles: ['brands'], + label: 'Alipay' }, { - name: "allergies", - search: ["allergy", "freckles", "hand", "hives", "pox", "skin", "spots"], - styles: ["solid"], - label: "Allergies" + name: 'allergies', + search: ['allergy', 'freckles', 'hand', 'hives', 'pox', 'skin', 'spots'], + styles: ['solid'], + label: 'Allergies' }, { - name: "amazon", + name: 'amazon', search: [], - styles: ["brands"], - label: "Amazon" + styles: ['brands'], + label: 'Amazon' }, { - name: "amazon-pay", + name: 'amazon-pay', search: [], - styles: ["brands"], - label: "Amazon Pay" + styles: ['brands'], + label: 'Amazon Pay' }, { - name: "ambulance", - search: ["covid-19", "emergency", "emt", "er", "help", "hospital", "support", "vehicle"], - styles: ["solid"], - label: "ambulance" + name: 'ambulance', + search: ['covid-19', 'emergency', 'emt', 'er', 'help', 'hospital', 'support', 'vehicle'], + styles: ['solid'], + label: 'ambulance' }, { - name: "american-sign-language-interpreting", - search: ["asl", "deaf", "finger", "hand", "interpret", "speak"], - styles: ["solid"], - label: "American Sign Language Interpreting" + name: 'american-sign-language-interpreting', + search: ['asl', 'deaf', 'finger', 'hand', 'interpret', 'speak'], + styles: ['solid'], + label: 'American Sign Language Interpreting' }, { - name: "amilia", + name: 'amilia', search: [], - styles: ["brands"], - label: "Amilia" + styles: ['brands'], + label: 'Amilia' }, { - name: "anchor", - search: ["berth", "boat", "dock", "embed", "link", "maritime", "moor", "secure"], - styles: ["solid"], - label: "Anchor" + name: 'anchor', + search: ['berth', 'boat', 'dock', 'embed', 'link', 'maritime', 'moor', 'secure'], + styles: ['solid'], + label: 'Anchor' }, { - name: "android", - search: ["robot"], - styles: ["brands"], - label: "Android" + name: 'android', + search: ['robot'], + styles: ['brands'], + label: 'Android' }, { - name: "angellist", + name: 'angellist', search: [], - styles: ["brands"], - label: "AngelList" + styles: ['brands'], + label: 'AngelList' }, { - name: "angle-double-down", - search: ["arrows", "caret", "download", "expand"], - styles: ["solid"], - label: "Angle Double Down" + name: 'angle-double-down', + search: ['arrows', 'caret', 'download', 'expand'], + styles: ['solid'], + label: 'Angle Double Down' }, { - name: "angle-double-left", - search: ["arrows", "back", "caret", "laquo", "previous", "quote"], - styles: ["solid"], - label: "Angle Double Left" + name: 'angle-double-left', + search: ['arrows', 'back', 'caret', 'laquo', 'previous', 'quote'], + styles: ['solid'], + label: 'Angle Double Left' }, { - name: "angle-double-right", - search: ["arrows", "caret", "forward", "more", "next", "quote", "raquo"], - styles: ["solid"], - label: "Angle Double Right" + name: 'angle-double-right', + search: ['arrows', 'caret', 'forward', 'more', 'next', 'quote', 'raquo'], + styles: ['solid'], + label: 'Angle Double Right' }, { - name: "angle-double-up", - search: ["arrows", "caret", "collapse", "upload"], - styles: ["solid"], - label: "Angle Double Up" + name: 'angle-double-up', + search: ['arrows', 'caret', 'collapse', 'upload'], + styles: ['solid'], + label: 'Angle Double Up' }, { - name: "angle-down", - search: ["arrow", "caret", "download", "expand"], - styles: ["solid"], - label: "angle-down" + name: 'angle-down', + search: ['arrow', 'caret', 'download', 'expand'], + styles: ['solid'], + label: 'angle-down' }, { - name: "angle-left", - search: ["arrow", "back", "caret", "less", "previous"], - styles: ["solid"], - label: "angle-left" + name: 'angle-left', + search: ['arrow', 'back', 'caret', 'less', 'previous'], + styles: ['solid'], + label: 'angle-left' }, { - name: "angle-right", - search: ["arrow", "care", "forward", "more", "next"], - styles: ["solid"], - label: "angle-right" + name: 'angle-right', + search: ['arrow', 'care', 'forward', 'more', 'next'], + styles: ['solid'], + label: 'angle-right' }, { - name: "angle-up", - search: ["arrow", "caret", "collapse", "upload"], - styles: ["solid"], - label: "angle-up" + name: 'angle-up', + search: ['arrow', 'caret', 'collapse', 'upload'], + styles: ['solid'], + label: 'angle-up' }, { - name: "angry", - search: ["disapprove", "emoticon", "face", "mad", "upset"], - styles: ["solid", "regular"], - label: "Angry Face" + name: 'angry', + search: ['disapprove', 'emoticon', 'face', 'mad', 'upset'], + styles: ['solid', 'regular'], + label: 'Angry Face' }, { - name: "angrycreative", + name: 'angrycreative', search: [], - styles: ["brands"], - label: "Angry Creative" + styles: ['brands'], + label: 'Angry Creative' }, { - name: "angular", + name: 'angular', search: [], - styles: ["brands"], - label: "Angular" + styles: ['brands'], + label: 'Angular' }, { - name: "ankh", - search: ["amulet", "copper", "coptic christianity", "copts", "crux ansata", "egypt", "venus"], - styles: ["solid"], - label: "Ankh" + name: 'ankh', + search: ['amulet', 'copper', 'coptic christianity', 'copts', 'crux ansata', 'egypt', 'venus'], + styles: ['solid'], + label: 'Ankh' }, { - name: "app-store", + name: 'app-store', search: [], - styles: ["brands"], - label: "App Store" + styles: ['brands'], + label: 'App Store' }, { - name: "app-store-ios", - search: [], - styles: ["brands"], - label: "iOS App Store" -}, { - name: "apper", - search: [], - styles: ["brands"], - label: "Apper Systems AB" -}, { - name: "apple", - search: ["fruit", "ios", "mac", "operating system", "os", "osx"], - styles: ["brands"], - label: "Apple" + name: 'app-store-ios', + search: [], + styles: ['brands'], + label: 'iOS App Store' +}, { + name: 'apper', + search: [], + styles: ['brands'], + label: 'Apper Systems AB' +}, { + name: 'apple', + search: ['fruit', 'ios', 'mac', 'operating system', 'os', 'osx'], + styles: ['brands'], + label: 'Apple' }, { - name: "apple-alt", - search: ["fall", "fruit", "fuji", "macintosh", "orchard", "seasonal", "vegan"], - styles: ["solid"], - label: "Fruit Apple" -}, { - name: "apple-pay", - search: [], - styles: ["brands"], - label: "Apple Pay" -}, { - name: "archive", - search: ["box", "package", "save", "storage"], - styles: ["solid"], - label: "Archive" + name: 'apple-alt', + search: ['fall', 'fruit', 'fuji', 'macintosh', 'orchard', 'seasonal', 'vegan'], + styles: ['solid'], + label: 'Fruit Apple' +}, { + name: 'apple-pay', + search: [], + styles: ['brands'], + label: 'Apple Pay' +}, { + name: 'archive', + search: ['box', 'package', 'save', 'storage'], + styles: ['solid'], + label: 'Archive' }, { - name: "archway", - search: ["arc", "monument", "road", "street", "tunnel"], - styles: ["solid"], - label: "Archway" -}, { - name: "arrow-alt-circle-down", - search: ["arrow-circle-o-down", "download"], - styles: ["solid", "regular"], - label: "Alternate Arrow Circle Down" -}, { - name: "arrow-alt-circle-left", - search: ["arrow-circle-o-left", "back", "previous"], - styles: ["solid", "regular"], - label: "Alternate Arrow Circle Left" + name: 'archway', + search: ['arc', 'monument', 'road', 'street', 'tunnel'], + styles: ['solid'], + label: 'Archway' +}, { + name: 'arrow-alt-circle-down', + search: ['arrow-circle-o-down', 'download'], + styles: ['solid', 'regular'], + label: 'Alternate Arrow Circle Down' +}, { + name: 'arrow-alt-circle-left', + search: ['arrow-circle-o-left', 'back', 'previous'], + styles: ['solid', 'regular'], + label: 'Alternate Arrow Circle Left' }, { - name: "arrow-alt-circle-right", - search: ["arrow-circle-o-right", "forward", "next"], - styles: ["solid", "regular"], - label: "Alternate Arrow Circle Right" + name: 'arrow-alt-circle-right', + search: ['arrow-circle-o-right', 'forward', 'next'], + styles: ['solid', 'regular'], + label: 'Alternate Arrow Circle Right' }, { - name: "arrow-alt-circle-up", - search: ["arrow-circle-o-up"], - styles: ["solid", "regular"], - label: "Alternate Arrow Circle Up" + name: 'arrow-alt-circle-up', + search: ['arrow-circle-o-up'], + styles: ['solid', 'regular'], + label: 'Alternate Arrow Circle Up' }, { - name: "arrow-circle-down", - search: ["download"], - styles: ["solid"], - label: "Arrow Circle Down" + name: 'arrow-circle-down', + search: ['download'], + styles: ['solid'], + label: 'Arrow Circle Down' }, { - name: "arrow-circle-left", - search: ["back", "previous"], - styles: ["solid"], - label: "Arrow Circle Left" + name: 'arrow-circle-left', + search: ['back', 'previous'], + styles: ['solid'], + label: 'Arrow Circle Left' }, { - name: "arrow-circle-right", - search: ["forward", "next"], - styles: ["solid"], - label: "Arrow Circle Right" + name: 'arrow-circle-right', + search: ['forward', 'next'], + styles: ['solid'], + label: 'Arrow Circle Right' }, { - name: "arrow-circle-up", - search: ["upload"], - styles: ["solid"], - label: "Arrow Circle Up" + name: 'arrow-circle-up', + search: ['upload'], + styles: ['solid'], + label: 'Arrow Circle Up' }, { - name: "arrow-down", - search: ["download"], - styles: ["solid"], - label: "arrow-down" + name: 'arrow-down', + search: ['download'], + styles: ['solid'], + label: 'arrow-down' }, { - name: "arrow-left", - search: ["back", "previous"], - styles: ["solid"], - label: "arrow-left" + name: 'arrow-left', + search: ['back', 'previous'], + styles: ['solid'], + label: 'arrow-left' }, { - name: "arrow-right", - search: ["forward", "next"], - styles: ["solid"], - label: "arrow-right" + name: 'arrow-right', + search: ['forward', 'next'], + styles: ['solid'], + label: 'arrow-right' }, { - name: "arrow-up", - search: ["forward", "upload"], - styles: ["solid"], - label: "arrow-up" + name: 'arrow-up', + search: ['forward', 'upload'], + styles: ['solid'], + label: 'arrow-up' }, { - name: "arrows-alt", - search: ["arrow", "arrows", "bigger", "enlarge", "expand", "fullscreen", "move", "position", "reorder", "resize"], - styles: ["solid"], - label: "Alternate Arrows" + name: 'arrows-alt', + search: ['arrow', 'arrows', 'bigger', 'enlarge', 'expand', 'fullscreen', 'move', 'position', 'reorder', 'resize'], + styles: ['solid'], + label: 'Alternate Arrows' }, { - name: "arrows-alt-h", - search: ["arrows-h", "expand", "horizontal", "landscape", "resize", "wide"], - styles: ["solid"], - label: "Alternate Arrows Horizontal" + name: 'arrows-alt-h', + search: ['arrows-h', 'expand', 'horizontal', 'landscape', 'resize', 'wide'], + styles: ['solid'], + label: 'Alternate Arrows Horizontal' }, { - name: "arrows-alt-v", - search: ["arrows-v", "expand", "portrait", "resize", "tall", "vertical"], - styles: ["solid"], - label: "Alternate Arrows Vertical" + name: 'arrows-alt-v', + search: ['arrows-v', 'expand', 'portrait', 'resize', 'tall', 'vertical'], + styles: ['solid'], + label: 'Alternate Arrows Vertical' }, { - name: "artstation", - search: [], - styles: ["brands"], - label: "Artstation" + name: 'artstation', + search: [], + styles: ['brands'], + label: 'Artstation' }, { - name: "assistive-listening-systems", - search: ["amplify", "audio", "deaf", "ear", "headset", "hearing", "sound"], - styles: ["solid"], - label: "Assistive Listening Systems" + name: 'assistive-listening-systems', + search: ['amplify', 'audio', 'deaf', 'ear', 'headset', 'hearing', 'sound'], + styles: ['solid'], + label: 'Assistive Listening Systems' }, { - name: "asterisk", - search: ["annotation", "details", "reference", "star"], - styles: ["solid"], - label: "asterisk" -}, { - name: "asymmetrik", - search: [], - styles: ["brands"], - label: "Asymmetrik, Ltd." -}, { - name: "at", - search: ["address", "author", "e-mail", "email", "handle"], - styles: ["solid"], - label: "At" -}, { - name: "atlas", - search: ["book", "directions", "geography", "globe", "map", "travel", "wayfinding"], - styles: ["solid"], - label: "Atlas" -}, { - name: "atlassian", - search: [], - styles: ["brands"], - label: "Atlassian" + name: 'asterisk', + search: ['annotation', 'details', 'reference', 'star'], + styles: ['solid'], + label: 'asterisk' +}, { + name: 'asymmetrik', + search: [], + styles: ['brands'], + label: 'Asymmetrik, Ltd.' +}, { + name: 'at', + search: ['address', 'author', 'e-mail', 'email', 'handle'], + styles: ['solid'], + label: 'At' +}, { + name: 'atlas', + search: ['book', 'directions', 'geography', 'globe', 'map', 'travel', 'wayfinding'], + styles: ['solid'], + label: 'Atlas' +}, { + name: 'atlassian', + search: [], + styles: ['brands'], + label: 'Atlassian' }, { - name: "atom", - search: ["atheism", "chemistry", "electron", "ion", "isotope", "neutron", "nuclear", "proton", "science"], - styles: ["solid"], - label: "Atom" + name: 'atom', + search: ['atheism', 'chemistry', 'electron', 'ion', 'isotope', 'neutron', 'nuclear', 'proton', 'science'], + styles: ['solid'], + label: 'Atom' }, { - name: "audible", - search: [], - styles: ["brands"], - label: "Audible" + name: 'audible', + search: [], + styles: ['brands'], + label: 'Audible' }, { - name: "audio-description", - search: ["blind", "narration", "video", "visual"], - styles: ["solid"], - label: "Audio Description" + name: 'audio-description', + search: ['blind', 'narration', 'video', 'visual'], + styles: ['solid'], + label: 'Audio Description' }, { - name: "autoprefixer", - search: [], - styles: ["brands"], - label: "Autoprefixer" + name: 'autoprefixer', + search: [], + styles: ['brands'], + label: 'Autoprefixer' }, { - name: "avianex", - search: [], - styles: ["brands"], - label: "avianex" + name: 'avianex', + search: [], + styles: ['brands'], + label: 'avianex' }, { - name: "aviato", - search: [], - styles: ["brands"], - label: "Aviato" + name: 'aviato', + search: [], + styles: ['brands'], + label: 'Aviato' }, { - name: "award", - search: ["honor", "praise", "prize", "recognition", "ribbon", "trophy"], - styles: ["solid"], - label: "Award" + name: 'award', + search: ['honor', 'praise', 'prize', 'recognition', 'ribbon', 'trophy'], + styles: ['solid'], + label: 'Award' }, { - name: "aws", - search: [], - styles: ["brands"], - label: "Amazon Web Services (AWS)" + name: 'aws', + search: [], + styles: ['brands'], + label: 'Amazon Web Services (AWS)' }, { - name: "baby", - search: ["child", "diaper", "doll", "human", "infant", "kid", "offspring", "person", "sprout"], - styles: ["solid"], - label: "Baby" + name: 'baby', + search: ['child', 'diaper', 'doll', 'human', 'infant', 'kid', 'offspring', 'person', 'sprout'], + styles: ['solid'], + label: 'Baby' }, { - name: "baby-carriage", - search: ["buggy", "carrier", "infant", "push", "stroller", "transportation", "walk", "wheels"], - styles: ["solid"], - label: "Baby Carriage" + name: 'baby-carriage', + search: ['buggy', 'carrier', 'infant', 'push', 'stroller', 'transportation', 'walk', 'wheels'], + styles: ['solid'], + label: 'Baby Carriage' }, { - name: "backspace", - search: ["command", "delete", "erase", "keyboard", "undo"], - styles: ["solid"], - label: "Backspace" + name: 'backspace', + search: ['command', 'delete', 'erase', 'keyboard', 'undo'], + styles: ['solid'], + label: 'Backspace' }, { - name: "backward", - search: ["previous", "rewind"], - styles: ["solid"], - label: "backward" + name: 'backward', + search: ['previous', 'rewind'], + styles: ['solid'], + label: 'backward' }, { - name: "bacon", - search: ["blt", "breakfast", "ham", "lard", "meat", "pancetta", "pork", "rasher"], - styles: ["solid"], - label: "Bacon" + name: 'bacon', + search: ['blt', 'breakfast', 'ham', 'lard', 'meat', 'pancetta', 'pork', 'rasher'], + styles: ['solid'], + label: 'Bacon' }, { - name: "bahai", - search: ["bahai", "bahá'í", "star"], - styles: ["solid"], - label: "Bahá'í" + name: 'bahai', + search: ['bahai', 'bahá\'í', 'star'], + styles: ['solid'], + label: 'Bahá\'í' }, { - name: "balance-scale", - search: ["balanced", "justice", "legal", "measure", "weight"], - styles: ["solid"], - label: "Balance Scale" + name: 'balance-scale', + search: ['balanced', 'justice', 'legal', 'measure', 'weight'], + styles: ['solid'], + label: 'Balance Scale' }, { - name: "balance-scale-left", - search: ["justice", "legal", "measure", "unbalanced", "weight"], - styles: ["solid"], - label: "Balance Scale (Left-Weighted)" + name: 'balance-scale-left', + search: ['justice', 'legal', 'measure', 'unbalanced', 'weight'], + styles: ['solid'], + label: 'Balance Scale (Left-Weighted)' }, { - name: "balance-scale-right", - search: ["justice", "legal", "measure", "unbalanced", "weight"], - styles: ["solid"], - label: "Balance Scale (Right-Weighted)" + name: 'balance-scale-right', + search: ['justice', 'legal', 'measure', 'unbalanced', 'weight'], + styles: ['solid'], + label: 'Balance Scale (Right-Weighted)' }, { - name: "ban", - search: ["abort", "ban", "block", "cancel", "delete", "hide", "prohibit", "remove", "stop", "trash"], - styles: ["solid"], - label: "ban" + name: 'ban', + search: ['abort', 'ban', 'block', 'cancel', 'delete', 'hide', 'prohibit', 'remove', 'stop', 'trash'], + styles: ['solid'], + label: 'ban' }, { - name: "band-aid", - search: ["bandage", "boo boo", "first aid", "ouch"], - styles: ["solid"], - label: "Band-Aid" + name: 'band-aid', + search: ['bandage', 'boo boo', 'first aid', 'ouch'], + styles: ['solid'], + label: 'Band-Aid' }, { - name: "bandcamp", + name: 'bandcamp', search: [], - styles: ["brands"], - label: "Bandcamp" + styles: ['brands'], + label: 'Bandcamp' }, { - name: "barcode", - search: ["info", "laser", "price", "scan", "upc"], - styles: ["solid"], - label: "barcode" + name: 'barcode', + search: ['info', 'laser', 'price', 'scan', 'upc'], + styles: ['solid'], + label: 'barcode' }, { - name: "bars", - search: ["checklist", "drag", "hamburger", "list", "menu", "nav", "navigation", "ol", "reorder", "settings", "todo", "ul"], - styles: ["solid"], - label: "Bars" + name: 'bars', + search: ['checklist', 'drag', 'hamburger', 'list', 'menu', 'nav', 'navigation', 'ol', 'reorder', 'settings', 'todo', 'ul'], + styles: ['solid'], + label: 'Bars' }, { - name: "baseball-ball", - search: ["foul", "hardball", "league", "leather", "mlb", "softball", "sport"], - styles: ["solid"], - label: "Baseball Ball" + name: 'baseball-ball', + search: ['foul', 'hardball', 'league', 'leather', 'mlb', 'softball', 'sport'], + styles: ['solid'], + label: 'Baseball Ball' }, { - name: "basketball-ball", - search: ["dribble", "dunk", "hoop", "nba"], - styles: ["solid"], - label: "Basketball Ball" -}, { - name: "bath", - search: ["clean", "shower", "tub", "wash"], - styles: ["solid"], - label: "Bath" -}, { - name: "battery-empty", - search: ["charge", "dead", "power", "status"], - styles: ["solid"], - label: "Battery Empty" -}, { - name: "battery-full", - search: ["charge", "power", "status"], - styles: ["solid"], - label: "Battery Full" -}, { - name: "battery-half", - search: ["charge", "power", "status"], - styles: ["solid"], - label: "Battery 1/2 Full" -}, { - name: "battery-quarter", - search: ["charge", "low", "power", "status"], - styles: ["solid"], - label: "Battery 1/4 Full" -}, { - name: "battery-three-quarters", - search: ["charge", "power", "status"], - styles: ["solid"], - label: "Battery 3/4 Full" + name: 'basketball-ball', + search: ['dribble', 'dunk', 'hoop', 'nba'], + styles: ['solid'], + label: 'Basketball Ball' +}, { + name: 'bath', + search: ['clean', 'shower', 'tub', 'wash'], + styles: ['solid'], + label: 'Bath' +}, { + name: 'battery-empty', + search: ['charge', 'dead', 'power', 'status'], + styles: ['solid'], + label: 'Battery Empty' +}, { + name: 'battery-full', + search: ['charge', 'power', 'status'], + styles: ['solid'], + label: 'Battery Full' +}, { + name: 'battery-half', + search: ['charge', 'power', 'status'], + styles: ['solid'], + label: 'Battery 1/2 Full' +}, { + name: 'battery-quarter', + search: ['charge', 'low', 'power', 'status'], + styles: ['solid'], + label: 'Battery 1/4 Full' +}, { + name: 'battery-three-quarters', + search: ['charge', 'power', 'status'], + styles: ['solid'], + label: 'Battery 3/4 Full' }, { - name: "battle-net", - search: [], - styles: ["brands"], - label: "Battle.net" + name: 'battle-net', + search: [], + styles: ['brands'], + label: 'Battle.net' }, { - name: "bed", - search: ["lodging", "mattress", "rest", "sleep", "travel"], - styles: ["solid"], - label: "Bed" + name: 'bed', + search: ['lodging', 'mattress', 'rest', 'sleep', 'travel'], + styles: ['solid'], + label: 'Bed' }, { - name: "beer", - search: ["alcohol", "ale", "bar", "beverage", "brewery", "drink", "lager", "liquor", "mug", "stein"], - styles: ["solid"], - label: "beer" + name: 'beer', + search: ['alcohol', 'ale', 'bar', 'beverage', 'brewery', 'drink', 'lager', 'liquor', 'mug', 'stein'], + styles: ['solid'], + label: 'beer' }, { - name: "behance", - search: [], - styles: ["brands"], - label: "Behance" + name: 'behance', + search: [], + styles: ['brands'], + label: 'Behance' }, { - name: "behance-square", + name: 'behance-square', search: [], - styles: ["brands"], - label: "Behance Square" + styles: ['brands'], + label: 'Behance Square' }, { - name: "bell", - search: ["alarm", "alert", "chime", "notification", "reminder"], - styles: ["solid", "regular"], - label: "bell" + name: 'bell', + search: ['alarm', 'alert', 'chime', 'notification', 'reminder'], + styles: ['solid', 'regular'], + label: 'bell' }, { - name: "bell-slash", - search: ["alert", "cancel", "disabled", "notification", "off", "reminder"], - styles: ["solid", "regular"], - label: "Bell Slash" + name: 'bell-slash', + search: ['alert', 'cancel', 'disabled', 'notification', 'off', 'reminder'], + styles: ['solid', 'regular'], + label: 'Bell Slash' }, { - name: "bezier-curve", - search: ["curves", "illustrator", "lines", "path", "vector"], - styles: ["solid"], - label: "Bezier Curve" + name: 'bezier-curve', + search: ['curves', 'illustrator', 'lines', 'path', 'vector'], + styles: ['solid'], + label: 'Bezier Curve' }, { - name: "bible", - search: ["book", "catholicism", "christianity", "god", "holy"], - styles: ["solid"], - label: "Bible" + name: 'bible', + search: ['book', 'catholicism', 'christianity', 'god', 'holy'], + styles: ['solid'], + label: 'Bible' }, { - name: "bicycle", - search: ["bike", "gears", "pedal", "transportation", "vehicle"], - styles: ["solid"], - label: "Bicycle" + name: 'bicycle', + search: ['bike', 'gears', 'pedal', 'transportation', 'vehicle'], + styles: ['solid'], + label: 'Bicycle' }, { - name: "biking", - search: ["bicycle", "bike", "cycle", "cycling", "ride", "wheel"], - styles: ["solid"], - label: "Biking" + name: 'biking', + search: ['bicycle', 'bike', 'cycle', 'cycling', 'ride', 'wheel'], + styles: ['solid'], + label: 'Biking' }, { - name: "bimobject", + name: 'bimobject', search: [], - styles: ["brands"], - label: "BIMobject" + styles: ['brands'], + label: 'BIMobject' }, { - name: "binoculars", - search: ["glasses", "magnify", "scenic", "spyglass", "view"], - styles: ["solid"], - label: "Binoculars" + name: 'binoculars', + search: ['glasses', 'magnify', 'scenic', 'spyglass', 'view'], + styles: ['solid'], + label: 'Binoculars' }, { - name: "biohazard", - search: ["covid-19", "danger", "dangerous", "hazmat", "medical", "radioactive", "toxic", "waste", "zombie"], - styles: ["solid"], - label: "Biohazard" + name: 'biohazard', + search: ['covid-19', 'danger', 'dangerous', 'hazmat', 'medical', 'radioactive', 'toxic', 'waste', 'zombie'], + styles: ['solid'], + label: 'Biohazard' }, { - name: "birthday-cake", - search: ["anniversary", "bakery", "candles", "celebration", "dessert", "frosting", "holiday", "party", "pastry"], - styles: ["solid"], - label: "Birthday Cake" + name: 'birthday-cake', + search: ['anniversary', 'bakery', 'candles', 'celebration', 'dessert', 'frosting', 'holiday', 'party', 'pastry'], + styles: ['solid'], + label: 'Birthday Cake' }, { - name: "bitbucket", - search: ["atlassian", "bitbucket-square", "git"], - styles: ["brands"], - label: "Bitbucket" + name: 'bitbucket', + search: ['atlassian', 'bitbucket-square', 'git'], + styles: ['brands'], + label: 'Bitbucket' }, { - name: "bitcoin", + name: 'bitcoin', search: [], - styles: ["brands"], - label: "Bitcoin" + styles: ['brands'], + label: 'Bitcoin' }, { - name: "bity", + name: 'bity', search: [], - styles: ["brands"], - label: "Bity" + styles: ['brands'], + label: 'Bity' }, { - name: "black-tie", + name: 'black-tie', search: [], - styles: ["brands"], - label: "Font Awesome Black Tie" + styles: ['brands'], + label: 'Font Awesome Black Tie' }, { - name: "blackberry", + name: 'blackberry', search: [], - styles: ["brands"], - label: "BlackBerry" + styles: ['brands'], + label: 'BlackBerry' }, { - name: "blender", - search: ["cocktail", "milkshake", "mixer", "puree", "smoothie"], - styles: ["solid"], - label: "Blender" + name: 'blender', + search: ['cocktail', 'milkshake', 'mixer', 'puree', 'smoothie'], + styles: ['solid'], + label: 'Blender' }, { - name: "blender-phone", - search: ["appliance", "cocktail", "communication", "fantasy", "milkshake", "mixer", "puree", "silly", "smoothie"], - styles: ["solid"], - label: "Blender Phone" + name: 'blender-phone', + search: ['appliance', 'cocktail', 'communication', 'fantasy', 'milkshake', 'mixer', 'puree', 'silly', 'smoothie'], + styles: ['solid'], + label: 'Blender Phone' }, { - name: "blind", - search: ["cane", "disability", "person", "sight"], - styles: ["solid"], - label: "Blind" + name: 'blind', + search: ['cane', 'disability', 'person', 'sight'], + styles: ['solid'], + label: 'Blind' }, { - name: "blog", - search: ["journal", "log", "online", "personal", "post", "web 2.0", "wordpress", "writing"], - styles: ["solid"], - label: "Blog" + name: 'blog', + search: ['journal', 'log', 'online', 'personal', 'post', 'web 2.0', 'wordpress', 'writing'], + styles: ['solid'], + label: 'Blog' }, { - name: "blogger", + name: 'blogger', search: [], - styles: ["brands"], - label: "Blogger" + styles: ['brands'], + label: 'Blogger' }, { - name: "blogger-b", + name: 'blogger-b', search: [], - styles: ["brands"], - label: "Blogger B" + styles: ['brands'], + label: 'Blogger B' }, { - name: "bluetooth", + name: 'bluetooth', search: [], - styles: ["brands"], - label: "Bluetooth" + styles: ['brands'], + label: 'Bluetooth' }, { - name: "bluetooth-b", + name: 'bluetooth-b', search: [], - styles: ["brands"], - label: "Bluetooth" + styles: ['brands'], + label: 'Bluetooth' }, { - name: "bold", - search: ["emphasis", "format", "text"], - styles: ["solid"], - label: "bold" + name: 'bold', + search: ['emphasis', 'format', 'text'], + styles: ['solid'], + label: 'bold' }, { - name: "bolt", - search: ["electricity", "lightning", "weather", "zap"], - styles: ["solid"], - label: "Lightning Bolt" + name: 'bolt', + search: ['electricity', 'lightning', 'weather', 'zap'], + styles: ['solid'], + label: 'Lightning Bolt' }, { - name: "bomb", - search: ["error", "explode", "fuse", "grenade", "warning"], - styles: ["solid"], - label: "Bomb" + name: 'bomb', + search: ['error', 'explode', 'fuse', 'grenade', 'warning'], + styles: ['solid'], + label: 'Bomb' }, { - name: "bone", - search: ["calcium", "dog", "skeletal", "skeleton", "tibia"], - styles: ["solid"], - label: "Bone" + name: 'bone', + search: ['calcium', 'dog', 'skeletal', 'skeleton', 'tibia'], + styles: ['solid'], + label: 'Bone' }, { - name: "bong", - search: ["aparatus", "cannabis", "marijuana", "pipe", "smoke", "smoking"], - styles: ["solid"], - label: "Bong" + name: 'bong', + search: ['aparatus', 'cannabis', 'marijuana', 'pipe', 'smoke', 'smoking'], + styles: ['solid'], + label: 'Bong' }, { - name: "book", - search: ["diary", "documentation", "journal", "library", "read"], - styles: ["solid"], - label: "book" + name: 'book', + search: ['diary', 'documentation', 'journal', 'library', 'read'], + styles: ['solid'], + label: 'book' }, { - name: "book-dead", - search: ["Dungeons & Dragons", "crossbones", "d&d", "dark arts", "death", "dnd", "documentation", "evil", "fantasy", "halloween", "holiday", "necronomicon", "read", "skull", "spell"], - styles: ["solid"], - label: "Book of the Dead" + name: 'book-dead', + search: ['Dungeons & Dragons', 'crossbones', 'd&d', 'dark arts', 'death', 'dnd', 'documentation', 'evil', 'fantasy', 'halloween', 'holiday', 'necronomicon', 'read', 'skull', 'spell'], + styles: ['solid'], + label: 'Book of the Dead' }, { - name: "book-medical", - search: ["diary", "documentation", "health", "history", "journal", "library", "read", "record"], - styles: ["solid"], - label: "Medical Book" + name: 'book-medical', + search: ['diary', 'documentation', 'health', 'history', 'journal', 'library', 'read', 'record'], + styles: ['solid'], + label: 'Medical Book' }, { - name: "book-open", - search: ["flyer", "library", "notebook", "open book", "pamphlet", "reading"], - styles: ["solid"], - label: "Book Open" + name: 'book-open', + search: ['flyer', 'library', 'notebook', 'open book', 'pamphlet', 'reading'], + styles: ['solid'], + label: 'Book Open' }, { - name: "book-reader", - search: ["flyer", "library", "notebook", "open book", "pamphlet", "reading"], - styles: ["solid"], - label: "Book Reader" + name: 'book-reader', + search: ['flyer', 'library', 'notebook', 'open book', 'pamphlet', 'reading'], + styles: ['solid'], + label: 'Book Reader' }, { - name: "bookmark", - search: ["favorite", "marker", "read", "remember", "save"], - styles: ["solid", "regular"], - label: "bookmark" + name: 'bookmark', + search: ['favorite', 'marker', 'read', 'remember', 'save'], + styles: ['solid', 'regular'], + label: 'bookmark' }, { - name: "bootstrap", - search: [], - styles: ["brands"], - label: "Bootstrap" -}, { - name: "border-all", - search: ["cell", "grid", "outline", "stroke", "table"], - styles: ["solid"], - label: "Border All" -}, { - name: "border-none", - search: ["cell", "grid", "outline", "stroke", "table"], - styles: ["solid"], - label: "Border None" -}, { - name: "border-style", - search: [], - styles: ["solid"], - label: "Border Style" -}, { - name: "bowling-ball", - search: ["alley", "candlepin", "gutter", "lane", "strike", "tenpin"], - styles: ["solid"], - label: "Bowling Ball" + name: 'bootstrap', + search: [], + styles: ['brands'], + label: 'Bootstrap' +}, { + name: 'border-all', + search: ['cell', 'grid', 'outline', 'stroke', 'table'], + styles: ['solid'], + label: 'Border All' +}, { + name: 'border-none', + search: ['cell', 'grid', 'outline', 'stroke', 'table'], + styles: ['solid'], + label: 'Border None' +}, { + name: 'border-style', + search: [], + styles: ['solid'], + label: 'Border Style' +}, { + name: 'bowling-ball', + search: ['alley', 'candlepin', 'gutter', 'lane', 'strike', 'tenpin'], + styles: ['solid'], + label: 'Bowling Ball' }, { - name: "box", - search: ["archive", "container", "package", "storage"], - styles: ["solid"], - label: "Box" -}, { - name: "box-open", - search: ["archive", "container", "package", "storage", "unpack"], - styles: ["solid"], - label: "Box Open" -}, { - name: "box-tissue", - search: ["cough", "covid-19", "kleenex", "mucus", "nose", "sneeze", "snot"], - styles: ["solid"], - label: "Tissue Box" -}, { - name: "boxes", - search: ["archives", "inventory", "storage", "warehouse"], - styles: ["solid"], - label: "Boxes" -}, { - name: "braille", - search: ["alphabet", "blind", "dots", "raised", "vision"], - styles: ["solid"], - label: "Braille" -}, { - name: "brain", - search: ["cerebellum", "gray matter", "intellect", "medulla oblongata", "mind", "noodle", "wit"], - styles: ["solid"], - label: "Brain" -}, { - name: "bread-slice", - search: ["bake", "bakery", "baking", "dough", "flour", "gluten", "grain", "sandwich", "sourdough", "toast", "wheat", "yeast"], - styles: ["solid"], - label: "Bread Slice" -}, { - name: "briefcase", - search: ["bag", "business", "luggage", "office", "work"], - styles: ["solid"], - label: "Briefcase" -}, { - name: "briefcase-medical", - search: ["doctor", "emt", "first aid", "health"], - styles: ["solid"], - label: "Medical Briefcase" -}, { - name: "broadcast-tower", - search: ["airwaves", "antenna", "radio", "reception", "waves"], - styles: ["solid"], - label: "Broadcast Tower" -}, { - name: "broom", - search: ["clean", "firebolt", "fly", "halloween", "nimbus 2000", "quidditch", "sweep", "witch"], - styles: ["solid"], - label: "Broom" -}, { - name: "brush", - search: ["art", "bristles", "color", "handle", "paint"], - styles: ["solid"], - label: "Brush" -}, { - name: "btc", - search: [], - styles: ["brands"], - label: "BTC" -}, { - name: "buffer", - search: [], - styles: ["brands"], - label: "Buffer" -}, { - name: "bug", - search: ["beetle", "error", "insect", "report"], - styles: ["solid"], - label: "Bug" -}, { - name: "building", - search: ["apartment", "business", "city", "company", "office", "work"], - styles: ["solid", "regular"], - label: "Building" -}, { - name: "bullhorn", - search: ["announcement", "broadcast", "louder", "megaphone", "share"], - styles: ["solid"], - label: "bullhorn" -}, { - name: "bullseye", - search: ["archery", "goal", "objective", "target"], - styles: ["solid"], - label: "Bullseye" -}, { - name: "burn", - search: ["caliente", "energy", "fire", "flame", "gas", "heat", "hot"], - styles: ["solid"], - label: "Burn" -}, { - name: "buromobelexperte", - search: [], - styles: ["brands"], - label: "Büromöbel-Experte GmbH & Co. KG." -}, { - name: "bus", - search: ["public transportation", "transportation", "travel", "vehicle"], - styles: ["solid"], - label: "Bus" -}, { - name: "bus-alt", - search: ["mta", "public transportation", "transportation", "travel", "vehicle"], - styles: ["solid"], - label: "Bus Alt" -}, { - name: "business-time", - search: ["alarm", "briefcase", "business socks", "clock", "flight of the conchords", "reminder", "wednesday"], - styles: ["solid"], - label: "Business Time" -}, { - name: "buy-n-large", - search: [], - styles: ["brands"], - label: "Buy n Large" -}, { - name: "buysellads", - search: [], - styles: ["brands"], - label: "BuySellAds" -}, { - name: "calculator", - search: ["abacus", "addition", "arithmetic", "counting", "math", "multiplication", "subtraction"], - styles: ["solid"], - label: "Calculator" -}, { - name: "calendar", - search: ["calendar-o", "date", "event", "schedule", "time", "when"], - styles: ["solid", "regular"], - label: "Calendar" -}, { - name: "calendar-alt", - search: ["calendar", "date", "event", "schedule", "time", "when"], - styles: ["solid", "regular"], - label: "Alternate Calendar" -}, { - name: "calendar-check", - search: ["accept", "agree", "appointment", "confirm", "correct", "date", "done", "event", "ok", "schedule", "select", "success", "tick", "time", "todo", "when"], - styles: ["solid", "regular"], - label: "Calendar Check" -}, { - name: "calendar-day", - search: ["date", "detail", "event", "focus", "schedule", "single day", "time", "today", "when"], - styles: ["solid"], - label: "Calendar with Day Focus" -}, { - name: "calendar-minus", - search: ["calendar", "date", "delete", "event", "negative", "remove", "schedule", "time", "when"], - styles: ["solid", "regular"], - label: "Calendar Minus" -}, { - name: "calendar-plus", - search: ["add", "calendar", "create", "date", "event", "new", "positive", "schedule", "time", "when"], - styles: ["solid", "regular"], - label: "Calendar Plus" -}, { - name: "calendar-times", - search: ["archive", "calendar", "date", "delete", "event", "remove", "schedule", "time", "when", "x"], - styles: ["solid", "regular"], - label: "Calendar Times" -}, { - name: "calendar-week", - search: ["date", "detail", "event", "focus", "schedule", "single week", "time", "today", "when"], - styles: ["solid"], - label: "Calendar with Week Focus" -}, { - name: "camera", - search: ["image", "lens", "photo", "picture", "record", "shutter", "video"], - styles: ["solid"], - label: "camera" -}, { - name: "camera-retro", - search: ["image", "lens", "photo", "picture", "record", "shutter", "video"], - styles: ["solid"], - label: "Retro Camera" -}, { - name: "campground", - search: ["camping", "fall", "outdoors", "teepee", "tent", "tipi"], - styles: ["solid"], - label: "Campground" -}, { - name: "canadian-maple-leaf", - search: ["canada", "flag", "flora", "nature", "plant"], - styles: ["brands"], - label: "Canadian Maple Leaf" -}, { - name: "candy-cane", - search: ["candy", "christmas", "holiday", "mint", "peppermint", "striped", "xmas"], - styles: ["solid"], - label: "Candy Cane" -}, { - name: "cannabis", - search: ["bud", "chronic", "drugs", "endica", "endo", "ganja", "marijuana", "mary jane", "pot", "reefer", "sativa", "spliff", "weed", "whacky-tabacky"], - styles: ["solid"], - label: "Cannabis" -}, { - name: "capsules", - search: ["drugs", "medicine", "pills", "prescription"], - styles: ["solid"], - label: "Capsules" -}, { - name: "car", - search: ["auto", "automobile", "sedan", "transportation", "travel", "vehicle"], - styles: ["solid"], - label: "Car" -}, { - name: "car-alt", - search: ["auto", "automobile", "sedan", "transportation", "travel", "vehicle"], - styles: ["solid"], - label: "Alternate Car" -}, { - name: "car-battery", - search: ["auto", "electric", "mechanic", "power"], - styles: ["solid"], - label: "Car Battery" -}, { - name: "car-crash", - search: ["accident", "auto", "automobile", "insurance", "sedan", "transportation", "vehicle", "wreck"], - styles: ["solid"], - label: "Car Crash" -}, { - name: "car-side", - search: ["auto", "automobile", "sedan", "transportation", "travel", "vehicle"], - styles: ["solid"], - label: "Car Side" -}, { - name: "caravan", - search: ["camper", "motor home", "rv", "trailer", "travel"], - styles: ["solid"], - label: "Caravan" -}, { - name: "caret-down", - search: ["arrow", "dropdown", "expand", "menu", "more", "triangle"], - styles: ["solid"], - label: "Caret Down" -}, { - name: "caret-left", - search: ["arrow", "back", "previous", "triangle"], - styles: ["solid"], - label: "Caret Left" -}, { - name: "caret-right", - search: ["arrow", "forward", "next", "triangle"], - styles: ["solid"], - label: "Caret Right" + name: 'box', + search: ['archive', 'container', 'package', 'storage'], + styles: ['solid'], + label: 'Box' +}, { + name: 'box-open', + search: ['archive', 'container', 'package', 'storage', 'unpack'], + styles: ['solid'], + label: 'Box Open' +}, { + name: 'box-tissue', + search: ['cough', 'covid-19', 'kleenex', 'mucus', 'nose', 'sneeze', 'snot'], + styles: ['solid'], + label: 'Tissue Box' +}, { + name: 'boxes', + search: ['archives', 'inventory', 'storage', 'warehouse'], + styles: ['solid'], + label: 'Boxes' +}, { + name: 'braille', + search: ['alphabet', 'blind', 'dots', 'raised', 'vision'], + styles: ['solid'], + label: 'Braille' +}, { + name: 'brain', + search: ['cerebellum', 'gray matter', 'intellect', 'medulla oblongata', 'mind', 'noodle', 'wit'], + styles: ['solid'], + label: 'Brain' +}, { + name: 'bread-slice', + search: ['bake', 'bakery', 'baking', 'dough', 'flour', 'gluten', 'grain', 'sandwich', 'sourdough', 'toast', 'wheat', 'yeast'], + styles: ['solid'], + label: 'Bread Slice' +}, { + name: 'briefcase', + search: ['bag', 'business', 'luggage', 'office', 'work'], + styles: ['solid'], + label: 'Briefcase' +}, { + name: 'briefcase-medical', + search: ['doctor', 'emt', 'first aid', 'health'], + styles: ['solid'], + label: 'Medical Briefcase' +}, { + name: 'broadcast-tower', + search: ['airwaves', 'antenna', 'radio', 'reception', 'waves'], + styles: ['solid'], + label: 'Broadcast Tower' +}, { + name: 'broom', + search: ['clean', 'firebolt', 'fly', 'halloween', 'nimbus 2000', 'quidditch', 'sweep', 'witch'], + styles: ['solid'], + label: 'Broom' +}, { + name: 'brush', + search: ['art', 'bristles', 'color', 'handle', 'paint'], + styles: ['solid'], + label: 'Brush' +}, { + name: 'btc', + search: [], + styles: ['brands'], + label: 'BTC' +}, { + name: 'buffer', + search: [], + styles: ['brands'], + label: 'Buffer' +}, { + name: 'bug', + search: ['beetle', 'error', 'insect', 'report'], + styles: ['solid'], + label: 'Bug' +}, { + name: 'building', + search: ['apartment', 'business', 'city', 'company', 'office', 'work'], + styles: ['solid', 'regular'], + label: 'Building' +}, { + name: 'bullhorn', + search: ['announcement', 'broadcast', 'louder', 'megaphone', 'share'], + styles: ['solid'], + label: 'bullhorn' +}, { + name: 'bullseye', + search: ['archery', 'goal', 'objective', 'target'], + styles: ['solid'], + label: 'Bullseye' +}, { + name: 'burn', + search: ['caliente', 'energy', 'fire', 'flame', 'gas', 'heat', 'hot'], + styles: ['solid'], + label: 'Burn' +}, { + name: 'buromobelexperte', + search: [], + styles: ['brands'], + label: 'Büromöbel-Experte GmbH & Co. KG.' +}, { + name: 'bus', + search: ['public transportation', 'transportation', 'travel', 'vehicle'], + styles: ['solid'], + label: 'Bus' +}, { + name: 'bus-alt', + search: ['mta', 'public transportation', 'transportation', 'travel', 'vehicle'], + styles: ['solid'], + label: 'Bus Alt' +}, { + name: 'business-time', + search: ['alarm', 'briefcase', 'business socks', 'clock', 'flight of the conchords', 'reminder', 'wednesday'], + styles: ['solid'], + label: 'Business Time' +}, { + name: 'buy-n-large', + search: [], + styles: ['brands'], + label: 'Buy n Large' +}, { + name: 'buysellads', + search: [], + styles: ['brands'], + label: 'BuySellAds' +}, { + name: 'calculator', + search: ['abacus', 'addition', 'arithmetic', 'counting', 'math', 'multiplication', 'subtraction'], + styles: ['solid'], + label: 'Calculator' +}, { + name: 'calendar', + search: ['calendar-o', 'date', 'event', 'schedule', 'time', 'when'], + styles: ['solid', 'regular'], + label: 'Calendar' +}, { + name: 'calendar-alt', + search: ['calendar', 'date', 'event', 'schedule', 'time', 'when'], + styles: ['solid', 'regular'], + label: 'Alternate Calendar' +}, { + name: 'calendar-check', + search: ['accept', 'agree', 'appointment', 'confirm', 'correct', 'date', 'done', 'event', 'ok', 'schedule', 'select', 'success', 'tick', 'time', 'todo', 'when'], + styles: ['solid', 'regular'], + label: 'Calendar Check' +}, { + name: 'calendar-day', + search: ['date', 'detail', 'event', 'focus', 'schedule', 'single day', 'time', 'today', 'when'], + styles: ['solid'], + label: 'Calendar with Day Focus' +}, { + name: 'calendar-minus', + search: ['calendar', 'date', 'delete', 'event', 'negative', 'remove', 'schedule', 'time', 'when'], + styles: ['solid', 'regular'], + label: 'Calendar Minus' +}, { + name: 'calendar-plus', + search: ['add', 'calendar', 'create', 'date', 'event', 'new', 'positive', 'schedule', 'time', 'when'], + styles: ['solid', 'regular'], + label: 'Calendar Plus' +}, { + name: 'calendar-times', + search: ['archive', 'calendar', 'date', 'delete', 'event', 'remove', 'schedule', 'time', 'when', 'x'], + styles: ['solid', 'regular'], + label: 'Calendar Times' +}, { + name: 'calendar-week', + search: ['date', 'detail', 'event', 'focus', 'schedule', 'single week', 'time', 'today', 'when'], + styles: ['solid'], + label: 'Calendar with Week Focus' +}, { + name: 'camera', + search: ['image', 'lens', 'photo', 'picture', 'record', 'shutter', 'video'], + styles: ['solid'], + label: 'camera' +}, { + name: 'camera-retro', + search: ['image', 'lens', 'photo', 'picture', 'record', 'shutter', 'video'], + styles: ['solid'], + label: 'Retro Camera' +}, { + name: 'campground', + search: ['camping', 'fall', 'outdoors', 'teepee', 'tent', 'tipi'], + styles: ['solid'], + label: 'Campground' +}, { + name: 'canadian-maple-leaf', + search: ['canada', 'flag', 'flora', 'nature', 'plant'], + styles: ['brands'], + label: 'Canadian Maple Leaf' +}, { + name: 'candy-cane', + search: ['candy', 'christmas', 'holiday', 'mint', 'peppermint', 'striped', 'xmas'], + styles: ['solid'], + label: 'Candy Cane' +}, { + name: 'cannabis', + search: ['bud', 'chronic', 'drugs', 'endica', 'endo', 'ganja', 'marijuana', 'mary jane', 'pot', 'reefer', 'sativa', 'spliff', 'weed', 'whacky-tabacky'], + styles: ['solid'], + label: 'Cannabis' +}, { + name: 'capsules', + search: ['drugs', 'medicine', 'pills', 'prescription'], + styles: ['solid'], + label: 'Capsules' +}, { + name: 'car', + search: ['auto', 'automobile', 'sedan', 'transportation', 'travel', 'vehicle'], + styles: ['solid'], + label: 'Car' +}, { + name: 'car-alt', + search: ['auto', 'automobile', 'sedan', 'transportation', 'travel', 'vehicle'], + styles: ['solid'], + label: 'Alternate Car' +}, { + name: 'car-battery', + search: ['auto', 'electric', 'mechanic', 'power'], + styles: ['solid'], + label: 'Car Battery' +}, { + name: 'car-crash', + search: ['accident', 'auto', 'automobile', 'insurance', 'sedan', 'transportation', 'vehicle', 'wreck'], + styles: ['solid'], + label: 'Car Crash' +}, { + name: 'car-side', + search: ['auto', 'automobile', 'sedan', 'transportation', 'travel', 'vehicle'], + styles: ['solid'], + label: 'Car Side' +}, { + name: 'caravan', + search: ['camper', 'motor home', 'rv', 'trailer', 'travel'], + styles: ['solid'], + label: 'Caravan' +}, { + name: 'caret-down', + search: ['arrow', 'dropdown', 'expand', 'menu', 'more', 'triangle'], + styles: ['solid'], + label: 'Caret Down' +}, { + name: 'caret-left', + search: ['arrow', 'back', 'previous', 'triangle'], + styles: ['solid'], + label: 'Caret Left' +}, { + name: 'caret-right', + search: ['arrow', 'forward', 'next', 'triangle'], + styles: ['solid'], + label: 'Caret Right' }, { - name: "caret-square-down", - search: ["arrow", "caret-square-o-down", "dropdown", "expand", "menu", "more", "triangle"], - styles: ["solid", "regular"], - label: "Caret Square Down" + name: 'caret-square-down', + search: ['arrow', 'caret-square-o-down', 'dropdown', 'expand', 'menu', 'more', 'triangle'], + styles: ['solid', 'regular'], + label: 'Caret Square Down' }, { - name: "caret-square-left", - search: ["arrow", "back", "caret-square-o-left", "previous", "triangle"], - styles: ["solid", "regular"], - label: "Caret Square Left" + name: 'caret-square-left', + search: ['arrow', 'back', 'caret-square-o-left', 'previous', 'triangle'], + styles: ['solid', 'regular'], + label: 'Caret Square Left' }, { - name: "caret-square-right", - search: ["arrow", "caret-square-o-right", "forward", "next", "triangle"], - styles: ["solid", "regular"], - label: "Caret Square Right" + name: 'caret-square-right', + search: ['arrow', 'caret-square-o-right', 'forward', 'next', 'triangle'], + styles: ['solid', 'regular'], + label: 'Caret Square Right' }, { - name: "caret-square-up", - search: ["arrow", "caret-square-o-up", "collapse", "triangle", "upload"], - styles: ["solid", "regular"], - label: "Caret Square Up" + name: 'caret-square-up', + search: ['arrow', 'caret-square-o-up', 'collapse', 'triangle', 'upload'], + styles: ['solid', 'regular'], + label: 'Caret Square Up' }, { - name: "caret-up", - search: ["arrow", "collapse", "triangle"], - styles: ["solid"], - label: "Caret Up" + name: 'caret-up', + search: ['arrow', 'collapse', 'triangle'], + styles: ['solid'], + label: 'Caret Up' }, { - name: "carrot", - search: ["bugs bunny", "orange", "vegan", "vegetable"], - styles: ["solid"], - label: "Carrot" + name: 'carrot', + search: ['bugs bunny', 'orange', 'vegan', 'vegetable'], + styles: ['solid'], + label: 'Carrot' }, { - name: "cart-arrow-down", - search: ["download", "save", "shopping"], - styles: ["solid"], - label: "Shopping Cart Arrow Down" + name: 'cart-arrow-down', + search: ['download', 'save', 'shopping'], + styles: ['solid'], + label: 'Shopping Cart Arrow Down' }, { - name: "cart-plus", - search: ["add", "create", "new", "positive", "shopping"], - styles: ["solid"], - label: "Add to Shopping Cart" + name: 'cart-plus', + search: ['add', 'create', 'new', 'positive', 'shopping'], + styles: ['solid'], + label: 'Add to Shopping Cart' }, { - name: "cash-register", - search: ["buy", "cha-ching", "change", "checkout", "commerce", "leaerboard", "machine", "pay", "payment", "purchase", "store"], - styles: ["solid"], - label: "Cash Register" + name: 'cash-register', + search: ['buy', 'cha-ching', 'change', 'checkout', 'commerce', 'leaerboard', 'machine', 'pay', 'payment', 'purchase', 'store'], + styles: ['solid'], + label: 'Cash Register' }, { - name: "cat", - search: ["feline", "halloween", "holiday", "kitten", "kitty", "meow", "pet"], - styles: ["solid"], - label: "Cat" + name: 'cat', + search: ['feline', 'halloween', 'holiday', 'kitten', 'kitty', 'meow', 'pet'], + styles: ['solid'], + label: 'Cat' }, { - name: "cc-amazon-pay", + name: 'cc-amazon-pay', search: [], - styles: ["brands"], - label: "Amazon Pay Credit Card" + styles: ['brands'], + label: 'Amazon Pay Credit Card' }, { - name: "cc-amex", - search: ["amex"], - styles: ["brands"], - label: "American Express Credit Card" + name: 'cc-amex', + search: ['amex'], + styles: ['brands'], + label: 'American Express Credit Card' }, { - name: "cc-apple-pay", + name: 'cc-apple-pay', search: [], - styles: ["brands"], - label: "Apple Pay Credit Card" + styles: ['brands'], + label: 'Apple Pay Credit Card' }, { - name: "cc-diners-club", + name: 'cc-diners-club', search: [], - styles: ["brands"], - label: "Diner's Club Credit Card" + styles: ['brands'], + label: 'Diner\'s Club Credit Card' }, { - name: "cc-discover", + name: 'cc-discover', search: [], - styles: ["brands"], - label: "Discover Credit Card" + styles: ['brands'], + label: 'Discover Credit Card' }, { - name: "cc-jcb", + name: 'cc-jcb', search: [], - styles: ["brands"], - label: "JCB Credit Card" + styles: ['brands'], + label: 'JCB Credit Card' }, { - name: "cc-mastercard", + name: 'cc-mastercard', search: [], - styles: ["brands"], - label: "MasterCard Credit Card" + styles: ['brands'], + label: 'MasterCard Credit Card' }, { - name: "cc-paypal", + name: 'cc-paypal', search: [], - styles: ["brands"], - label: "Paypal Credit Card" + styles: ['brands'], + label: 'Paypal Credit Card' }, { - name: "cc-stripe", + name: 'cc-stripe', search: [], - styles: ["brands"], - label: "Stripe Credit Card" + styles: ['brands'], + label: 'Stripe Credit Card' }, { - name: "cc-visa", + name: 'cc-visa', search: [], - styles: ["brands"], - label: "Visa Credit Card" + styles: ['brands'], + label: 'Visa Credit Card' }, { - name: "centercode", + name: 'centercode', search: [], - styles: ["brands"], - label: "Centercode" + styles: ['brands'], + label: 'Centercode' }, { - name: "centos", - search: ["linux", "operating system", "os"], - styles: ["brands"], - label: "Centos" + name: 'centos', + search: ['linux', 'operating system', 'os'], + styles: ['brands'], + label: 'Centos' }, { - name: "certificate", - search: ["badge", "star", "verified"], - styles: ["solid"], - label: "certificate" + name: 'certificate', + search: ['badge', 'star', 'verified'], + styles: ['solid'], + label: 'certificate' }, { - name: "chair", - search: ["furniture", "seat", "sit"], - styles: ["solid"], - label: "Chair" + name: 'chair', + search: ['furniture', 'seat', 'sit'], + styles: ['solid'], + label: 'Chair' }, { - name: "chalkboard", - search: ["blackboard", "learning", "school", "teaching", "whiteboard", "writing"], - styles: ["solid"], - label: "Chalkboard" + name: 'chalkboard', + search: ['blackboard', 'learning', 'school', 'teaching', 'whiteboard', 'writing'], + styles: ['solid'], + label: 'Chalkboard' }, { - name: "chalkboard-teacher", - search: ["blackboard", "instructor", "learning", "professor", "school", "whiteboard", "writing"], - styles: ["solid"], - label: "Chalkboard Teacher" + name: 'chalkboard-teacher', + search: ['blackboard', 'instructor', 'learning', 'professor', 'school', 'whiteboard', 'writing'], + styles: ['solid'], + label: 'Chalkboard Teacher' }, { - name: "charging-station", - search: ["electric", "ev", "tesla", "vehicle"], - styles: ["solid"], - label: "Charging Station" + name: 'charging-station', + search: ['electric', 'ev', 'tesla', 'vehicle'], + styles: ['solid'], + label: 'Charging Station' }, { - name: "chart-area", - search: ["analytics", "area", "chart", "graph"], - styles: ["solid"], - label: "Area Chart" + name: 'chart-area', + search: ['analytics', 'area', 'chart', 'graph'], + styles: ['solid'], + label: 'Area Chart' }, { - name: "chart-bar", - search: ["analytics", "bar", "chart", "graph"], - styles: ["solid", "regular"], - label: "Bar Chart" + name: 'chart-bar', + search: ['analytics', 'bar', 'chart', 'graph'], + styles: ['solid', 'regular'], + label: 'Bar Chart' }, { - name: "chart-line", - search: ["activity", "analytics", "chart", "dashboard", "gain", "graph", "increase", "line"], - styles: ["solid"], - label: "Line Chart" + name: 'chart-line', + search: ['activity', 'analytics', 'chart', 'dashboard', 'gain', 'graph', 'increase', 'line'], + styles: ['solid'], + label: 'Line Chart' }, { - name: "chart-pie", - search: ["analytics", "chart", "diagram", "graph", "pie"], - styles: ["solid"], - label: "Pie Chart" + name: 'chart-pie', + search: ['analytics', 'chart', 'diagram', 'graph', 'pie'], + styles: ['solid'], + label: 'Pie Chart' }, { - name: "check", - search: ["accept", "agree", "checkmark", "confirm", "correct", "done", "notice", "notification", "notify", "ok", "select", "success", "tick", "todo", "yes"], - styles: ["solid"], - label: "Check" + name: 'check', + search: ['accept', 'agree', 'checkmark', 'confirm', 'correct', 'done', 'notice', 'notification', 'notify', 'ok', 'select', 'success', 'tick', 'todo', 'yes'], + styles: ['solid'], + label: 'Check' }, { - name: "check-circle", - search: ["accept", "agree", "confirm", "correct", "done", "ok", "select", "success", "tick", "todo", "yes"], - styles: ["solid", "regular"], - label: "Check Circle" -}, { - name: "check-double", - search: ["accept", "agree", "checkmark", "confirm", "correct", "done", "notice", "notification", "notify", "ok", "select", "success", "tick", "todo"], - styles: ["solid"], - label: "Double Check" -}, { - name: "check-square", - search: ["accept", "agree", "checkmark", "confirm", "correct", "done", "ok", "select", "success", "tick", "todo", "yes"], - styles: ["solid", "regular"], - label: "Check Square" -}, { - name: "cheese", - search: ["cheddar", "curd", "gouda", "melt", "parmesan", "sandwich", "swiss", "wedge"], - styles: ["solid"], - label: "Cheese" -}, { - name: "chess", - search: ["board", "castle", "checkmate", "game", "king", "rook", "strategy", "tournament"], - styles: ["solid"], - label: "Chess" -}, { - name: "chess-bishop", - search: ["board", "checkmate", "game", "strategy"], - styles: ["solid"], - label: "Chess Bishop" -}, { - name: "chess-board", - search: ["board", "checkmate", "game", "strategy"], - styles: ["solid"], - label: "Chess Board" -}, { - name: "chess-king", - search: ["board", "checkmate", "game", "strategy"], - styles: ["solid"], - label: "Chess King" -}, { - name: "chess-knight", - search: ["board", "checkmate", "game", "horse", "strategy"], - styles: ["solid"], - label: "Chess Knight" -}, { - name: "chess-pawn", - search: ["board", "checkmate", "game", "strategy"], - styles: ["solid"], - label: "Chess Pawn" -}, { - name: "chess-queen", - search: ["board", "checkmate", "game", "strategy"], - styles: ["solid"], - label: "Chess Queen" -}, { - name: "chess-rook", - search: ["board", "castle", "checkmate", "game", "strategy"], - styles: ["solid"], - label: "Chess Rook" -}, { - name: "chevron-circle-down", - search: ["arrow", "download", "dropdown", "menu", "more"], - styles: ["solid"], - label: "Chevron Circle Down" -}, { - name: "chevron-circle-left", - search: ["arrow", "back", "previous"], - styles: ["solid"], - label: "Chevron Circle Left" -}, { - name: "chevron-circle-right", - search: ["arrow", "forward", "next"], - styles: ["solid"], - label: "Chevron Circle Right" -}, { - name: "chevron-circle-up", - search: ["arrow", "collapse", "upload"], - styles: ["solid"], - label: "Chevron Circle Up" -}, { - name: "chevron-down", - search: ["arrow", "download", "expand"], - styles: ["solid"], - label: "chevron-down" -}, { - name: "chevron-left", - search: ["arrow", "back", "bracket", "previous"], - styles: ["solid"], - label: "chevron-left" -}, { - name: "chevron-right", - search: ["arrow", "bracket", "forward", "next"], - styles: ["solid"], - label: "chevron-right" -}, { - name: "chevron-up", - search: ["arrow", "collapse", "upload"], - styles: ["solid"], - label: "chevron-up" -}, { - name: "child", - search: ["boy", "girl", "kid", "toddler", "young"], - styles: ["solid"], - label: "Child" -}, { - name: "chrome", - search: ["browser"], - styles: ["brands"], - label: "Chrome" -}, { - name: "chromecast", - search: [], - styles: ["brands"], - label: "Chromecast" -}, { - name: "church", - search: ["building", "cathedral", "chapel", "community", "religion"], - styles: ["solid"], - label: "Church" -}, { - name: "circle", - search: ["circle-thin", "diameter", "dot", "ellipse", "notification", "round"], - styles: ["solid", "regular"], - label: "Circle" -}, { - name: "circle-notch", - search: ["circle-o-notch", "diameter", "dot", "ellipse", "round", "spinner"], - styles: ["solid"], - label: "Circle Notched" -}, { - name: "city", - search: ["buildings", "busy", "skyscrapers", "urban", "windows"], - styles: ["solid"], - label: "City" -}, { - name: "clinic-medical", - search: ["covid-19", "doctor", "general practitioner", "hospital", "infirmary", "medicine", "office", "outpatient"], - styles: ["solid"], - label: "Medical Clinic" -}, { - name: "clipboard", - search: ["copy", "notes", "paste", "record"], - styles: ["solid", "regular"], - label: "Clipboard" -}, { - name: "clipboard-check", - search: ["accept", "agree", "confirm", "done", "ok", "select", "success", "tick", "todo", "yes"], - styles: ["solid"], - label: "Clipboard with Check" -}, { - name: "clipboard-list", - search: ["checklist", "completed", "done", "finished", "intinerary", "ol", "schedule", "tick", "todo", "ul"], - styles: ["solid"], - label: "Clipboard List" -}, { - name: "clock", - search: ["date", "late", "schedule", "time", "timer", "timestamp", "watch"], - styles: ["solid", "regular"], - label: "Clock" -}, { - name: "clone", - search: ["arrange", "copy", "duplicate", "paste"], - styles: ["solid", "regular"], - label: "Clone" -}, { - name: "closed-captioning", - search: ["cc", "deaf", "hearing", "subtitle", "subtitling", "text", "video"], - styles: ["solid", "regular"], - label: "Closed Captioning" -}, { - name: "cloud", - search: ["atmosphere", "fog", "overcast", "save", "upload", "weather"], - styles: ["solid"], - label: "Cloud" -}, { - name: "cloud-download-alt", - search: ["download", "export", "save"], - styles: ["solid"], - label: "Alternate Cloud Download" -}, { - name: "cloud-meatball", - search: ["FLDSMDFR", "food", "spaghetti", "storm"], - styles: ["solid"], - label: "Cloud with (a chance of) Meatball" -}, { - name: "cloud-moon", - search: ["crescent", "evening", "lunar", "night", "partly cloudy", "sky"], - styles: ["solid"], - label: "Cloud with Moon" -}, { - name: "cloud-moon-rain", - search: ["crescent", "evening", "lunar", "night", "partly cloudy", "precipitation", "rain", "sky", "storm"], - styles: ["solid"], - label: "Cloud with Moon and Rain" -}, { - name: "cloud-rain", - search: ["precipitation", "rain", "sky", "storm"], - styles: ["solid"], - label: "Cloud with Rain" -}, { - name: "cloud-showers-heavy", - search: ["precipitation", "rain", "sky", "storm"], - styles: ["solid"], - label: "Cloud with Heavy Showers" -}, { - name: "cloud-sun", - search: ["clear", "day", "daytime", "fall", "outdoors", "overcast", "partly cloudy"], - styles: ["solid"], - label: "Cloud with Sun" -}, { - name: "cloud-sun-rain", - search: ["day", "overcast", "precipitation", "storm", "summer", "sunshower"], - styles: ["solid"], - label: "Cloud with Sun and Rain" -}, { - name: "cloud-upload-alt", - search: ["cloud-upload", "import", "save", "upload"], - styles: ["solid"], - label: "Alternate Cloud Upload" -}, { - name: "cloudscale", - search: [], - styles: ["brands"], - label: "cloudscale.ch" -}, { - name: "cloudsmith", - search: [], - styles: ["brands"], - label: "Cloudsmith" -}, { - name: "cloudversify", - search: [], - styles: ["brands"], - label: "cloudversify" -}, { - name: "cocktail", - search: ["alcohol", "beverage", "drink", "gin", "glass", "margarita", "martini", "vodka"], - styles: ["solid"], - label: "Cocktail" -}, { - name: "code", - search: ["brackets", "code", "development", "html"], - styles: ["solid"], - label: "Code" -}, { - name: "code-branch", - search: ["branch", "code-fork", "fork", "git", "github", "rebase", "svn", "vcs", "version"], - styles: ["solid"], - label: "Code Branch" -}, { - name: "codepen", - search: [], - styles: ["brands"], - label: "Codepen" -}, { - name: "codiepie", - search: [], - styles: ["brands"], - label: "Codie Pie" -}, { - name: "coffee", - search: ["beverage", "breakfast", "cafe", "drink", "fall", "morning", "mug", "seasonal", "tea"], - styles: ["solid"], - label: "Coffee" -}, { - name: "cog", - search: ["gear", "mechanical", "settings", "sprocket", "wheel"], - styles: ["solid"], - label: "cog" -}, { - name: "cogs", - search: ["gears", "mechanical", "settings", "sprocket", "wheel"], - styles: ["solid"], - label: "cogs" -}, { - name: "coins", - search: ["currency", "dime", "financial", "gold", "money", "penny"], - styles: ["solid"], - label: "Coins" -}, { - name: "columns", - search: ["browser", "dashboard", "organize", "panes", "split"], - styles: ["solid"], - label: "Columns" -}, { - name: "comment", - search: ["bubble", "chat", "commenting", "conversation", "feedback", "message", "note", "notification", "sms", "speech", "texting"], - styles: ["solid", "regular"], - label: "comment" -}, { - name: "comment-alt", - search: ["bubble", "chat", "commenting", "conversation", "feedback", "message", "note", "notification", "sms", "speech", "texting"], - styles: ["solid", "regular"], - label: "Alternate Comment" -}, { - name: "comment-dollar", - search: ["bubble", "chat", "commenting", "conversation", "feedback", "message", "money", "note", "notification", "pay", "sms", "speech", "spend", "texting", "transfer"], - styles: ["solid"], - label: "Comment Dollar" -}, { - name: "comment-dots", - search: ["bubble", "chat", "commenting", "conversation", "feedback", "message", "more", "note", "notification", "reply", "sms", "speech", "texting"], - styles: ["solid", "regular"], - label: "Comment Dots" -}, { - name: "comment-medical", - search: ["advice", "bubble", "chat", "commenting", "conversation", "diagnose", "feedback", "message", "note", "notification", "prescription", "sms", "speech", "texting"], - styles: ["solid"], - label: "Alternate Medical Chat" + name: 'check-circle', + search: ['accept', 'agree', 'confirm', 'correct', 'done', 'ok', 'select', 'success', 'tick', 'todo', 'yes'], + styles: ['solid', 'regular'], + label: 'Check Circle' +}, { + name: 'check-double', + search: ['accept', 'agree', 'checkmark', 'confirm', 'correct', 'done', 'notice', 'notification', 'notify', 'ok', 'select', 'success', 'tick', 'todo'], + styles: ['solid'], + label: 'Double Check' +}, { + name: 'check-square', + search: ['accept', 'agree', 'checkmark', 'confirm', 'correct', 'done', 'ok', 'select', 'success', 'tick', 'todo', 'yes'], + styles: ['solid', 'regular'], + label: 'Check Square' +}, { + name: 'cheese', + search: ['cheddar', 'curd', 'gouda', 'melt', 'parmesan', 'sandwich', 'swiss', 'wedge'], + styles: ['solid'], + label: 'Cheese' +}, { + name: 'chess', + search: ['board', 'castle', 'checkmate', 'game', 'king', 'rook', 'strategy', 'tournament'], + styles: ['solid'], + label: 'Chess' +}, { + name: 'chess-bishop', + search: ['board', 'checkmate', 'game', 'strategy'], + styles: ['solid'], + label: 'Chess Bishop' +}, { + name: 'chess-board', + search: ['board', 'checkmate', 'game', 'strategy'], + styles: ['solid'], + label: 'Chess Board' +}, { + name: 'chess-king', + search: ['board', 'checkmate', 'game', 'strategy'], + styles: ['solid'], + label: 'Chess King' +}, { + name: 'chess-knight', + search: ['board', 'checkmate', 'game', 'horse', 'strategy'], + styles: ['solid'], + label: 'Chess Knight' +}, { + name: 'chess-pawn', + search: ['board', 'checkmate', 'game', 'strategy'], + styles: ['solid'], + label: 'Chess Pawn' +}, { + name: 'chess-queen', + search: ['board', 'checkmate', 'game', 'strategy'], + styles: ['solid'], + label: 'Chess Queen' +}, { + name: 'chess-rook', + search: ['board', 'castle', 'checkmate', 'game', 'strategy'], + styles: ['solid'], + label: 'Chess Rook' +}, { + name: 'chevron-circle-down', + search: ['arrow', 'download', 'dropdown', 'menu', 'more'], + styles: ['solid'], + label: 'Chevron Circle Down' +}, { + name: 'chevron-circle-left', + search: ['arrow', 'back', 'previous'], + styles: ['solid'], + label: 'Chevron Circle Left' +}, { + name: 'chevron-circle-right', + search: ['arrow', 'forward', 'next'], + styles: ['solid'], + label: 'Chevron Circle Right' +}, { + name: 'chevron-circle-up', + search: ['arrow', 'collapse', 'upload'], + styles: ['solid'], + label: 'Chevron Circle Up' +}, { + name: 'chevron-down', + search: ['arrow', 'download', 'expand'], + styles: ['solid'], + label: 'chevron-down' +}, { + name: 'chevron-left', + search: ['arrow', 'back', 'bracket', 'previous'], + styles: ['solid'], + label: 'chevron-left' +}, { + name: 'chevron-right', + search: ['arrow', 'bracket', 'forward', 'next'], + styles: ['solid'], + label: 'chevron-right' +}, { + name: 'chevron-up', + search: ['arrow', 'collapse', 'upload'], + styles: ['solid'], + label: 'chevron-up' +}, { + name: 'child', + search: ['boy', 'girl', 'kid', 'toddler', 'young'], + styles: ['solid'], + label: 'Child' +}, { + name: 'chrome', + search: ['browser'], + styles: ['brands'], + label: 'Chrome' +}, { + name: 'chromecast', + search: [], + styles: ['brands'], + label: 'Chromecast' +}, { + name: 'church', + search: ['building', 'cathedral', 'chapel', 'community', 'religion'], + styles: ['solid'], + label: 'Church' +}, { + name: 'circle', + search: ['circle-thin', 'diameter', 'dot', 'ellipse', 'notification', 'round'], + styles: ['solid', 'regular'], + label: 'Circle' +}, { + name: 'circle-notch', + search: ['circle-o-notch', 'diameter', 'dot', 'ellipse', 'round', 'spinner'], + styles: ['solid'], + label: 'Circle Notched' +}, { + name: 'city', + search: ['buildings', 'busy', 'skyscrapers', 'urban', 'windows'], + styles: ['solid'], + label: 'City' +}, { + name: 'clinic-medical', + search: ['covid-19', 'doctor', 'general practitioner', 'hospital', 'infirmary', 'medicine', 'office', 'outpatient'], + styles: ['solid'], + label: 'Medical Clinic' +}, { + name: 'clipboard', + search: ['copy', 'notes', 'paste', 'record'], + styles: ['solid', 'regular'], + label: 'Clipboard' +}, { + name: 'clipboard-check', + search: ['accept', 'agree', 'confirm', 'done', 'ok', 'select', 'success', 'tick', 'todo', 'yes'], + styles: ['solid'], + label: 'Clipboard with Check' +}, { + name: 'clipboard-list', + search: ['checklist', 'completed', 'done', 'finished', 'intinerary', 'ol', 'schedule', 'tick', 'todo', 'ul'], + styles: ['solid'], + label: 'Clipboard List' +}, { + name: 'clock', + search: ['date', 'late', 'schedule', 'time', 'timer', 'timestamp', 'watch'], + styles: ['solid', 'regular'], + label: 'Clock' +}, { + name: 'clone', + search: ['arrange', 'copy', 'duplicate', 'paste'], + styles: ['solid', 'regular'], + label: 'Clone' +}, { + name: 'closed-captioning', + search: ['cc', 'deaf', 'hearing', 'subtitle', 'subtitling', 'text', 'video'], + styles: ['solid', 'regular'], + label: 'Closed Captioning' +}, { + name: 'cloud', + search: ['atmosphere', 'fog', 'overcast', 'save', 'upload', 'weather'], + styles: ['solid'], + label: 'Cloud' +}, { + name: 'cloud-download-alt', + search: ['download', 'export', 'save'], + styles: ['solid'], + label: 'Alternate Cloud Download' +}, { + name: 'cloud-meatball', + search: ['FLDSMDFR', 'food', 'spaghetti', 'storm'], + styles: ['solid'], + label: 'Cloud with (a chance of) Meatball' +}, { + name: 'cloud-moon', + search: ['crescent', 'evening', 'lunar', 'night', 'partly cloudy', 'sky'], + styles: ['solid'], + label: 'Cloud with Moon' +}, { + name: 'cloud-moon-rain', + search: ['crescent', 'evening', 'lunar', 'night', 'partly cloudy', 'precipitation', 'rain', 'sky', 'storm'], + styles: ['solid'], + label: 'Cloud with Moon and Rain' +}, { + name: 'cloud-rain', + search: ['precipitation', 'rain', 'sky', 'storm'], + styles: ['solid'], + label: 'Cloud with Rain' +}, { + name: 'cloud-showers-heavy', + search: ['precipitation', 'rain', 'sky', 'storm'], + styles: ['solid'], + label: 'Cloud with Heavy Showers' +}, { + name: 'cloud-sun', + search: ['clear', 'day', 'daytime', 'fall', 'outdoors', 'overcast', 'partly cloudy'], + styles: ['solid'], + label: 'Cloud with Sun' +}, { + name: 'cloud-sun-rain', + search: ['day', 'overcast', 'precipitation', 'storm', 'summer', 'sunshower'], + styles: ['solid'], + label: 'Cloud with Sun and Rain' +}, { + name: 'cloud-upload-alt', + search: ['cloud-upload', 'import', 'save', 'upload'], + styles: ['solid'], + label: 'Alternate Cloud Upload' +}, { + name: 'cloudscale', + search: [], + styles: ['brands'], + label: 'cloudscale.ch' +}, { + name: 'cloudsmith', + search: [], + styles: ['brands'], + label: 'Cloudsmith' +}, { + name: 'cloudversify', + search: [], + styles: ['brands'], + label: 'cloudversify' +}, { + name: 'cocktail', + search: ['alcohol', 'beverage', 'drink', 'gin', 'glass', 'margarita', 'martini', 'vodka'], + styles: ['solid'], + label: 'Cocktail' +}, { + name: 'code', + search: ['brackets', 'code', 'development', 'html'], + styles: ['solid'], + label: 'Code' +}, { + name: 'code-branch', + search: ['branch', 'code-fork', 'fork', 'git', 'github', 'rebase', 'svn', 'vcs', 'version'], + styles: ['solid'], + label: 'Code Branch' +}, { + name: 'codepen', + search: [], + styles: ['brands'], + label: 'Codepen' +}, { + name: 'codiepie', + search: [], + styles: ['brands'], + label: 'Codie Pie' +}, { + name: 'coffee', + search: ['beverage', 'breakfast', 'cafe', 'drink', 'fall', 'morning', 'mug', 'seasonal', 'tea'], + styles: ['solid'], + label: 'Coffee' +}, { + name: 'cog', + search: ['gear', 'mechanical', 'settings', 'sprocket', 'wheel'], + styles: ['solid'], + label: 'cog' +}, { + name: 'cogs', + search: ['gears', 'mechanical', 'settings', 'sprocket', 'wheel'], + styles: ['solid'], + label: 'cogs' +}, { + name: 'coins', + search: ['currency', 'dime', 'financial', 'gold', 'money', 'penny'], + styles: ['solid'], + label: 'Coins' +}, { + name: 'columns', + search: ['browser', 'dashboard', 'organize', 'panes', 'split'], + styles: ['solid'], + label: 'Columns' +}, { + name: 'comment', + search: ['bubble', 'chat', 'commenting', 'conversation', 'feedback', 'message', 'note', 'notification', 'sms', 'speech', 'texting'], + styles: ['solid', 'regular'], + label: 'comment' +}, { + name: 'comment-alt', + search: ['bubble', 'chat', 'commenting', 'conversation', 'feedback', 'message', 'note', 'notification', 'sms', 'speech', 'texting'], + styles: ['solid', 'regular'], + label: 'Alternate Comment' +}, { + name: 'comment-dollar', + search: ['bubble', 'chat', 'commenting', 'conversation', 'feedback', 'message', 'money', 'note', 'notification', 'pay', 'sms', 'speech', 'spend', 'texting', 'transfer'], + styles: ['solid'], + label: 'Comment Dollar' +}, { + name: 'comment-dots', + search: ['bubble', 'chat', 'commenting', 'conversation', 'feedback', 'message', 'more', 'note', 'notification', 'reply', 'sms', 'speech', 'texting'], + styles: ['solid', 'regular'], + label: 'Comment Dots' +}, { + name: 'comment-medical', + search: ['advice', 'bubble', 'chat', 'commenting', 'conversation', 'diagnose', 'feedback', 'message', 'note', 'notification', 'prescription', 'sms', 'speech', 'texting'], + styles: ['solid'], + label: 'Alternate Medical Chat' }, { - name: "comment-slash", - search: ["bubble", "cancel", "chat", "commenting", "conversation", "feedback", "message", "mute", "note", "notification", "quiet", "sms", "speech", "texting"], - styles: ["solid"], - label: "Comment Slash" + name: 'comment-slash', + search: ['bubble', 'cancel', 'chat', 'commenting', 'conversation', 'feedback', 'message', 'mute', 'note', 'notification', 'quiet', 'sms', 'speech', 'texting'], + styles: ['solid'], + label: 'Comment Slash' }, { - name: "comments", - search: ["bubble", "chat", "commenting", "conversation", "feedback", "message", "note", "notification", "sms", "speech", "texting"], - styles: ["solid", "regular"], - label: "comments" + name: 'comments', + search: ['bubble', 'chat', 'commenting', 'conversation', 'feedback', 'message', 'note', 'notification', 'sms', 'speech', 'texting'], + styles: ['solid', 'regular'], + label: 'comments' }, { - name: "comments-dollar", - search: ["bubble", "chat", "commenting", "conversation", "feedback", "message", "money", "note", "notification", "pay", "sms", "speech", "spend", "texting", "transfer"], - styles: ["solid"], - label: "Comments Dollar" + name: 'comments-dollar', + search: ['bubble', 'chat', 'commenting', 'conversation', 'feedback', 'message', 'money', 'note', 'notification', 'pay', 'sms', 'speech', 'spend', 'texting', 'transfer'], + styles: ['solid'], + label: 'Comments Dollar' }, { - name: "compact-disc", - search: ["album", "bluray", "cd", "disc", "dvd", "media", "movie", "music", "record", "video", "vinyl"], - styles: ["solid"], - label: "Compact Disc" + name: 'compact-disc', + search: ['album', 'bluray', 'cd', 'disc', 'dvd', 'media', 'movie', 'music', 'record', 'video', 'vinyl'], + styles: ['solid'], + label: 'Compact Disc' }, { - name: "compass", - search: ["directions", "directory", "location", "menu", "navigation", "safari", "travel"], - styles: ["solid", "regular"], - label: "Compass" + name: 'compass', + search: ['directions', 'directory', 'location', 'menu', 'navigation', 'safari', 'travel'], + styles: ['solid', 'regular'], + label: 'Compass' }, { - name: "compress", - search: ["collapse", "fullscreen", "minimize", "move", "resize", "shrink", "smaller"], - styles: ["solid"], - label: "Compress" + name: 'compress', + search: ['collapse', 'fullscreen', 'minimize', 'move', 'resize', 'shrink', 'smaller'], + styles: ['solid'], + label: 'Compress' }, { - name: "compress-alt", - search: ["collapse", "fullscreen", "minimize", "move", "resize", "shrink", "smaller"], - styles: ["solid"], - label: "Alternate Compress" + name: 'compress-alt', + search: ['collapse', 'fullscreen', 'minimize', 'move', 'resize', 'shrink', 'smaller'], + styles: ['solid'], + label: 'Alternate Compress' }, { - name: "compress-arrows-alt", - search: ["collapse", "fullscreen", "minimize", "move", "resize", "shrink", "smaller"], - styles: ["solid"], - label: "Alternate Compress Arrows" + name: 'compress-arrows-alt', + search: ['collapse', 'fullscreen', 'minimize', 'move', 'resize', 'shrink', 'smaller'], + styles: ['solid'], + label: 'Alternate Compress Arrows' }, { - name: "concierge-bell", - search: ["attention", "hotel", "receptionist", "service", "support"], - styles: ["solid"], - label: "Concierge Bell" + name: 'concierge-bell', + search: ['attention', 'hotel', 'receptionist', 'service', 'support'], + styles: ['solid'], + label: 'Concierge Bell' }, { - name: "confluence", - search: ["atlassian"], - styles: ["brands"], - label: "Confluence" + name: 'confluence', + search: ['atlassian'], + styles: ['brands'], + label: 'Confluence' }, { - name: "connectdevelop", + name: 'connectdevelop', search: [], - styles: ["brands"], - label: "Connect Develop" + styles: ['brands'], + label: 'Connect Develop' }, { - name: "contao", + name: 'contao', search: [], - styles: ["brands"], - label: "Contao" + styles: ['brands'], + label: 'Contao' }, { - name: "cookie", - search: ["baked good", "chips", "chocolate", "eat", "snack", "sweet", "treat"], - styles: ["solid"], - label: "Cookie" + name: 'cookie', + search: ['baked good', 'chips', 'chocolate', 'eat', 'snack', 'sweet', 'treat'], + styles: ['solid'], + label: 'Cookie' }, { - name: "cookie-bite", - search: ["baked good", "bitten", "chips", "chocolate", "eat", "snack", "sweet", "treat"], - styles: ["solid"], - label: "Cookie Bite" + name: 'cookie-bite', + search: ['baked good', 'bitten', 'chips', 'chocolate', 'eat', 'snack', 'sweet', 'treat'], + styles: ['solid'], + label: 'Cookie Bite' }, { - name: "copy", - search: ["clone", "duplicate", "file", "files-o", "paper", "paste"], - styles: ["solid", "regular"], - label: "Copy" + name: 'copy', + search: ['clone', 'duplicate', 'file', 'files-o', 'paper', 'paste'], + styles: ['solid', 'regular'], + label: 'Copy' }, { - name: "copyright", - search: ["brand", "mark", "register", "trademark"], - styles: ["solid", "regular"], - label: "Copyright" + name: 'copyright', + search: ['brand', 'mark', 'register', 'trademark'], + styles: ['solid', 'regular'], + label: 'Copyright' }, { - name: "cotton-bureau", - search: ["clothing", "t-shirts", "tshirts"], - styles: ["brands"], - label: "Cotton Bureau" + name: 'cotton-bureau', + search: ['clothing', 't-shirts', 'tshirts'], + styles: ['brands'], + label: 'Cotton Bureau' }, { - name: "couch", - search: ["chair", "cushion", "furniture", "relax", "sofa"], - styles: ["solid"], - label: "Couch" + name: 'couch', + search: ['chair', 'cushion', 'furniture', 'relax', 'sofa'], + styles: ['solid'], + label: 'Couch' }, { - name: "cpanel", + name: 'cpanel', search: [], - styles: ["brands"], - label: "cPanel" + styles: ['brands'], + label: 'cPanel' }, { - name: "creative-commons", + name: 'creative-commons', search: [], - styles: ["brands"], - label: "Creative Commons" + styles: ['brands'], + label: 'Creative Commons' }, { - name: "creative-commons-by", + name: 'creative-commons-by', search: [], - styles: ["brands"], - label: "Creative Commons Attribution" + styles: ['brands'], + label: 'Creative Commons Attribution' }, { - name: "creative-commons-nc", + name: 'creative-commons-nc', search: [], - styles: ["brands"], - label: "Creative Commons Noncommercial" + styles: ['brands'], + label: 'Creative Commons Noncommercial' }, { - name: "creative-commons-nc-eu", + name: 'creative-commons-nc-eu', search: [], - styles: ["brands"], - label: "Creative Commons Noncommercial (Euro Sign)" + styles: ['brands'], + label: 'Creative Commons Noncommercial (Euro Sign)' }, { - name: "creative-commons-nc-jp", + name: 'creative-commons-nc-jp', search: [], - styles: ["brands"], - label: "Creative Commons Noncommercial (Yen Sign)" + styles: ['brands'], + label: 'Creative Commons Noncommercial (Yen Sign)' }, { - name: "creative-commons-nd", + name: 'creative-commons-nd', search: [], - styles: ["brands"], - label: "Creative Commons No Derivative Works" + styles: ['brands'], + label: 'Creative Commons No Derivative Works' }, { - name: "creative-commons-pd", + name: 'creative-commons-pd', search: [], - styles: ["brands"], - label: "Creative Commons Public Domain" + styles: ['brands'], + label: 'Creative Commons Public Domain' }, { - name: "creative-commons-pd-alt", + name: 'creative-commons-pd-alt', search: [], - styles: ["brands"], - label: "Alternate Creative Commons Public Domain" + styles: ['brands'], + label: 'Alternate Creative Commons Public Domain' }, { - name: "creative-commons-remix", + name: 'creative-commons-remix', search: [], - styles: ["brands"], - label: "Creative Commons Remix" + styles: ['brands'], + label: 'Creative Commons Remix' }, { - name: "creative-commons-sa", + name: 'creative-commons-sa', search: [], - styles: ["brands"], - label: "Creative Commons Share Alike" + styles: ['brands'], + label: 'Creative Commons Share Alike' }, { - name: "creative-commons-sampling", + name: 'creative-commons-sampling', search: [], - styles: ["brands"], - label: "Creative Commons Sampling" + styles: ['brands'], + label: 'Creative Commons Sampling' }, { - name: "creative-commons-sampling-plus", + name: 'creative-commons-sampling-plus', search: [], - styles: ["brands"], - label: "Creative Commons Sampling +" + styles: ['brands'], + label: 'Creative Commons Sampling +' }, { - name: "creative-commons-share", + name: 'creative-commons-share', search: [], - styles: ["brands"], - label: "Creative Commons Share" + styles: ['brands'], + label: 'Creative Commons Share' }, { - name: "creative-commons-zero", + name: 'creative-commons-zero', search: [], - styles: ["brands"], - label: "Creative Commons CC0" + styles: ['brands'], + label: 'Creative Commons CC0' }, { - name: "credit-card", - search: ["buy", "checkout", "credit-card-alt", "debit", "money", "payment", "purchase"], - styles: ["solid", "regular"], - label: "Credit Card" + name: 'credit-card', + search: ['buy', 'checkout', 'credit-card-alt', 'debit', 'money', 'payment', 'purchase'], + styles: ['solid', 'regular'], + label: 'Credit Card' }, { - name: "critical-role", - search: ["Dungeons & Dragons", "d&d", "dnd", "fantasy", "game", "gaming", "tabletop"], - styles: ["brands"], - label: "Critical Role" + name: 'critical-role', + search: ['Dungeons & Dragons', 'd&d', 'dnd', 'fantasy', 'game', 'gaming', 'tabletop'], + styles: ['brands'], + label: 'Critical Role' }, { - name: "crop", - search: ["design", "frame", "mask", "resize", "shrink"], - styles: ["solid"], - label: "crop" + name: 'crop', + search: ['design', 'frame', 'mask', 'resize', 'shrink'], + styles: ['solid'], + label: 'crop' }, { - name: "crop-alt", - search: ["design", "frame", "mask", "resize", "shrink"], - styles: ["solid"], - label: "Alternate Crop" + name: 'crop-alt', + search: ['design', 'frame', 'mask', 'resize', 'shrink'], + styles: ['solid'], + label: 'Alternate Crop' }, { - name: "cross", - search: ["catholicism", "christianity", "church", "jesus"], - styles: ["solid"], - label: "Cross" + name: 'cross', + search: ['catholicism', 'christianity', 'church', 'jesus'], + styles: ['solid'], + label: 'Cross' }, { - name: "crosshairs", - search: ["aim", "bullseye", "gpd", "picker", "position"], - styles: ["solid"], - label: "Crosshairs" + name: 'crosshairs', + search: ['aim', 'bullseye', 'gpd', 'picker', 'position'], + styles: ['solid'], + label: 'Crosshairs' }, { - name: "crow", - search: ["bird", "bullfrog", "fauna", "halloween", "holiday", "toad"], - styles: ["solid"], - label: "Crow" + name: 'crow', + search: ['bird', 'bullfrog', 'fauna', 'halloween', 'holiday', 'toad'], + styles: ['solid'], + label: 'Crow' }, { - name: "crown", - search: ["award", "favorite", "king", "queen", "royal", "tiara"], - styles: ["solid"], - label: "Crown" + name: 'crown', + search: ['award', 'favorite', 'king', 'queen', 'royal', 'tiara'], + styles: ['solid'], + label: 'Crown' }, { - name: "crutch", - search: ["cane", "injury", "mobility", "wheelchair"], - styles: ["solid"], - label: "Crutch" + name: 'crutch', + search: ['cane', 'injury', 'mobility', 'wheelchair'], + styles: ['solid'], + label: 'Crutch' }, { - name: "css3", - search: ["code"], - styles: ["brands"], - label: "CSS 3 Logo" + name: 'css3', + search: ['code'], + styles: ['brands'], + label: 'CSS 3 Logo' }, { - name: "css3-alt", + name: 'css3-alt', search: [], - styles: ["brands"], - label: "Alternate CSS3 Logo" + styles: ['brands'], + label: 'Alternate CSS3 Logo' }, { - name: "cube", - search: ["3d", "block", "dice", "package", "square", "tesseract"], - styles: ["solid"], - label: "Cube" + name: 'cube', + search: ['3d', 'block', 'dice', 'package', 'square', 'tesseract'], + styles: ['solid'], + label: 'Cube' }, { - name: "cubes", - search: ["3d", "block", "dice", "package", "pyramid", "square", "stack", "tesseract"], - styles: ["solid"], - label: "Cubes" + name: 'cubes', + search: ['3d', 'block', 'dice', 'package', 'pyramid', 'square', 'stack', 'tesseract'], + styles: ['solid'], + label: 'Cubes' }, { - name: "cut", - search: ["clip", "scissors", "snip"], - styles: ["solid"], - label: "Cut" + name: 'cut', + search: ['clip', 'scissors', 'snip'], + styles: ['solid'], + label: 'Cut' }, { - name: "cuttlefish", + name: 'cuttlefish', search: [], - styles: ["brands"], - label: "Cuttlefish" + styles: ['brands'], + label: 'Cuttlefish' }, { - name: "d-and-d", + name: 'd-and-d', search: [], - styles: ["brands"], - label: "Dungeons & Dragons" + styles: ['brands'], + label: 'Dungeons & Dragons' }, { - name: "d-and-d-beyond", - search: ["Dungeons & Dragons", "d&d", "dnd", "fantasy", "gaming", "tabletop"], - styles: ["brands"], - label: "D&D Beyond" + name: 'd-and-d-beyond', + search: ['Dungeons & Dragons', 'd&d', 'dnd', 'fantasy', 'gaming', 'tabletop'], + styles: ['brands'], + label: 'D&D Beyond' }, { - name: "dailymotion", + name: 'dailymotion', search: [], - styles: ["brands"], - label: "dailymotion" + styles: ['brands'], + label: 'dailymotion' }, { - name: "dashcube", + name: 'dashcube', search: [], - styles: ["brands"], - label: "DashCube" + styles: ['brands'], + label: 'DashCube' }, { - name: "database", - search: ["computer", "development", "directory", "memory", "storage"], - styles: ["solid"], - label: "Database" + name: 'database', + search: ['computer', 'development', 'directory', 'memory', 'storage'], + styles: ['solid'], + label: 'Database' }, { - name: "deaf", - search: ["ear", "hearing", "sign language"], - styles: ["solid"], - label: "Deaf" + name: 'deaf', + search: ['ear', 'hearing', 'sign language'], + styles: ['solid'], + label: 'Deaf' }, { - name: "delicious", + name: 'delicious', search: [], - styles: ["brands"], - label: "Delicious" + styles: ['brands'], + label: 'Delicious' }, { - name: "democrat", - search: ["american", "democratic party", "donkey", "election", "left", "left-wing", "liberal", "politics", "usa"], - styles: ["solid"], - label: "Democrat" + name: 'democrat', + search: ['american', 'democratic party', 'donkey', 'election', 'left', 'left-wing', 'liberal', 'politics', 'usa'], + styles: ['solid'], + label: 'Democrat' }, { - name: "deploydog", + name: 'deploydog', search: [], - styles: ["brands"], - label: "deploy.dog" + styles: ['brands'], + label: 'deploy.dog' }, { - name: "deskpro", + name: 'deskpro', search: [], - styles: ["brands"], - label: "Deskpro" + styles: ['brands'], + label: 'Deskpro' }, { - name: "desktop", - search: ["computer", "cpu", "demo", "desktop", "device", "imac", "machine", "monitor", "pc", "screen"], - styles: ["solid"], - label: "Desktop" + name: 'desktop', + search: ['computer', 'cpu', 'demo', 'desktop', 'device', 'imac', 'machine', 'monitor', 'pc', 'screen'], + styles: ['solid'], + label: 'Desktop' }, { - name: "dev", + name: 'dev', search: [], - styles: ["brands"], - label: "DEV" + styles: ['brands'], + label: 'DEV' }, { - name: "deviantart", + name: 'deviantart', search: [], - styles: ["brands"], - label: "deviantART" + styles: ['brands'], + label: 'deviantART' }, { - name: "dharmachakra", - search: ["buddhism", "buddhist", "wheel of dharma"], - styles: ["solid"], - label: "Dharmachakra" + name: 'dharmachakra', + search: ['buddhism', 'buddhist', 'wheel of dharma'], + styles: ['solid'], + label: 'Dharmachakra' }, { - name: "dhl", - search: ["Dalsey", "Hillblom and Lynn", "german", "package", "shipping"], - styles: ["brands"], - label: "DHL" + name: 'dhl', + search: ['Dalsey', 'Hillblom and Lynn', 'german', 'package', 'shipping'], + styles: ['brands'], + label: 'DHL' }, { - name: "diagnoses", - search: ["analyze", "detect", "diagnosis", "examine", "medicine"], - styles: ["solid"], - label: "Diagnoses" + name: 'diagnoses', + search: ['analyze', 'detect', 'diagnosis', 'examine', 'medicine'], + styles: ['solid'], + label: 'Diagnoses' }, { - name: "diaspora", + name: 'diaspora', search: [], - styles: ["brands"], - label: "Diaspora" + styles: ['brands'], + label: 'Diaspora' }, { - name: "dice", - search: ["chance", "gambling", "game", "roll"], - styles: ["solid"], - label: "Dice" + name: 'dice', + search: ['chance', 'gambling', 'game', 'roll'], + styles: ['solid'], + label: 'Dice' }, { - name: "dice-d20", - search: ["Dungeons & Dragons", "chance", "d&d", "dnd", "fantasy", "gambling", "game", "roll"], - styles: ["solid"], - label: "Dice D20" + name: 'dice-d20', + search: ['Dungeons & Dragons', 'chance', 'd&d', 'dnd', 'fantasy', 'gambling', 'game', 'roll'], + styles: ['solid'], + label: 'Dice D20' }, { - name: "dice-d6", - search: ["Dungeons & Dragons", "chance", "d&d", "dnd", "fantasy", "gambling", "game", "roll"], - styles: ["solid"], - label: "Dice D6" + name: 'dice-d6', + search: ['Dungeons & Dragons', 'chance', 'd&d', 'dnd', 'fantasy', 'gambling', 'game', 'roll'], + styles: ['solid'], + label: 'Dice D6' }, { - name: "dice-five", - search: ["chance", "gambling", "game", "roll"], - styles: ["solid"], - label: "Dice Five" + name: 'dice-five', + search: ['chance', 'gambling', 'game', 'roll'], + styles: ['solid'], + label: 'Dice Five' }, { - name: "dice-four", - search: ["chance", "gambling", "game", "roll"], - styles: ["solid"], - label: "Dice Four" + name: 'dice-four', + search: ['chance', 'gambling', 'game', 'roll'], + styles: ['solid'], + label: 'Dice Four' }, { - name: "dice-one", - search: ["chance", "gambling", "game", "roll"], - styles: ["solid"], - label: "Dice One" + name: 'dice-one', + search: ['chance', 'gambling', 'game', 'roll'], + styles: ['solid'], + label: 'Dice One' }, { - name: "dice-six", - search: ["chance", "gambling", "game", "roll"], - styles: ["solid"], - label: "Dice Six" + name: 'dice-six', + search: ['chance', 'gambling', 'game', 'roll'], + styles: ['solid'], + label: 'Dice Six' }, { - name: "dice-three", - search: ["chance", "gambling", "game", "roll"], - styles: ["solid"], - label: "Dice Three" + name: 'dice-three', + search: ['chance', 'gambling', 'game', 'roll'], + styles: ['solid'], + label: 'Dice Three' }, { - name: "dice-two", - search: ["chance", "gambling", "game", "roll"], - styles: ["solid"], - label: "Dice Two" + name: 'dice-two', + search: ['chance', 'gambling', 'game', 'roll'], + styles: ['solid'], + label: 'Dice Two' }, { - name: "digg", + name: 'digg', search: [], - styles: ["brands"], - label: "Digg Logo" + styles: ['brands'], + label: 'Digg Logo' }, { - name: "digital-ocean", + name: 'digital-ocean', search: [], - styles: ["brands"], - label: "Digital Ocean" + styles: ['brands'], + label: 'Digital Ocean' }, { - name: "digital-tachograph", - search: ["data", "distance", "speed", "tachometer"], - styles: ["solid"], - label: "Digital Tachograph" + name: 'digital-tachograph', + search: ['data', 'distance', 'speed', 'tachometer'], + styles: ['solid'], + label: 'Digital Tachograph' }, { - name: "directions", - search: ["map", "navigation", "sign", "turn"], - styles: ["solid"], - label: "Directions" + name: 'directions', + search: ['map', 'navigation', 'sign', 'turn'], + styles: ['solid'], + label: 'Directions' }, { - name: "discord", + name: 'discord', search: [], - styles: ["brands"], - label: "Discord" + styles: ['brands'], + label: 'Discord' }, { - name: "discourse", + name: 'discourse', search: [], - styles: ["brands"], - label: "Discourse" + styles: ['brands'], + label: 'Discourse' }, { - name: "disease", - search: ["bacteria", "cancer", "covid-19", "illness", "infection", "sickness", "virus"], - styles: ["solid"], - label: "Disease" + name: 'disease', + search: ['bacteria', 'cancer', 'covid-19', 'illness', 'infection', 'sickness', 'virus'], + styles: ['solid'], + label: 'Disease' }, { - name: "divide", - search: ["arithmetic", "calculus", "division", "math"], - styles: ["solid"], - label: "Divide" + name: 'divide', + search: ['arithmetic', 'calculus', 'division', 'math'], + styles: ['solid'], + label: 'Divide' }, { - name: "dizzy", - search: ["dazed", "dead", "disapprove", "emoticon", "face"], - styles: ["solid", "regular"], - label: "Dizzy Face" + name: 'dizzy', + search: ['dazed', 'dead', 'disapprove', 'emoticon', 'face'], + styles: ['solid', 'regular'], + label: 'Dizzy Face' }, { - name: "dna", - search: ["double helix", "genetic", "helix", "molecule", "protein"], - styles: ["solid"], - label: "DNA" + name: 'dna', + search: ['double helix', 'genetic', 'helix', 'molecule', 'protein'], + styles: ['solid'], + label: 'DNA' }, { - name: "dochub", + name: 'dochub', search: [], - styles: ["brands"], - label: "DocHub" + styles: ['brands'], + label: 'DocHub' }, { - name: "docker", + name: 'docker', search: [], - styles: ["brands"], - label: "Docker" + styles: ['brands'], + label: 'Docker' }, { - name: "dog", - search: ["animal", "canine", "fauna", "mammal", "pet", "pooch", "puppy", "woof"], - styles: ["solid"], - label: "Dog" + name: 'dog', + search: ['animal', 'canine', 'fauna', 'mammal', 'pet', 'pooch', 'puppy', 'woof'], + styles: ['solid'], + label: 'Dog' }, { - name: "dollar-sign", - search: ["$", "cost", "dollar-sign", "money", "price", "usd"], - styles: ["solid"], - label: "Dollar Sign" + name: 'dollar-sign', + search: ['$', 'cost', 'dollar-sign', 'money', 'price', 'usd'], + styles: ['solid'], + label: 'Dollar Sign' }, { - name: "dolly", - search: ["carry", "shipping", "transport"], - styles: ["solid"], - label: "Dolly" + name: 'dolly', + search: ['carry', 'shipping', 'transport'], + styles: ['solid'], + label: 'Dolly' }, { - name: "dolly-flatbed", - search: ["carry", "inventory", "shipping", "transport"], - styles: ["solid"], - label: "Dolly Flatbed" + name: 'dolly-flatbed', + search: ['carry', 'inventory', 'shipping', 'transport'], + styles: ['solid'], + label: 'Dolly Flatbed' }, { - name: "donate", - search: ["contribute", "generosity", "gift", "give"], - styles: ["solid"], - label: "Donate" + name: 'donate', + search: ['contribute', 'generosity', 'gift', 'give'], + styles: ['solid'], + label: 'Donate' }, { - name: "door-closed", - search: ["enter", "exit", "locked"], - styles: ["solid"], - label: "Door Closed" + name: 'door-closed', + search: ['enter', 'exit', 'locked'], + styles: ['solid'], + label: 'Door Closed' }, { - name: "door-open", - search: ["enter", "exit", "welcome"], - styles: ["solid"], - label: "Door Open" + name: 'door-open', + search: ['enter', 'exit', 'welcome'], + styles: ['solid'], + label: 'Door Open' }, { - name: "dot-circle", - search: ["bullseye", "notification", "target"], - styles: ["solid", "regular"], - label: "Dot Circle" + name: 'dot-circle', + search: ['bullseye', 'notification', 'target'], + styles: ['solid', 'regular'], + label: 'Dot Circle' }, { - name: "dove", - search: ["bird", "fauna", "flying", "peace", "war"], - styles: ["solid"], - label: "Dove" + name: 'dove', + search: ['bird', 'fauna', 'flying', 'peace', 'war'], + styles: ['solid'], + label: 'Dove' }, { - name: "download", - search: ["export", "hard drive", "save", "transfer"], - styles: ["solid"], - label: "Download" + name: 'download', + search: ['export', 'hard drive', 'save', 'transfer'], + styles: ['solid'], + label: 'Download' }, { - name: "draft2digital", + name: 'draft2digital', search: [], - styles: ["brands"], - label: "Draft2digital" + styles: ['brands'], + label: 'Draft2digital' }, { - name: "drafting-compass", - search: ["design", "map", "mechanical drawing", "plot", "plotting"], - styles: ["solid"], - label: "Drafting Compass" + name: 'drafting-compass', + search: ['design', 'map', 'mechanical drawing', 'plot', 'plotting'], + styles: ['solid'], + label: 'Drafting Compass' }, { - name: "dragon", - search: ["Dungeons & Dragons", "d&d", "dnd", "fantasy", "fire", "lizard", "serpent"], - styles: ["solid"], - label: "Dragon" + name: 'dragon', + search: ['Dungeons & Dragons', 'd&d', 'dnd', 'fantasy', 'fire', 'lizard', 'serpent'], + styles: ['solid'], + label: 'Dragon' }, { - name: "draw-polygon", - search: ["anchors", "lines", "object", "render", "shape"], - styles: ["solid"], - label: "Draw Polygon" + name: 'draw-polygon', + search: ['anchors', 'lines', 'object', 'render', 'shape'], + styles: ['solid'], + label: 'Draw Polygon' }, { - name: "dribbble", + name: 'dribbble', search: [], - styles: ["brands"], - label: "Dribbble" + styles: ['brands'], + label: 'Dribbble' }, { - name: "dribbble-square", + name: 'dribbble-square', search: [], - styles: ["brands"], - label: "Dribbble Square" + styles: ['brands'], + label: 'Dribbble Square' }, { - name: "dropbox", + name: 'dropbox', search: [], - styles: ["brands"], - label: "Dropbox" + styles: ['brands'], + label: 'Dropbox' }, { - name: "drum", - search: ["instrument", "music", "percussion", "snare", "sound"], - styles: ["solid"], - label: "Drum" + name: 'drum', + search: ['instrument', 'music', 'percussion', 'snare', 'sound'], + styles: ['solid'], + label: 'Drum' }, { - name: "drum-steelpan", - search: ["calypso", "instrument", "music", "percussion", "reggae", "snare", "sound", "steel", "tropical"], - styles: ["solid"], - label: "Drum Steelpan" + name: 'drum-steelpan', + search: ['calypso', 'instrument', 'music', 'percussion', 'reggae', 'snare', 'sound', 'steel', 'tropical'], + styles: ['solid'], + label: 'Drum Steelpan' }, { - name: "drumstick-bite", - search: ["bone", "chicken", "leg", "meat", "poultry", "turkey"], - styles: ["solid"], - label: "Drumstick with Bite Taken Out" + name: 'drumstick-bite', + search: ['bone', 'chicken', 'leg', 'meat', 'poultry', 'turkey'], + styles: ['solid'], + label: 'Drumstick with Bite Taken Out' }, { - name: "drupal", + name: 'drupal', search: [], - styles: ["brands"], - label: "Drupal Logo" + styles: ['brands'], + label: 'Drupal Logo' }, { - name: "dumbbell", - search: ["exercise", "gym", "strength", "weight", "weight-lifting"], - styles: ["solid"], - label: "Dumbbell" + name: 'dumbbell', + search: ['exercise', 'gym', 'strength', 'weight', 'weight-lifting'], + styles: ['solid'], + label: 'Dumbbell' }, { - name: "dumpster", - search: ["alley", "bin", "commercial", "trash", "waste"], - styles: ["solid"], - label: "Dumpster" + name: 'dumpster', + search: ['alley', 'bin', 'commercial', 'trash', 'waste'], + styles: ['solid'], + label: 'Dumpster' }, { - name: "dumpster-fire", - search: ["alley", "bin", "commercial", "danger", "dangerous", "euphemism", "flame", "heat", "hot", "trash", "waste"], - styles: ["solid"], - label: "Dumpster Fire" + name: 'dumpster-fire', + search: ['alley', 'bin', 'commercial', 'danger', 'dangerous', 'euphemism', 'flame', 'heat', 'hot', 'trash', 'waste'], + styles: ['solid'], + label: 'Dumpster Fire' }, { - name: "dungeon", - search: ["Dungeons & Dragons", "building", "d&d", "dnd", "door", "entrance", "fantasy", "gate"], - styles: ["solid"], - label: "Dungeon" + name: 'dungeon', + search: ['Dungeons & Dragons', 'building', 'd&d', 'dnd', 'door', 'entrance', 'fantasy', 'gate'], + styles: ['solid'], + label: 'Dungeon' }, { - name: "dyalog", + name: 'dyalog', search: [], - styles: ["brands"], - label: "Dyalog" + styles: ['brands'], + label: 'Dyalog' }, { - name: "earlybirds", + name: 'earlybirds', search: [], - styles: ["brands"], - label: "Earlybirds" + styles: ['brands'], + label: 'Earlybirds' }, { - name: "ebay", + name: 'ebay', search: [], - styles: ["brands"], - label: "eBay" + styles: ['brands'], + label: 'eBay' }, { - name: "edge", - search: ["browser", "ie"], - styles: ["brands"], - label: "Edge Browser" + name: 'edge', + search: ['browser', 'ie'], + styles: ['brands'], + label: 'Edge Browser' }, { - name: "edit", - search: ["edit", "pen", "pencil", "update", "write"], - styles: ["solid", "regular"], - label: "Edit" + name: 'edit', + search: ['edit', 'pen', 'pencil', 'update', 'write'], + styles: ['solid', 'regular'], + label: 'Edit' }, { - name: "egg", - search: ["breakfast", "chicken", "easter", "shell", "yolk"], - styles: ["solid"], - label: "Egg" + name: 'egg', + search: ['breakfast', 'chicken', 'easter', 'shell', 'yolk'], + styles: ['solid'], + label: 'Egg' }, { - name: "eject", - search: ["abort", "cancel", "cd", "discharge"], - styles: ["solid"], - label: "eject" + name: 'eject', + search: ['abort', 'cancel', 'cd', 'discharge'], + styles: ['solid'], + label: 'eject' }, { - name: "elementor", + name: 'elementor', search: [], - styles: ["brands"], - label: "Elementor" + styles: ['brands'], + label: 'Elementor' }, { - name: "ellipsis-h", - search: ["dots", "drag", "kebab", "list", "menu", "nav", "navigation", "ol", "reorder", "settings", "ul"], - styles: ["solid"], - label: "Horizontal Ellipsis" + name: 'ellipsis-h', + search: ['dots', 'drag', 'kebab', 'list', 'menu', 'nav', 'navigation', 'ol', 'reorder', 'settings', 'ul'], + styles: ['solid'], + label: 'Horizontal Ellipsis' }, { - name: "ellipsis-v", - search: ["dots", "drag", "kebab", "list", "menu", "nav", "navigation", "ol", "reorder", "settings", "ul"], - styles: ["solid"], - label: "Vertical Ellipsis" + name: 'ellipsis-v', + search: ['dots', 'drag', 'kebab', 'list', 'menu', 'nav', 'navigation', 'ol', 'reorder', 'settings', 'ul'], + styles: ['solid'], + label: 'Vertical Ellipsis' }, { - name: "ello", + name: 'ello', search: [], - styles: ["brands"], - label: "Ello" + styles: ['brands'], + label: 'Ello' }, { - name: "ember", + name: 'ember', search: [], - styles: ["brands"], - label: "Ember" + styles: ['brands'], + label: 'Ember' }, { - name: "empire", + name: 'empire', search: [], - styles: ["brands"], - label: "Galactic Empire" + styles: ['brands'], + label: 'Galactic Empire' }, { - name: "envelope", - search: ["e-mail", "email", "letter", "mail", "message", "notification", "support"], - styles: ["solid", "regular"], - label: "Envelope" + name: 'envelope', + search: ['e-mail', 'email', 'letter', 'mail', 'message', 'notification', 'support'], + styles: ['solid', 'regular'], + label: 'Envelope' }, { - name: "envelope-open", - search: ["e-mail", "email", "letter", "mail", "message", "notification", "support"], - styles: ["solid", "regular"], - label: "Envelope Open" + name: 'envelope-open', + search: ['e-mail', 'email', 'letter', 'mail', 'message', 'notification', 'support'], + styles: ['solid', 'regular'], + label: 'Envelope Open' }, { - name: "envelope-open-text", - search: ["e-mail", "email", "letter", "mail", "message", "notification", "support"], - styles: ["solid"], - label: "Envelope Open-text" + name: 'envelope-open-text', + search: ['e-mail', 'email', 'letter', 'mail', 'message', 'notification', 'support'], + styles: ['solid'], + label: 'Envelope Open-text' }, { - name: "envelope-square", - search: ["e-mail", "email", "letter", "mail", "message", "notification", "support"], - styles: ["solid"], - label: "Envelope Square" + name: 'envelope-square', + search: ['e-mail', 'email', 'letter', 'mail', 'message', 'notification', 'support'], + styles: ['solid'], + label: 'Envelope Square' }, { - name: "envira", - search: ["leaf"], - styles: ["brands"], - label: "Envira Gallery" + name: 'envira', + search: ['leaf'], + styles: ['brands'], + label: 'Envira Gallery' }, { - name: "equals", - search: ["arithmetic", "even", "match", "math"], - styles: ["solid"], - label: "Equals" + name: 'equals', + search: ['arithmetic', 'even', 'match', 'math'], + styles: ['solid'], + label: 'Equals' }, { - name: "eraser", - search: ["art", "delete", "remove", "rubber"], - styles: ["solid"], - label: "eraser" + name: 'eraser', + search: ['art', 'delete', 'remove', 'rubber'], + styles: ['solid'], + label: 'eraser' }, { - name: "erlang", + name: 'erlang', search: [], - styles: ["brands"], - label: "Erlang" + styles: ['brands'], + label: 'Erlang' }, { - name: "ethereum", + name: 'ethereum', search: [], - styles: ["brands"], - label: "Ethereum" + styles: ['brands'], + label: 'Ethereum' }, { - name: "ethernet", - search: ["cable", "cat 5", "cat 6", "connection", "hardware", "internet", "network", "wired"], - styles: ["solid"], - label: "Ethernet" + name: 'ethernet', + search: ['cable', 'cat 5', 'cat 6', 'connection', 'hardware', 'internet', 'network', 'wired'], + styles: ['solid'], + label: 'Ethernet' }, { - name: "etsy", + name: 'etsy', search: [], - styles: ["brands"], - label: "Etsy" + styles: ['brands'], + label: 'Etsy' }, { - name: "euro-sign", - search: ["currency", "dollar", "exchange", "money"], - styles: ["solid"], - label: "Euro Sign" + name: 'euro-sign', + search: ['currency', 'dollar', 'exchange', 'money'], + styles: ['solid'], + label: 'Euro Sign' }, { - name: "evernote", + name: 'evernote', search: [], - styles: ["brands"], - label: "Evernote" + styles: ['brands'], + label: 'Evernote' }, { - name: "exchange-alt", - search: ["arrow", "arrows", "exchange", "reciprocate", "return", "swap", "transfer"], - styles: ["solid"], - label: "Alternate Exchange" + name: 'exchange-alt', + search: ['arrow', 'arrows', 'exchange', 'reciprocate', 'return', 'swap', 'transfer'], + styles: ['solid'], + label: 'Alternate Exchange' }, { - name: "exclamation", - search: ["alert", "danger", "error", "important", "notice", "notification", "notify", "problem", "warning"], - styles: ["solid"], - label: "exclamation" + name: 'exclamation', + search: ['alert', 'danger', 'error', 'important', 'notice', 'notification', 'notify', 'problem', 'warning'], + styles: ['solid'], + label: 'exclamation' }, { - name: "exclamation-circle", - search: ["alert", "danger", "error", "important", "notice", "notification", "notify", "problem", "warning"], - styles: ["solid"], - label: "Exclamation Circle" + name: 'exclamation-circle', + search: ['alert', 'danger', 'error', 'important', 'notice', 'notification', 'notify', 'problem', 'warning'], + styles: ['solid'], + label: 'Exclamation Circle' }, { - name: "exclamation-triangle", - search: ["alert", "danger", "error", "important", "notice", "notification", "notify", "problem", "warning"], - styles: ["solid"], - label: "Exclamation Triangle" + name: 'exclamation-triangle', + search: ['alert', 'danger', 'error', 'important', 'notice', 'notification', 'notify', 'problem', 'warning'], + styles: ['solid'], + label: 'Exclamation Triangle' }, { - name: "expand", - search: ["arrow", "bigger", "enlarge", "resize"], - styles: ["solid"], - label: "Expand" -}, { - name: "expand-alt", - search: ["arrow", "bigger", "enlarge", "resize"], - styles: ["solid"], - label: "Alternate Expand" -}, { - name: "expand-arrows-alt", - search: ["arrows-alt", "bigger", "enlarge", "move", "resize"], - styles: ["solid"], - label: "Alternate Expand Arrows" -}, { - name: "expeditedssl", - search: [], - styles: ["brands"], - label: "ExpeditedSSL" -}, { - name: "external-link-alt", - search: ["external-link", "new", "open", "share"], - styles: ["solid"], - label: "Alternate External Link" -}, { - name: "external-link-square-alt", - search: ["external-link-square", "new", "open", "share"], - styles: ["solid"], - label: "Alternate External Link Square" -}, { - name: "eye", - search: ["look", "optic", "see", "seen", "show", "sight", "views", "visible"], - styles: ["solid", "regular"], - label: "Eye" -}, { - name: "eye-dropper", - search: ["beaker", "clone", "color", "copy", "eyedropper", "pipette"], - styles: ["solid"], - label: "Eye Dropper" -}, { - name: "eye-slash", - search: ["blind", "hide", "show", "toggle", "unseen", "views", "visible", "visiblity"], - styles: ["solid", "regular"], - label: "Eye Slash" -}, { - name: "facebook", - search: ["facebook-official", "social network"], - styles: ["brands"], - label: "Facebook" -}, { - name: "facebook-f", - search: ["facebook"], - styles: ["brands"], - label: "Facebook F" -}, { - name: "facebook-messenger", - search: [], - styles: ["brands"], - label: "Facebook Messenger" -}, { - name: "facebook-square", - search: ["social network"], - styles: ["brands"], - label: "Facebook Square" -}, { - name: "fan", - search: ["ac", "air conditioning", "blade", "blower", "cool", "hot"], - styles: ["solid"], - label: "Fan" -}, { - name: "fantasy-flight-games", - search: ["Dungeons & Dragons", "d&d", "dnd", "fantasy", "game", "gaming", "tabletop"], - styles: ["brands"], - label: "Fantasy Flight-games" -}, { - name: "fast-backward", - search: ["beginning", "first", "previous", "rewind", "start"], - styles: ["solid"], - label: "fast-backward" -}, { - name: "fast-forward", - search: ["end", "last", "next"], - styles: ["solid"], - label: "fast-forward" -}, { - name: "faucet", - search: ["covid-19", "drip", "house", "hygiene", "kitchen", "sink", "water"], - styles: ["solid"], - label: "Faucet" -}, { - name: "fax", - search: ["business", "communicate", "copy", "facsimile", "send"], - styles: ["solid"], - label: "Fax" -}, { - name: "feather", - search: ["bird", "light", "plucked", "quill", "write"], - styles: ["solid"], - label: "Feather" -}, { - name: "feather-alt", - search: ["bird", "light", "plucked", "quill", "write"], - styles: ["solid"], - label: "Alternate Feather" -}, { - name: "fedex", - search: ["Federal Express", "package", "shipping"], - styles: ["brands"], - label: "FedEx" -}, { - name: "fedora", - search: ["linux", "operating system", "os"], - styles: ["brands"], - label: "Fedora" -}, { - name: "female", - search: ["human", "person", "profile", "user", "woman"], - styles: ["solid"], - label: "Female" -}, { - name: "fighter-jet", - search: ["airplane", "fast", "fly", "goose", "maverick", "plane", "quick", "top gun", "transportation", "travel"], - styles: ["solid"], - label: "fighter-jet" -}, { - name: "figma", - search: ["app", "design", "interface"], - styles: ["brands"], - label: "Figma" -}, { - name: "file", - search: ["document", "new", "page", "pdf", "resume"], - styles: ["solid", "regular"], - label: "File" -}, { - name: "file-alt", - search: ["document", "file-text", "invoice", "new", "page", "pdf"], - styles: ["solid", "regular"], - label: "Alternate File" -}, { - name: "file-archive", - search: [".zip", "bundle", "compress", "compression", "download", "zip"], - styles: ["solid", "regular"], - label: "Archive File" -}, { - name: "file-audio", - search: ["document", "mp3", "music", "page", "play", "sound"], - styles: ["solid", "regular"], - label: "Audio File" -}, { - name: "file-code", - search: ["css", "development", "document", "html"], - styles: ["solid", "regular"], - label: "Code File" -}, { - name: "file-contract", - search: ["agreement", "binding", "document", "legal", "signature"], - styles: ["solid"], - label: "File Contract" -}, { - name: "file-csv", - search: ["document", "excel", "numbers", "spreadsheets", "table"], - styles: ["solid"], - label: "File CSV" -}, { - name: "file-download", - search: ["document", "export", "save"], - styles: ["solid"], - label: "File Download" -}, { - name: "file-excel", - search: ["csv", "document", "numbers", "spreadsheets", "table"], - styles: ["solid", "regular"], - label: "Excel File" -}, { - name: "file-export", - search: ["download", "save"], - styles: ["solid"], - label: "File Export" -}, { - name: "file-image", - search: ["document", "image", "jpg", "photo", "png"], - styles: ["solid", "regular"], - label: "Image File" -}, { - name: "file-import", - search: ["copy", "document", "send", "upload"], - styles: ["solid"], - label: "File Import" -}, { - name: "file-invoice", - search: ["account", "bill", "charge", "document", "payment", "receipt"], - styles: ["solid"], - label: "File Invoice" -}, { - name: "file-invoice-dollar", - search: ["$", "account", "bill", "charge", "document", "dollar-sign", "money", "payment", "receipt", "usd"], - styles: ["solid"], - label: "File Invoice with US Dollar" -}, { - name: "file-medical", - search: ["document", "health", "history", "prescription", "record"], - styles: ["solid"], - label: "Medical File" -}, { - name: "file-medical-alt", - search: ["document", "health", "history", "prescription", "record"], - styles: ["solid"], - label: "Alternate Medical File" -}, { - name: "file-pdf", - search: ["acrobat", "document", "preview", "save"], - styles: ["solid", "regular"], - label: "PDF File" -}, { - name: "file-powerpoint", - search: ["display", "document", "keynote", "presentation"], - styles: ["solid", "regular"], - label: "Powerpoint File" -}, { - name: "file-prescription", - search: ["document", "drugs", "medical", "medicine", "rx"], - styles: ["solid"], - label: "File Prescription" -}, { - name: "file-signature", - search: ["John Hancock", "contract", "document", "name"], - styles: ["solid"], - label: "File Signature" -}, { - name: "file-upload", - search: ["document", "import", "page", "save"], - styles: ["solid"], - label: "File Upload" -}, { - name: "file-video", - search: ["document", "m4v", "movie", "mp4", "play"], - styles: ["solid", "regular"], - label: "Video File" -}, { - name: "file-word", - search: ["document", "edit", "page", "text", "writing"], - styles: ["solid", "regular"], - label: "Word File" -}, { - name: "fill", - search: ["bucket", "color", "paint", "paint bucket"], - styles: ["solid"], - label: "Fill" -}, { - name: "fill-drip", - search: ["bucket", "color", "drop", "paint", "paint bucket", "spill"], - styles: ["solid"], - label: "Fill Drip" -}, { - name: "film", - search: ["cinema", "movie", "strip", "video"], - styles: ["solid"], - label: "Film" -}, { - name: "filter", - search: ["funnel", "options", "separate", "sort"], - styles: ["solid"], - label: "Filter" -}, { - name: "fingerprint", - search: ["human", "id", "identification", "lock", "smudge", "touch", "unique", "unlock"], - styles: ["solid"], - label: "Fingerprint" -}, { - name: "fire", - search: ["burn", "caliente", "flame", "heat", "hot", "popular"], - styles: ["solid"], - label: "fire" -}, { - name: "fire-alt", - search: ["burn", "caliente", "flame", "heat", "hot", "popular"], - styles: ["solid"], - label: "Alternate Fire" -}, { - name: "fire-extinguisher", - search: ["burn", "caliente", "fire fighter", "flame", "heat", "hot", "rescue"], - styles: ["solid"], - label: "fire-extinguisher" -}, { - name: "firefox", - search: ["browser"], - styles: ["brands"], - label: "Firefox" -}, { - name: "firefox-browser", - search: ["browser"], - styles: ["brands"], - label: "Firefox Browser" -}, { - name: "first-aid", - search: ["emergency", "emt", "health", "medical", "rescue"], - styles: ["solid"], - label: "First Aid" -}, { - name: "first-order", - search: [], - styles: ["brands"], - label: "First Order" -}, { - name: "first-order-alt", - search: [], - styles: ["brands"], - label: "Alternate First Order" + name: 'expand', + search: ['arrow', 'bigger', 'enlarge', 'resize'], + styles: ['solid'], + label: 'Expand' +}, { + name: 'expand-alt', + search: ['arrow', 'bigger', 'enlarge', 'resize'], + styles: ['solid'], + label: 'Alternate Expand' +}, { + name: 'expand-arrows-alt', + search: ['arrows-alt', 'bigger', 'enlarge', 'move', 'resize'], + styles: ['solid'], + label: 'Alternate Expand Arrows' +}, { + name: 'expeditedssl', + search: [], + styles: ['brands'], + label: 'ExpeditedSSL' +}, { + name: 'external-link-alt', + search: ['external-link', 'new', 'open', 'share'], + styles: ['solid'], + label: 'Alternate External Link' +}, { + name: 'external-link-square-alt', + search: ['external-link-square', 'new', 'open', 'share'], + styles: ['solid'], + label: 'Alternate External Link Square' +}, { + name: 'eye', + search: ['look', 'optic', 'see', 'seen', 'show', 'sight', 'views', 'visible'], + styles: ['solid', 'regular'], + label: 'Eye' +}, { + name: 'eye-dropper', + search: ['beaker', 'clone', 'color', 'copy', 'eyedropper', 'pipette'], + styles: ['solid'], + label: 'Eye Dropper' +}, { + name: 'eye-slash', + search: ['blind', 'hide', 'show', 'toggle', 'unseen', 'views', 'visible', 'visiblity'], + styles: ['solid', 'regular'], + label: 'Eye Slash' +}, { + name: 'facebook', + search: ['facebook-official', 'social network'], + styles: ['brands'], + label: 'Facebook' +}, { + name: 'facebook-f', + search: ['facebook'], + styles: ['brands'], + label: 'Facebook F' +}, { + name: 'facebook-messenger', + search: [], + styles: ['brands'], + label: 'Facebook Messenger' +}, { + name: 'facebook-square', + search: ['social network'], + styles: ['brands'], + label: 'Facebook Square' +}, { + name: 'fan', + search: ['ac', 'air conditioning', 'blade', 'blower', 'cool', 'hot'], + styles: ['solid'], + label: 'Fan' +}, { + name: 'fantasy-flight-games', + search: ['Dungeons & Dragons', 'd&d', 'dnd', 'fantasy', 'game', 'gaming', 'tabletop'], + styles: ['brands'], + label: 'Fantasy Flight-games' +}, { + name: 'fast-backward', + search: ['beginning', 'first', 'previous', 'rewind', 'start'], + styles: ['solid'], + label: 'fast-backward' +}, { + name: 'fast-forward', + search: ['end', 'last', 'next'], + styles: ['solid'], + label: 'fast-forward' +}, { + name: 'faucet', + search: ['covid-19', 'drip', 'house', 'hygiene', 'kitchen', 'sink', 'water'], + styles: ['solid'], + label: 'Faucet' +}, { + name: 'fax', + search: ['business', 'communicate', 'copy', 'facsimile', 'send'], + styles: ['solid'], + label: 'Fax' +}, { + name: 'feather', + search: ['bird', 'light', 'plucked', 'quill', 'write'], + styles: ['solid'], + label: 'Feather' +}, { + name: 'feather-alt', + search: ['bird', 'light', 'plucked', 'quill', 'write'], + styles: ['solid'], + label: 'Alternate Feather' +}, { + name: 'fedex', + search: ['Federal Express', 'package', 'shipping'], + styles: ['brands'], + label: 'FedEx' +}, { + name: 'fedora', + search: ['linux', 'operating system', 'os'], + styles: ['brands'], + label: 'Fedora' +}, { + name: 'female', + search: ['human', 'person', 'profile', 'user', 'woman'], + styles: ['solid'], + label: 'Female' +}, { + name: 'fighter-jet', + search: ['airplane', 'fast', 'fly', 'goose', 'maverick', 'plane', 'quick', 'top gun', 'transportation', 'travel'], + styles: ['solid'], + label: 'fighter-jet' +}, { + name: 'figma', + search: ['app', 'design', 'interface'], + styles: ['brands'], + label: 'Figma' +}, { + name: 'file', + search: ['document', 'new', 'page', 'pdf', 'resume'], + styles: ['solid', 'regular'], + label: 'File' +}, { + name: 'file-alt', + search: ['document', 'file-text', 'invoice', 'new', 'page', 'pdf'], + styles: ['solid', 'regular'], + label: 'Alternate File' +}, { + name: 'file-archive', + search: ['.zip', 'bundle', 'compress', 'compression', 'download', 'zip'], + styles: ['solid', 'regular'], + label: 'Archive File' +}, { + name: 'file-audio', + search: ['document', 'mp3', 'music', 'page', 'play', 'sound'], + styles: ['solid', 'regular'], + label: 'Audio File' +}, { + name: 'file-code', + search: ['css', 'development', 'document', 'html'], + styles: ['solid', 'regular'], + label: 'Code File' +}, { + name: 'file-contract', + search: ['agreement', 'binding', 'document', 'legal', 'signature'], + styles: ['solid'], + label: 'File Contract' +}, { + name: 'file-csv', + search: ['document', 'excel', 'numbers', 'spreadsheets', 'table'], + styles: ['solid'], + label: 'File CSV' +}, { + name: 'file-download', + search: ['document', 'export', 'save'], + styles: ['solid'], + label: 'File Download' +}, { + name: 'file-excel', + search: ['csv', 'document', 'numbers', 'spreadsheets', 'table'], + styles: ['solid', 'regular'], + label: 'Excel File' +}, { + name: 'file-export', + search: ['download', 'save'], + styles: ['solid'], + label: 'File Export' +}, { + name: 'file-image', + search: ['document', 'image', 'jpg', 'photo', 'png'], + styles: ['solid', 'regular'], + label: 'Image File' +}, { + name: 'file-import', + search: ['copy', 'document', 'send', 'upload'], + styles: ['solid'], + label: 'File Import' +}, { + name: 'file-invoice', + search: ['account', 'bill', 'charge', 'document', 'payment', 'receipt'], + styles: ['solid'], + label: 'File Invoice' +}, { + name: 'file-invoice-dollar', + search: ['$', 'account', 'bill', 'charge', 'document', 'dollar-sign', 'money', 'payment', 'receipt', 'usd'], + styles: ['solid'], + label: 'File Invoice with US Dollar' +}, { + name: 'file-medical', + search: ['document', 'health', 'history', 'prescription', 'record'], + styles: ['solid'], + label: 'Medical File' +}, { + name: 'file-medical-alt', + search: ['document', 'health', 'history', 'prescription', 'record'], + styles: ['solid'], + label: 'Alternate Medical File' +}, { + name: 'file-pdf', + search: ['acrobat', 'document', 'preview', 'save'], + styles: ['solid', 'regular'], + label: 'PDF File' +}, { + name: 'file-powerpoint', + search: ['display', 'document', 'keynote', 'presentation'], + styles: ['solid', 'regular'], + label: 'Powerpoint File' +}, { + name: 'file-prescription', + search: ['document', 'drugs', 'medical', 'medicine', 'rx'], + styles: ['solid'], + label: 'File Prescription' +}, { + name: 'file-signature', + search: ['John Hancock', 'contract', 'document', 'name'], + styles: ['solid'], + label: 'File Signature' +}, { + name: 'file-upload', + search: ['document', 'import', 'page', 'save'], + styles: ['solid'], + label: 'File Upload' +}, { + name: 'file-video', + search: ['document', 'm4v', 'movie', 'mp4', 'play'], + styles: ['solid', 'regular'], + label: 'Video File' +}, { + name: 'file-word', + search: ['document', 'edit', 'page', 'text', 'writing'], + styles: ['solid', 'regular'], + label: 'Word File' +}, { + name: 'fill', + search: ['bucket', 'color', 'paint', 'paint bucket'], + styles: ['solid'], + label: 'Fill' +}, { + name: 'fill-drip', + search: ['bucket', 'color', 'drop', 'paint', 'paint bucket', 'spill'], + styles: ['solid'], + label: 'Fill Drip' +}, { + name: 'film', + search: ['cinema', 'movie', 'strip', 'video'], + styles: ['solid'], + label: 'Film' +}, { + name: 'filter', + search: ['funnel', 'options', 'separate', 'sort'], + styles: ['solid'], + label: 'Filter' +}, { + name: 'fingerprint', + search: ['human', 'id', 'identification', 'lock', 'smudge', 'touch', 'unique', 'unlock'], + styles: ['solid'], + label: 'Fingerprint' +}, { + name: 'fire', + search: ['burn', 'caliente', 'flame', 'heat', 'hot', 'popular'], + styles: ['solid'], + label: 'fire' +}, { + name: 'fire-alt', + search: ['burn', 'caliente', 'flame', 'heat', 'hot', 'popular'], + styles: ['solid'], + label: 'Alternate Fire' +}, { + name: 'fire-extinguisher', + search: ['burn', 'caliente', 'fire fighter', 'flame', 'heat', 'hot', 'rescue'], + styles: ['solid'], + label: 'fire-extinguisher' +}, { + name: 'firefox', + search: ['browser'], + styles: ['brands'], + label: 'Firefox' +}, { + name: 'firefox-browser', + search: ['browser'], + styles: ['brands'], + label: 'Firefox Browser' +}, { + name: 'first-aid', + search: ['emergency', 'emt', 'health', 'medical', 'rescue'], + styles: ['solid'], + label: 'First Aid' +}, { + name: 'first-order', + search: [], + styles: ['brands'], + label: 'First Order' +}, { + name: 'first-order-alt', + search: [], + styles: ['brands'], + label: 'Alternate First Order' }, { - name: "firstdraft", + name: 'firstdraft', search: [], - styles: ["brands"], - label: "firstdraft" + styles: ['brands'], + label: 'firstdraft' }, { - name: "fish", - search: ["fauna", "gold", "seafood", "swimming"], - styles: ["solid"], - label: "Fish" + name: 'fish', + search: ['fauna', 'gold', 'seafood', 'swimming'], + styles: ['solid'], + label: 'Fish' }, { - name: "fist-raised", - search: ["Dungeons & Dragons", "d&d", "dnd", "fantasy", "hand", "ki", "monk", "resist", "strength", "unarmed combat"], - styles: ["solid"], - label: "Raised Fist" + name: 'fist-raised', + search: ['Dungeons & Dragons', 'd&d', 'dnd', 'fantasy', 'hand', 'ki', 'monk', 'resist', 'strength', 'unarmed combat'], + styles: ['solid'], + label: 'Raised Fist' }, { - name: "flag", - search: ["country", "notice", "notification", "notify", "pole", "report", "symbol"], - styles: ["solid", "regular"], - label: "flag" + name: 'flag', + search: ['country', 'notice', 'notification', 'notify', 'pole', 'report', 'symbol'], + styles: ['solid', 'regular'], + label: 'flag' }, { - name: "flag-checkered", - search: ["notice", "notification", "notify", "pole", "racing", "report", "symbol"], - styles: ["solid"], - label: "flag-checkered" + name: 'flag-checkered', + search: ['notice', 'notification', 'notify', 'pole', 'racing', 'report', 'symbol'], + styles: ['solid'], + label: 'flag-checkered' }, { - name: "flag-usa", - search: ["betsy ross", "country", "old glory", "stars", "stripes", "symbol"], - styles: ["solid"], - label: "United States of America Flag" + name: 'flag-usa', + search: ['betsy ross', 'country', 'old glory', 'stars', 'stripes', 'symbol'], + styles: ['solid'], + label: 'United States of America Flag' }, { - name: "flask", - search: ["beaker", "experimental", "labs", "science"], - styles: ["solid"], - label: "Flask" + name: 'flask', + search: ['beaker', 'experimental', 'labs', 'science'], + styles: ['solid'], + label: 'Flask' }, { - name: "flickr", + name: 'flickr', search: [], - styles: ["brands"], - label: "Flickr" + styles: ['brands'], + label: 'Flickr' }, { - name: "flipboard", + name: 'flipboard', search: [], - styles: ["brands"], - label: "Flipboard" + styles: ['brands'], + label: 'Flipboard' }, { - name: "flushed", - search: ["embarrassed", "emoticon", "face"], - styles: ["solid", "regular"], - label: "Flushed Face" + name: 'flushed', + search: ['embarrassed', 'emoticon', 'face'], + styles: ['solid', 'regular'], + label: 'Flushed Face' }, { - name: "fly", + name: 'fly', search: [], - styles: ["brands"], - label: "Fly" + styles: ['brands'], + label: 'Fly' }, { - name: "folder", - search: ["archive", "directory", "document", "file"], - styles: ["solid", "regular"], - label: "Folder" + name: 'folder', + search: ['archive', 'directory', 'document', 'file'], + styles: ['solid', 'regular'], + label: 'Folder' }, { - name: "folder-minus", - search: ["archive", "delete", "directory", "document", "file", "negative", "remove"], - styles: ["solid"], - label: "Folder Minus" + name: 'folder-minus', + search: ['archive', 'delete', 'directory', 'document', 'file', 'negative', 'remove'], + styles: ['solid'], + label: 'Folder Minus' }, { - name: "folder-open", - search: ["archive", "directory", "document", "empty", "file", "new"], - styles: ["solid", "regular"], - label: "Folder Open" + name: 'folder-open', + search: ['archive', 'directory', 'document', 'empty', 'file', 'new'], + styles: ['solid', 'regular'], + label: 'Folder Open' }, { - name: "folder-plus", - search: ["add", "archive", "create", "directory", "document", "file", "new", "positive"], - styles: ["solid"], - label: "Folder Plus" + name: 'folder-plus', + search: ['add', 'archive', 'create', 'directory', 'document', 'file', 'new', 'positive'], + styles: ['solid'], + label: 'Folder Plus' }, { - name: "font", - search: ["alphabet", "glyph", "text", "type", "typeface"], - styles: ["solid"], - label: "font" + name: 'font', + search: ['alphabet', 'glyph', 'text', 'type', 'typeface'], + styles: ['solid'], + label: 'font' }, { - name: "font-awesome", - search: ["meanpath"], - styles: ["brands"], - label: "Font Awesome" + name: 'font-awesome', + search: ['meanpath'], + styles: ['brands'], + label: 'Font Awesome' }, { - name: "font-awesome-alt", + name: 'font-awesome-alt', search: [], - styles: ["brands"], - label: "Alternate Font Awesome" + styles: ['brands'], + label: 'Alternate Font Awesome' }, { - name: "font-awesome-flag", + name: 'font-awesome-flag', search: [], - styles: ["brands"], - label: "Font Awesome Flag" + styles: ['brands'], + label: 'Font Awesome Flag' }, { - name: "fonticons", + name: 'fonticons', search: [], - styles: ["brands"], - label: "Fonticons" + styles: ['brands'], + label: 'Fonticons' }, { - name: "fonticons-fi", + name: 'fonticons-fi', search: [], - styles: ["brands"], - label: "Fonticons Fi" + styles: ['brands'], + label: 'Fonticons Fi' }, { - name: "football-ball", - search: ["ball", "fall", "nfl", "pigskin", "seasonal"], - styles: ["solid"], - label: "Football Ball" + name: 'football-ball', + search: ['ball', 'fall', 'nfl', 'pigskin', 'seasonal'], + styles: ['solid'], + label: 'Football Ball' }, { - name: "fort-awesome", - search: ["castle"], - styles: ["brands"], - label: "Fort Awesome" + name: 'fort-awesome', + search: ['castle'], + styles: ['brands'], + label: 'Fort Awesome' }, { - name: "fort-awesome-alt", - search: ["castle"], - styles: ["brands"], - label: "Alternate Fort Awesome" + name: 'fort-awesome-alt', + search: ['castle'], + styles: ['brands'], + label: 'Alternate Fort Awesome' }, { - name: "forumbee", + name: 'forumbee', search: [], - styles: ["brands"], - label: "Forumbee" + styles: ['brands'], + label: 'Forumbee' }, { - name: "forward", - search: ["forward", "next", "skip"], - styles: ["solid"], - label: "forward" + name: 'forward', + search: ['forward', 'next', 'skip'], + styles: ['solid'], + label: 'forward' }, { - name: "foursquare", + name: 'foursquare', search: [], - styles: ["brands"], - label: "Foursquare" + styles: ['brands'], + label: 'Foursquare' }, { - name: "free-code-camp", + name: 'free-code-camp', search: [], - styles: ["brands"], - label: "freeCodeCamp" + styles: ['brands'], + label: 'freeCodeCamp' }, { - name: "freebsd", + name: 'freebsd', search: [], - styles: ["brands"], - label: "FreeBSD" + styles: ['brands'], + label: 'FreeBSD' }, { - name: "frog", - search: ["amphibian", "bullfrog", "fauna", "hop", "kermit", "kiss", "prince", "ribbit", "toad", "wart"], - styles: ["solid"], - label: "Frog" + name: 'frog', + search: ['amphibian', 'bullfrog', 'fauna', 'hop', 'kermit', 'kiss', 'prince', 'ribbit', 'toad', 'wart'], + styles: ['solid'], + label: 'Frog' }, { - name: "frown", - search: ["disapprove", "emoticon", "face", "rating", "sad"], - styles: ["solid", "regular"], - label: "Frowning Face" + name: 'frown', + search: ['disapprove', 'emoticon', 'face', 'rating', 'sad'], + styles: ['solid', 'regular'], + label: 'Frowning Face' }, { - name: "frown-open", - search: ["disapprove", "emoticon", "face", "rating", "sad"], - styles: ["solid", "regular"], - label: "Frowning Face With Open Mouth" + name: 'frown-open', + search: ['disapprove', 'emoticon', 'face', 'rating', 'sad'], + styles: ['solid', 'regular'], + label: 'Frowning Face With Open Mouth' }, { - name: "fulcrum", + name: 'fulcrum', search: [], - styles: ["brands"], - label: "Fulcrum" + styles: ['brands'], + label: 'Fulcrum' }, { - name: "funnel-dollar", - search: ["filter", "money", "options", "separate", "sort"], - styles: ["solid"], - label: "Funnel Dollar" + name: 'funnel-dollar', + search: ['filter', 'money', 'options', 'separate', 'sort'], + styles: ['solid'], + label: 'Funnel Dollar' }, { - name: "futbol", - search: ["ball", "football", "mls", "soccer"], - styles: ["solid", "regular"], - label: "Futbol" + name: 'futbol', + search: ['ball', 'football', 'mls', 'soccer'], + styles: ['solid', 'regular'], + label: 'Futbol' }, { - name: "galactic-republic", - search: ["politics", "star wars"], - styles: ["brands"], - label: "Galactic Republic" + name: 'galactic-republic', + search: ['politics', 'star wars'], + styles: ['brands'], + label: 'Galactic Republic' }, { - name: "galactic-senate", - search: ["star wars"], - styles: ["brands"], - label: "Galactic Senate" + name: 'galactic-senate', + search: ['star wars'], + styles: ['brands'], + label: 'Galactic Senate' }, { - name: "gamepad", - search: ["arcade", "controller", "d-pad", "joystick", "video", "video game"], - styles: ["solid"], - label: "Gamepad" + name: 'gamepad', + search: ['arcade', 'controller', 'd-pad', 'joystick', 'video', 'video game'], + styles: ['solid'], + label: 'Gamepad' }, { - name: "gas-pump", - search: ["car", "fuel", "gasoline", "petrol"], - styles: ["solid"], - label: "Gas Pump" + name: 'gas-pump', + search: ['car', 'fuel', 'gasoline', 'petrol'], + styles: ['solid'], + label: 'Gas Pump' }, { - name: "gavel", - search: ["hammer", "judge", "law", "lawyer", "opinion"], - styles: ["solid"], - label: "Gavel" + name: 'gavel', + search: ['hammer', 'judge', 'law', 'lawyer', 'opinion'], + styles: ['solid'], + label: 'Gavel' }, { - name: "gem", - search: ["diamond", "jewelry", "sapphire", "stone", "treasure"], - styles: ["solid", "regular"], - label: "Gem" + name: 'gem', + search: ['diamond', 'jewelry', 'sapphire', 'stone', 'treasure'], + styles: ['solid', 'regular'], + label: 'Gem' }, { - name: "genderless", - search: ["androgynous", "asexual", "sexless"], - styles: ["solid"], - label: "Genderless" + name: 'genderless', + search: ['androgynous', 'asexual', 'sexless'], + styles: ['solid'], + label: 'Genderless' }, { - name: "get-pocket", + name: 'get-pocket', search: [], - styles: ["brands"], - label: "Get Pocket" + styles: ['brands'], + label: 'Get Pocket' }, { - name: "gg", + name: 'gg', search: [], - styles: ["brands"], - label: "GG Currency" + styles: ['brands'], + label: 'GG Currency' }, { - name: "gg-circle", + name: 'gg-circle', search: [], - styles: ["brands"], - label: "GG Currency Circle" + styles: ['brands'], + label: 'GG Currency Circle' }, { - name: "ghost", - search: ["apparition", "blinky", "clyde", "floating", "halloween", "holiday", "inky", "pinky", "spirit"], - styles: ["solid"], - label: "Ghost" + name: 'ghost', + search: ['apparition', 'blinky', 'clyde', 'floating', 'halloween', 'holiday', 'inky', 'pinky', 'spirit'], + styles: ['solid'], + label: 'Ghost' }, { - name: "gift", - search: ["christmas", "generosity", "giving", "holiday", "party", "present", "wrapped", "xmas"], - styles: ["solid"], - label: "gift" + name: 'gift', + search: ['christmas', 'generosity', 'giving', 'holiday', 'party', 'present', 'wrapped', 'xmas'], + styles: ['solid'], + label: 'gift' }, { - name: "gifts", - search: ["christmas", "generosity", "giving", "holiday", "party", "present", "wrapped", "xmas"], - styles: ["solid"], - label: "Gifts" + name: 'gifts', + search: ['christmas', 'generosity', 'giving', 'holiday', 'party', 'present', 'wrapped', 'xmas'], + styles: ['solid'], + label: 'Gifts' }, { - name: "git", + name: 'git', search: [], - styles: ["brands"], - label: "Git" + styles: ['brands'], + label: 'Git' }, { - name: "git-alt", + name: 'git-alt', search: [], - styles: ["brands"], - label: "Git Alt" + styles: ['brands'], + label: 'Git Alt' }, { - name: "git-square", + name: 'git-square', search: [], - styles: ["brands"], - label: "Git Square" + styles: ['brands'], + label: 'Git Square' }, { - name: "github", - search: ["octocat"], - styles: ["brands"], - label: "GitHub" + name: 'github', + search: ['octocat'], + styles: ['brands'], + label: 'GitHub' }, { - name: "github-alt", - search: ["octocat"], - styles: ["brands"], - label: "Alternate GitHub" + name: 'github-alt', + search: ['octocat'], + styles: ['brands'], + label: 'Alternate GitHub' }, { - name: "github-square", - search: ["octocat"], - styles: ["brands"], - label: "GitHub Square" + name: 'github-square', + search: ['octocat'], + styles: ['brands'], + label: 'GitHub Square' }, { - name: "gitkraken", + name: 'gitkraken', search: [], - styles: ["brands"], - label: "GitKraken" + styles: ['brands'], + label: 'GitKraken' }, { - name: "gitlab", - search: ["Axosoft"], - styles: ["brands"], - label: "GitLab" + name: 'gitlab', + search: ['Axosoft'], + styles: ['brands'], + label: 'GitLab' }, { - name: "gitter", + name: 'gitter', search: [], - styles: ["brands"], - label: "Gitter" + styles: ['brands'], + label: 'Gitter' }, { - name: "glass-cheers", - search: ["alcohol", "bar", "beverage", "celebration", "champagne", "clink", "drink", "holiday", "new year's eve", "party", "toast"], - styles: ["solid"], - label: "Glass Cheers" + name: 'glass-cheers', + search: ['alcohol', 'bar', 'beverage', 'celebration', 'champagne', 'clink', 'drink', 'holiday', 'new year\'s eve', 'party', 'toast'], + styles: ['solid'], + label: 'Glass Cheers' }, { - name: "glass-martini", - search: ["alcohol", "bar", "beverage", "drink", "liquor"], - styles: ["solid"], - label: "Martini Glass" + name: 'glass-martini', + search: ['alcohol', 'bar', 'beverage', 'drink', 'liquor'], + styles: ['solid'], + label: 'Martini Glass' }, { - name: "glass-martini-alt", - search: ["alcohol", "bar", "beverage", "drink", "liquor"], - styles: ["solid"], - label: "Alternate Glass Martini" + name: 'glass-martini-alt', + search: ['alcohol', 'bar', 'beverage', 'drink', 'liquor'], + styles: ['solid'], + label: 'Alternate Glass Martini' }, { - name: "glass-whiskey", - search: ["alcohol", "bar", "beverage", "bourbon", "drink", "liquor", "neat", "rye", "scotch", "whisky"], - styles: ["solid"], - label: "Glass Whiskey" + name: 'glass-whiskey', + search: ['alcohol', 'bar', 'beverage', 'bourbon', 'drink', 'liquor', 'neat', 'rye', 'scotch', 'whisky'], + styles: ['solid'], + label: 'Glass Whiskey' }, { - name: "glasses", - search: ["hipster", "nerd", "reading", "sight", "spectacles", "vision"], - styles: ["solid"], - label: "Glasses" + name: 'glasses', + search: ['hipster', 'nerd', 'reading', 'sight', 'spectacles', 'vision'], + styles: ['solid'], + label: 'Glasses' }, { - name: "glide", + name: 'glide', search: [], - styles: ["brands"], - label: "Glide" + styles: ['brands'], + label: 'Glide' }, { - name: "glide-g", + name: 'glide-g', search: [], - styles: ["brands"], - label: "Glide G" + styles: ['brands'], + label: 'Glide G' }, { - name: "globe", - search: ["all", "coordinates", "country", "earth", "global", "gps", "language", "localize", "location", "map", "online", "place", "planet", "translate", "travel", "world"], - styles: ["solid"], - label: "Globe" + name: 'globe', + search: ['all', 'coordinates', 'country', 'earth', 'global', 'gps', 'language', 'localize', 'location', 'map', 'online', 'place', 'planet', 'translate', 'travel', 'world'], + styles: ['solid'], + label: 'Globe' }, { - name: "globe-africa", - search: ["all", "country", "earth", "global", "gps", "language", "localize", "location", "map", "online", "place", "planet", "translate", "travel", "world"], - styles: ["solid"], - label: "Globe with Africa shown" + name: 'globe-africa', + search: ['all', 'country', 'earth', 'global', 'gps', 'language', 'localize', 'location', 'map', 'online', 'place', 'planet', 'translate', 'travel', 'world'], + styles: ['solid'], + label: 'Globe with Africa shown' }, { - name: "globe-americas", - search: ["all", "country", "earth", "global", "gps", "language", "localize", "location", "map", "online", "place", "planet", "translate", "travel", "world"], - styles: ["solid"], - label: "Globe with Americas shown" + name: 'globe-americas', + search: ['all', 'country', 'earth', 'global', 'gps', 'language', 'localize', 'location', 'map', 'online', 'place', 'planet', 'translate', 'travel', 'world'], + styles: ['solid'], + label: 'Globe with Americas shown' }, { - name: "globe-asia", - search: ["all", "country", "earth", "global", "gps", "language", "localize", "location", "map", "online", "place", "planet", "translate", "travel", "world"], - styles: ["solid"], - label: "Globe with Asia shown" + name: 'globe-asia', + search: ['all', 'country', 'earth', 'global', 'gps', 'language', 'localize', 'location', 'map', 'online', 'place', 'planet', 'translate', 'travel', 'world'], + styles: ['solid'], + label: 'Globe with Asia shown' }, { - name: "globe-europe", - search: ["all", "country", "earth", "global", "gps", "language", "localize", "location", "map", "online", "place", "planet", "translate", "travel", "world"], - styles: ["solid"], - label: "Globe with Europe shown" + name: 'globe-europe', + search: ['all', 'country', 'earth', 'global', 'gps', 'language', 'localize', 'location', 'map', 'online', 'place', 'planet', 'translate', 'travel', 'world'], + styles: ['solid'], + label: 'Globe with Europe shown' }, { - name: "gofore", + name: 'gofore', search: [], - styles: ["brands"], - label: "Gofore" + styles: ['brands'], + label: 'Gofore' }, { - name: "golf-ball", - search: ["caddy", "eagle", "putt", "tee"], - styles: ["solid"], - label: "Golf Ball" + name: 'golf-ball', + search: ['caddy', 'eagle', 'putt', 'tee'], + styles: ['solid'], + label: 'Golf Ball' }, { - name: "goodreads", + name: 'goodreads', search: [], - styles: ["brands"], - label: "Goodreads" + styles: ['brands'], + label: 'Goodreads' }, { - name: "goodreads-g", + name: 'goodreads-g', search: [], - styles: ["brands"], - label: "Goodreads G" + styles: ['brands'], + label: 'Goodreads G' }, { - name: "google", + name: 'google', search: [], - styles: ["brands"], - label: "Google Logo" + styles: ['brands'], + label: 'Google Logo' }, { - name: "google-drive", + name: 'google-drive', search: [], - styles: ["brands"], - label: "Google Drive" + styles: ['brands'], + label: 'Google Drive' }, { - name: "google-play", + name: 'google-play', search: [], - styles: ["brands"], - label: "Google Play" + styles: ['brands'], + label: 'Google Play' }, { - name: "google-plus", - search: ["google-plus-circle", "google-plus-official"], - styles: ["brands"], - label: "Google Plus" + name: 'google-plus', + search: ['google-plus-circle', 'google-plus-official'], + styles: ['brands'], + label: 'Google Plus' }, { - name: "google-plus-g", - search: ["google-plus", "social network"], - styles: ["brands"], - label: "Google Plus G" + name: 'google-plus-g', + search: ['google-plus', 'social network'], + styles: ['brands'], + label: 'Google Plus G' }, { - name: "google-plus-square", - search: ["social network"], - styles: ["brands"], - label: "Google Plus Square" + name: 'google-plus-square', + search: ['social network'], + styles: ['brands'], + label: 'Google Plus Square' }, { - name: "google-wallet", + name: 'google-wallet', search: [], - styles: ["brands"], - label: "Google Wallet" + styles: ['brands'], + label: 'Google Wallet' }, { - name: "gopuram", - search: ["building", "entrance", "hinduism", "temple", "tower"], - styles: ["solid"], - label: "Gopuram" + name: 'gopuram', + search: ['building', 'entrance', 'hinduism', 'temple', 'tower'], + styles: ['solid'], + label: 'Gopuram' }, { - name: "graduation-cap", - search: ["ceremony", "college", "graduate", "learning", "school", "student"], - styles: ["solid"], - label: "Graduation Cap" + name: 'graduation-cap', + search: ['ceremony', 'college', 'graduate', 'learning', 'school', 'student'], + styles: ['solid'], + label: 'Graduation Cap' }, { - name: "gratipay", - search: ["favorite", "heart", "like", "love"], - styles: ["brands"], - label: "Gratipay (Gittip)" + name: 'gratipay', + search: ['favorite', 'heart', 'like', 'love'], + styles: ['brands'], + label: 'Gratipay (Gittip)' }, { - name: "grav", - search: [], - styles: ["brands"], - label: "Grav" -}, { - name: "greater-than", - search: ["arithmetic", "compare", "math"], - styles: ["solid"], - label: "Greater Than" + name: 'grav', + search: [], + styles: ['brands'], + label: 'Grav' +}, { + name: 'greater-than', + search: ['arithmetic', 'compare', 'math'], + styles: ['solid'], + label: 'Greater Than' }, { - name: "greater-than-equal", - search: ["arithmetic", "compare", "math"], - styles: ["solid"], - label: "Greater Than Equal To" + name: 'greater-than-equal', + search: ['arithmetic', 'compare', 'math'], + styles: ['solid'], + label: 'Greater Than Equal To' }, { - name: "grimace", - search: ["cringe", "emoticon", "face", "teeth"], - styles: ["solid", "regular"], - label: "Grimacing Face" + name: 'grimace', + search: ['cringe', 'emoticon', 'face', 'teeth'], + styles: ['solid', 'regular'], + label: 'Grimacing Face' }, { - name: "grin", - search: ["emoticon", "face", "laugh", "smile"], - styles: ["solid", "regular"], - label: "Grinning Face" + name: 'grin', + search: ['emoticon', 'face', 'laugh', 'smile'], + styles: ['solid', 'regular'], + label: 'Grinning Face' }, { - name: "grin-alt", - search: ["emoticon", "face", "laugh", "smile"], - styles: ["solid", "regular"], - label: "Alternate Grinning Face" + name: 'grin-alt', + search: ['emoticon', 'face', 'laugh', 'smile'], + styles: ['solid', 'regular'], + label: 'Alternate Grinning Face' }, { - name: "grin-beam", - search: ["emoticon", "face", "laugh", "smile"], - styles: ["solid", "regular"], - label: "Grinning Face With Smiling Eyes" + name: 'grin-beam', + search: ['emoticon', 'face', 'laugh', 'smile'], + styles: ['solid', 'regular'], + label: 'Grinning Face With Smiling Eyes' }, { - name: "grin-beam-sweat", - search: ["embarass", "emoticon", "face", "smile"], - styles: ["solid", "regular"], - label: "Grinning Face With Sweat" + name: 'grin-beam-sweat', + search: ['embarass', 'emoticon', 'face', 'smile'], + styles: ['solid', 'regular'], + label: 'Grinning Face With Sweat' }, { - name: "grin-hearts", - search: ["emoticon", "face", "love", "smile"], - styles: ["solid", "regular"], - label: "Smiling Face With Heart-Eyes" + name: 'grin-hearts', + search: ['emoticon', 'face', 'love', 'smile'], + styles: ['solid', 'regular'], + label: 'Smiling Face With Heart-Eyes' }, { - name: "grin-squint", - search: ["emoticon", "face", "laugh", "smile"], - styles: ["solid", "regular"], - label: "Grinning Squinting Face" + name: 'grin-squint', + search: ['emoticon', 'face', 'laugh', 'smile'], + styles: ['solid', 'regular'], + label: 'Grinning Squinting Face' }, { - name: "grin-squint-tears", - search: ["emoticon", "face", "happy", "smile"], - styles: ["solid", "regular"], - label: "Rolling on the Floor Laughing" + name: 'grin-squint-tears', + search: ['emoticon', 'face', 'happy', 'smile'], + styles: ['solid', 'regular'], + label: 'Rolling on the Floor Laughing' }, { - name: "grin-stars", - search: ["emoticon", "face", "star-struck"], - styles: ["solid", "regular"], - label: "Star-Struck" + name: 'grin-stars', + search: ['emoticon', 'face', 'star-struck'], + styles: ['solid', 'regular'], + label: 'Star-Struck' }, { - name: "grin-tears", - search: ["LOL", "emoticon", "face"], - styles: ["solid", "regular"], - label: "Face With Tears of Joy" -}, { - name: "grin-tongue", - search: ["LOL", "emoticon", "face"], - styles: ["solid", "regular"], - label: "Face With Tongue" -}, { - name: "grin-tongue-squint", - search: ["LOL", "emoticon", "face"], - styles: ["solid", "regular"], - label: "Squinting Face With Tongue" -}, { - name: "grin-tongue-wink", - search: ["LOL", "emoticon", "face"], - styles: ["solid", "regular"], - label: "Winking Face With Tongue" -}, { - name: "grin-wink", - search: ["emoticon", "face", "flirt", "laugh", "smile"], - styles: ["solid", "regular"], - label: "Grinning Winking Face" -}, { - name: "grip-horizontal", - search: ["affordance", "drag", "drop", "grab", "handle"], - styles: ["solid"], - label: "Grip Horizontal" -}, { - name: "grip-lines", - search: ["affordance", "drag", "drop", "grab", "handle"], - styles: ["solid"], - label: "Grip Lines" -}, { - name: "grip-lines-vertical", - search: ["affordance", "drag", "drop", "grab", "handle"], - styles: ["solid"], - label: "Grip Lines Vertical" -}, { - name: "grip-vertical", - search: ["affordance", "drag", "drop", "grab", "handle"], - styles: ["solid"], - label: "Grip Vertical" -}, { - name: "gripfire", - search: [], - styles: ["brands"], - label: "Gripfire, Inc." -}, { - name: "grunt", - search: [], - styles: ["brands"], - label: "Grunt" -}, { - name: "guitar", - search: ["acoustic", "instrument", "music", "rock", "rock and roll", "song", "strings"], - styles: ["solid"], - label: "Guitar" -}, { - name: "gulp", - search: [], - styles: ["brands"], - label: "Gulp" -}, { - name: "h-square", - search: ["directions", "emergency", "hospital", "hotel", "map"], - styles: ["solid"], - label: "H Square" -}, { - name: "hacker-news", - search: [], - styles: ["brands"], - label: "Hacker News" -}, { - name: "hacker-news-square", - search: [], - styles: ["brands"], - label: "Hacker News Square" -}, { - name: "hackerrank", - search: [], - styles: ["brands"], - label: "Hackerrank" -}, { - name: "hamburger", - search: ["bacon", "beef", "burger", "burger king", "cheeseburger", "fast food", "grill", "ground beef", "mcdonalds", "sandwich"], - styles: ["solid"], - label: "Hamburger" -}, { - name: "hammer", - search: ["admin", "fix", "repair", "settings", "tool"], - styles: ["solid"], - label: "Hammer" -}, { - name: "hamsa", - search: ["amulet", "christianity", "islam", "jewish", "judaism", "muslim", "protection"], - styles: ["solid"], - label: "Hamsa" -}, { - name: "hand-holding", - search: ["carry", "lift"], - styles: ["solid"], - label: "Hand Holding" -}, { - name: "hand-holding-heart", - search: ["carry", "charity", "gift", "lift", "package"], - styles: ["solid"], - label: "Hand Holding Heart" -}, { - name: "hand-holding-medical", - search: ["care", "covid-19", "donate", "help"], - styles: ["solid"], - label: "Hand Holding Medical Cross" -}, { - name: "hand-holding-usd", - search: ["$", "carry", "dollar sign", "donation", "giving", "lift", "money", "price"], - styles: ["solid"], - label: "Hand Holding US Dollar" -}, { - name: "hand-holding-water", - search: ["carry", "covid-19", "drought", "grow", "lift"], - styles: ["solid"], - label: "Hand Holding Water" -}, { - name: "hand-lizard", - search: ["game", "roshambo"], - styles: ["solid", "regular"], - label: "Lizard (Hand)" -}, { - name: "hand-middle-finger", - search: ["flip the bird", "gesture", "hate", "rude"], - styles: ["solid"], - label: "Hand with Middle Finger Raised" -}, { - name: "hand-paper", - search: ["game", "halt", "roshambo", "stop"], - styles: ["solid", "regular"], - label: "Paper (Hand)" -}, { - name: "hand-peace", - search: ["rest", "truce"], - styles: ["solid", "regular"], - label: "Peace (Hand)" -}, { - name: "hand-point-down", - search: ["finger", "hand-o-down", "point"], - styles: ["solid", "regular"], - label: "Hand Pointing Down" -}, { - name: "hand-point-left", - search: ["back", "finger", "hand-o-left", "left", "point", "previous"], - styles: ["solid", "regular"], - label: "Hand Pointing Left" -}, { - name: "hand-point-right", - search: ["finger", "forward", "hand-o-right", "next", "point", "right"], - styles: ["solid", "regular"], - label: "Hand Pointing Right" -}, { - name: "hand-point-up", - search: ["finger", "hand-o-up", "point"], - styles: ["solid", "regular"], - label: "Hand Pointing Up" -}, { - name: "hand-pointer", - search: ["arrow", "cursor", "select"], - styles: ["solid", "regular"], - label: "Pointer (Hand)" -}, { - name: "hand-rock", - search: ["fist", "game", "roshambo"], - styles: ["solid", "regular"], - label: "Rock (Hand)" -}, { - name: "hand-scissors", - search: ["cut", "game", "roshambo"], - styles: ["solid", "regular"], - label: "Scissors (Hand)" -}, { - name: "hand-sparkles", - search: ["clean", "covid-19", "hygiene", "magic", "soap", "wash"], - styles: ["solid"], - label: "Hand Sparkles" -}, { - name: "hand-spock", - search: ["live long", "prosper", "salute", "star trek", "vulcan"], - styles: ["solid", "regular"], - label: "Spock (Hand)" -}, { - name: "hands", - search: ["carry", "hold", "lift"], - styles: ["solid"], - label: "Hands" -}, { - name: "hands-helping", - search: ["aid", "assistance", "handshake", "partnership", "volunteering"], - styles: ["solid"], - label: "Helping Hands" -}, { - name: "hands-wash", - search: ["covid-19", "hygiene", "soap", "wash"], - styles: ["solid"], - label: "Hands Wash" -}, { - name: "handshake", - search: ["agreement", "greeting", "meeting", "partnership"], - styles: ["solid", "regular"], - label: "Handshake" -}, { - name: "handshake-alt-slash", - search: ["broken", "covid-19", "social distance"], - styles: ["solid"], - label: "Handshake Alternate Slash" -}, { - name: "handshake-slash", - search: ["broken", "covid-19", "social distance"], - styles: ["solid"], - label: "Handshake Slash" -}, { - name: "hanukiah", - search: ["candle", "hanukkah", "jewish", "judaism", "light"], - styles: ["solid"], - label: "Hanukiah" -}, { - name: "hard-hat", - search: ["construction", "hardhat", "helmet", "safety"], - styles: ["solid"], - label: "Hard Hat" -}, { - name: "hashtag", - search: ["Twitter", "instagram", "pound", "social media", "tag"], - styles: ["solid"], - label: "Hashtag" -}, { - name: "hat-cowboy", - search: ["buckaroo", "horse", "jackeroo", "john b.", "old west", "pardner", "ranch", "rancher", "rodeo", "western", "wrangler"], - styles: ["solid"], - label: "Cowboy Hat" -}, { - name: "hat-cowboy-side", - search: ["buckaroo", "horse", "jackeroo", "john b.", "old west", "pardner", "ranch", "rancher", "rodeo", "western", "wrangler"], - styles: ["solid"], - label: "Cowboy Hat Side" -}, { - name: "hat-wizard", - search: ["Dungeons & Dragons", "accessory", "buckle", "clothing", "d&d", "dnd", "fantasy", "halloween", "head", "holiday", "mage", "magic", "pointy", "witch"], - styles: ["solid"], - label: "Wizard's Hat" -}, { - name: "hdd", - search: ["cpu", "hard drive", "harddrive", "machine", "save", "storage"], - styles: ["solid", "regular"], - label: "HDD" -}, { - name: "head-side-cough", - search: ["cough", "covid-19", "germs", "lungs", "respiratory", "sick"], - styles: ["solid"], - label: "Head Side Cough" -}, { - name: "head-side-cough-slash", - search: ["cough", "covid-19", "germs", "lungs", "respiratory", "sick"], - styles: ["solid"], - label: "Head Side-cough-slash" -}, { - name: "head-side-mask", - search: ["breath", "covid-19", "filter", "respirator", "virus"], - styles: ["solid"], - label: "Head Side Mask" -}, { - name: "head-side-virus", - search: ["cold", "covid-19", "flu", "sick"], - styles: ["solid"], - label: "Head Side Virus" -}, { - name: "heading", - search: ["format", "header", "text", "title"], - styles: ["solid"], - label: "heading" -}, { - name: "headphones", - search: ["audio", "listen", "music", "sound", "speaker"], - styles: ["solid"], - label: "headphones" -}, { - name: "headphones-alt", - search: ["audio", "listen", "music", "sound", "speaker"], - styles: ["solid"], - label: "Alternate Headphones" -}, { - name: "headset", - search: ["audio", "gamer", "gaming", "listen", "live chat", "microphone", "shot caller", "sound", "support", "telemarketer"], - styles: ["solid"], - label: "Headset" -}, { - name: "heart", - search: ["favorite", "like", "love", "relationship", "valentine"], - styles: ["solid", "regular"], - label: "Heart" -}, { - name: "heart-broken", - search: ["breakup", "crushed", "dislike", "dumped", "grief", "love", "lovesick", "relationship", "sad"], - styles: ["solid"], - label: "Heart Broken" -}, { - name: "heartbeat", - search: ["ekg", "electrocardiogram", "health", "lifeline", "vital signs"], - styles: ["solid"], - label: "Heartbeat" -}, { - name: "helicopter", - search: ["airwolf", "apache", "chopper", "flight", "fly", "travel"], - styles: ["solid"], - label: "Helicopter" -}, { - name: "highlighter", - search: ["edit", "marker", "sharpie", "update", "write"], - styles: ["solid"], - label: "Highlighter" -}, { - name: "hiking", - search: ["activity", "backpack", "fall", "fitness", "outdoors", "person", "seasonal", "walking"], - styles: ["solid"], - label: "Hiking" -}, { - name: "hippo", - search: ["animal", "fauna", "hippopotamus", "hungry", "mammal"], - styles: ["solid"], - label: "Hippo" -}, { - name: "hips", - search: [], - styles: ["brands"], - label: "Hips" -}, { - name: "hire-a-helper", - search: [], - styles: ["brands"], - label: "HireAHelper" -}, { - name: "history", - search: ["Rewind", "clock", "reverse", "time", "time machine"], - styles: ["solid"], - label: "History" -}, { - name: "hockey-puck", - search: ["ice", "nhl", "sport"], - styles: ["solid"], - label: "Hockey Puck" -}, { - name: "holly-berry", - search: ["catwoman", "christmas", "decoration", "flora", "halle", "holiday", "ororo munroe", "plant", "storm", "xmas"], - styles: ["solid"], - label: "Holly Berry" -}, { - name: "home", - search: ["abode", "building", "house", "main"], - styles: ["solid"], - label: "home" -}, { - name: "hooli", - search: [], - styles: ["brands"], - label: "Hooli" -}, { - name: "hornbill", - search: [], - styles: ["brands"], - label: "Hornbill" -}, { - name: "horse", - search: ["equus", "fauna", "mammmal", "mare", "neigh", "pony"], - styles: ["solid"], - label: "Horse" -}, { - name: "horse-head", - search: ["equus", "fauna", "mammmal", "mare", "neigh", "pony"], - styles: ["solid"], - label: "Horse Head" -}, { - name: "hospital", - search: ["building", "covid-19", "emergency room", "medical center"], - styles: ["solid", "regular"], - label: "hospital" -}, { - name: "hospital-alt", - search: ["building", "covid-19", "emergency room", "medical center"], - styles: ["solid"], - label: "Alternate Hospital" -}, { - name: "hospital-symbol", - search: ["clinic", "covid-19", "emergency", "map"], - styles: ["solid"], - label: "Hospital Symbol" -}, { - name: "hospital-user", - search: ["covid-19", "doctor", "network", "patient", "primary care"], - styles: ["solid"], - label: "Hospital with User" -}, { - name: "hot-tub", - search: ["bath", "jacuzzi", "massage", "sauna", "spa"], - styles: ["solid"], - label: "Hot Tub" -}, { - name: "hotdog", - search: ["bun", "chili", "frankfurt", "frankfurter", "kosher", "polish", "sandwich", "sausage", "vienna", "weiner"], - styles: ["solid"], - label: "Hot Dog" + name: 'grin-tears', + search: ['LOL', 'emoticon', 'face'], + styles: ['solid', 'regular'], + label: 'Face With Tears of Joy' +}, { + name: 'grin-tongue', + search: ['LOL', 'emoticon', 'face'], + styles: ['solid', 'regular'], + label: 'Face With Tongue' +}, { + name: 'grin-tongue-squint', + search: ['LOL', 'emoticon', 'face'], + styles: ['solid', 'regular'], + label: 'Squinting Face With Tongue' +}, { + name: 'grin-tongue-wink', + search: ['LOL', 'emoticon', 'face'], + styles: ['solid', 'regular'], + label: 'Winking Face With Tongue' +}, { + name: 'grin-wink', + search: ['emoticon', 'face', 'flirt', 'laugh', 'smile'], + styles: ['solid', 'regular'], + label: 'Grinning Winking Face' +}, { + name: 'grip-horizontal', + search: ['affordance', 'drag', 'drop', 'grab', 'handle'], + styles: ['solid'], + label: 'Grip Horizontal' +}, { + name: 'grip-lines', + search: ['affordance', 'drag', 'drop', 'grab', 'handle'], + styles: ['solid'], + label: 'Grip Lines' +}, { + name: 'grip-lines-vertical', + search: ['affordance', 'drag', 'drop', 'grab', 'handle'], + styles: ['solid'], + label: 'Grip Lines Vertical' +}, { + name: 'grip-vertical', + search: ['affordance', 'drag', 'drop', 'grab', 'handle'], + styles: ['solid'], + label: 'Grip Vertical' +}, { + name: 'gripfire', + search: [], + styles: ['brands'], + label: 'Gripfire, Inc.' +}, { + name: 'grunt', + search: [], + styles: ['brands'], + label: 'Grunt' +}, { + name: 'guitar', + search: ['acoustic', 'instrument', 'music', 'rock', 'rock and roll', 'song', 'strings'], + styles: ['solid'], + label: 'Guitar' +}, { + name: 'gulp', + search: [], + styles: ['brands'], + label: 'Gulp' +}, { + name: 'h-square', + search: ['directions', 'emergency', 'hospital', 'hotel', 'map'], + styles: ['solid'], + label: 'H Square' +}, { + name: 'hacker-news', + search: [], + styles: ['brands'], + label: 'Hacker News' +}, { + name: 'hacker-news-square', + search: [], + styles: ['brands'], + label: 'Hacker News Square' +}, { + name: 'hackerrank', + search: [], + styles: ['brands'], + label: 'Hackerrank' +}, { + name: 'hamburger', + search: ['bacon', 'beef', 'burger', 'burger king', 'cheeseburger', 'fast food', 'grill', 'ground beef', 'mcdonalds', 'sandwich'], + styles: ['solid'], + label: 'Hamburger' +}, { + name: 'hammer', + search: ['admin', 'fix', 'repair', 'settings', 'tool'], + styles: ['solid'], + label: 'Hammer' +}, { + name: 'hamsa', + search: ['amulet', 'christianity', 'islam', 'jewish', 'judaism', 'muslim', 'protection'], + styles: ['solid'], + label: 'Hamsa' +}, { + name: 'hand-holding', + search: ['carry', 'lift'], + styles: ['solid'], + label: 'Hand Holding' +}, { + name: 'hand-holding-heart', + search: ['carry', 'charity', 'gift', 'lift', 'package'], + styles: ['solid'], + label: 'Hand Holding Heart' +}, { + name: 'hand-holding-medical', + search: ['care', 'covid-19', 'donate', 'help'], + styles: ['solid'], + label: 'Hand Holding Medical Cross' +}, { + name: 'hand-holding-usd', + search: ['$', 'carry', 'dollar sign', 'donation', 'giving', 'lift', 'money', 'price'], + styles: ['solid'], + label: 'Hand Holding US Dollar' +}, { + name: 'hand-holding-water', + search: ['carry', 'covid-19', 'drought', 'grow', 'lift'], + styles: ['solid'], + label: 'Hand Holding Water' +}, { + name: 'hand-lizard', + search: ['game', 'roshambo'], + styles: ['solid', 'regular'], + label: 'Lizard (Hand)' +}, { + name: 'hand-middle-finger', + search: ['flip the bird', 'gesture', 'hate', 'rude'], + styles: ['solid'], + label: 'Hand with Middle Finger Raised' +}, { + name: 'hand-paper', + search: ['game', 'halt', 'roshambo', 'stop'], + styles: ['solid', 'regular'], + label: 'Paper (Hand)' +}, { + name: 'hand-peace', + search: ['rest', 'truce'], + styles: ['solid', 'regular'], + label: 'Peace (Hand)' +}, { + name: 'hand-point-down', + search: ['finger', 'hand-o-down', 'point'], + styles: ['solid', 'regular'], + label: 'Hand Pointing Down' +}, { + name: 'hand-point-left', + search: ['back', 'finger', 'hand-o-left', 'left', 'point', 'previous'], + styles: ['solid', 'regular'], + label: 'Hand Pointing Left' +}, { + name: 'hand-point-right', + search: ['finger', 'forward', 'hand-o-right', 'next', 'point', 'right'], + styles: ['solid', 'regular'], + label: 'Hand Pointing Right' +}, { + name: 'hand-point-up', + search: ['finger', 'hand-o-up', 'point'], + styles: ['solid', 'regular'], + label: 'Hand Pointing Up' +}, { + name: 'hand-pointer', + search: ['arrow', 'cursor', 'select'], + styles: ['solid', 'regular'], + label: 'Pointer (Hand)' +}, { + name: 'hand-rock', + search: ['fist', 'game', 'roshambo'], + styles: ['solid', 'regular'], + label: 'Rock (Hand)' +}, { + name: 'hand-scissors', + search: ['cut', 'game', 'roshambo'], + styles: ['solid', 'regular'], + label: 'Scissors (Hand)' +}, { + name: 'hand-sparkles', + search: ['clean', 'covid-19', 'hygiene', 'magic', 'soap', 'wash'], + styles: ['solid'], + label: 'Hand Sparkles' +}, { + name: 'hand-spock', + search: ['live long', 'prosper', 'salute', 'star trek', 'vulcan'], + styles: ['solid', 'regular'], + label: 'Spock (Hand)' +}, { + name: 'hands', + search: ['carry', 'hold', 'lift'], + styles: ['solid'], + label: 'Hands' +}, { + name: 'hands-helping', + search: ['aid', 'assistance', 'handshake', 'partnership', 'volunteering'], + styles: ['solid'], + label: 'Helping Hands' +}, { + name: 'hands-wash', + search: ['covid-19', 'hygiene', 'soap', 'wash'], + styles: ['solid'], + label: 'Hands Wash' +}, { + name: 'handshake', + search: ['agreement', 'greeting', 'meeting', 'partnership'], + styles: ['solid', 'regular'], + label: 'Handshake' +}, { + name: 'handshake-alt-slash', + search: ['broken', 'covid-19', 'social distance'], + styles: ['solid'], + label: 'Handshake Alternate Slash' +}, { + name: 'handshake-slash', + search: ['broken', 'covid-19', 'social distance'], + styles: ['solid'], + label: 'Handshake Slash' +}, { + name: 'hanukiah', + search: ['candle', 'hanukkah', 'jewish', 'judaism', 'light'], + styles: ['solid'], + label: 'Hanukiah' +}, { + name: 'hard-hat', + search: ['construction', 'hardhat', 'helmet', 'safety'], + styles: ['solid'], + label: 'Hard Hat' +}, { + name: 'hashtag', + search: ['Twitter', 'instagram', 'pound', 'social media', 'tag'], + styles: ['solid'], + label: 'Hashtag' +}, { + name: 'hat-cowboy', + search: ['buckaroo', 'horse', 'jackeroo', 'john b.', 'old west', 'pardner', 'ranch', 'rancher', 'rodeo', 'western', 'wrangler'], + styles: ['solid'], + label: 'Cowboy Hat' +}, { + name: 'hat-cowboy-side', + search: ['buckaroo', 'horse', 'jackeroo', 'john b.', 'old west', 'pardner', 'ranch', 'rancher', 'rodeo', 'western', 'wrangler'], + styles: ['solid'], + label: 'Cowboy Hat Side' +}, { + name: 'hat-wizard', + search: ['Dungeons & Dragons', 'accessory', 'buckle', 'clothing', 'd&d', 'dnd', 'fantasy', 'halloween', 'head', 'holiday', 'mage', 'magic', 'pointy', 'witch'], + styles: ['solid'], + label: 'Wizard\'s Hat' +}, { + name: 'hdd', + search: ['cpu', 'hard drive', 'harddrive', 'machine', 'save', 'storage'], + styles: ['solid', 'regular'], + label: 'HDD' +}, { + name: 'head-side-cough', + search: ['cough', 'covid-19', 'germs', 'lungs', 'respiratory', 'sick'], + styles: ['solid'], + label: 'Head Side Cough' +}, { + name: 'head-side-cough-slash', + search: ['cough', 'covid-19', 'germs', 'lungs', 'respiratory', 'sick'], + styles: ['solid'], + label: 'Head Side-cough-slash' +}, { + name: 'head-side-mask', + search: ['breath', 'covid-19', 'filter', 'respirator', 'virus'], + styles: ['solid'], + label: 'Head Side Mask' +}, { + name: 'head-side-virus', + search: ['cold', 'covid-19', 'flu', 'sick'], + styles: ['solid'], + label: 'Head Side Virus' +}, { + name: 'heading', + search: ['format', 'header', 'text', 'title'], + styles: ['solid'], + label: 'heading' +}, { + name: 'headphones', + search: ['audio', 'listen', 'music', 'sound', 'speaker'], + styles: ['solid'], + label: 'headphones' +}, { + name: 'headphones-alt', + search: ['audio', 'listen', 'music', 'sound', 'speaker'], + styles: ['solid'], + label: 'Alternate Headphones' +}, { + name: 'headset', + search: ['audio', 'gamer', 'gaming', 'listen', 'live chat', 'microphone', 'shot caller', 'sound', 'support', 'telemarketer'], + styles: ['solid'], + label: 'Headset' +}, { + name: 'heart', + search: ['favorite', 'like', 'love', 'relationship', 'valentine'], + styles: ['solid', 'regular'], + label: 'Heart' +}, { + name: 'heart-broken', + search: ['breakup', 'crushed', 'dislike', 'dumped', 'grief', 'love', 'lovesick', 'relationship', 'sad'], + styles: ['solid'], + label: 'Heart Broken' +}, { + name: 'heartbeat', + search: ['ekg', 'electrocardiogram', 'health', 'lifeline', 'vital signs'], + styles: ['solid'], + label: 'Heartbeat' +}, { + name: 'helicopter', + search: ['airwolf', 'apache', 'chopper', 'flight', 'fly', 'travel'], + styles: ['solid'], + label: 'Helicopter' +}, { + name: 'highlighter', + search: ['edit', 'marker', 'sharpie', 'update', 'write'], + styles: ['solid'], + label: 'Highlighter' +}, { + name: 'hiking', + search: ['activity', 'backpack', 'fall', 'fitness', 'outdoors', 'person', 'seasonal', 'walking'], + styles: ['solid'], + label: 'Hiking' +}, { + name: 'hippo', + search: ['animal', 'fauna', 'hippopotamus', 'hungry', 'mammal'], + styles: ['solid'], + label: 'Hippo' +}, { + name: 'hips', + search: [], + styles: ['brands'], + label: 'Hips' +}, { + name: 'hire-a-helper', + search: [], + styles: ['brands'], + label: 'HireAHelper' +}, { + name: 'history', + search: ['Rewind', 'clock', 'reverse', 'time', 'time machine'], + styles: ['solid'], + label: 'History' +}, { + name: 'hockey-puck', + search: ['ice', 'nhl', 'sport'], + styles: ['solid'], + label: 'Hockey Puck' +}, { + name: 'holly-berry', + search: ['catwoman', 'christmas', 'decoration', 'flora', 'halle', 'holiday', 'ororo munroe', 'plant', 'storm', 'xmas'], + styles: ['solid'], + label: 'Holly Berry' +}, { + name: 'home', + search: ['abode', 'building', 'house', 'main'], + styles: ['solid'], + label: 'home' +}, { + name: 'hooli', + search: [], + styles: ['brands'], + label: 'Hooli' +}, { + name: 'hornbill', + search: [], + styles: ['brands'], + label: 'Hornbill' +}, { + name: 'horse', + search: ['equus', 'fauna', 'mammmal', 'mare', 'neigh', 'pony'], + styles: ['solid'], + label: 'Horse' +}, { + name: 'horse-head', + search: ['equus', 'fauna', 'mammmal', 'mare', 'neigh', 'pony'], + styles: ['solid'], + label: 'Horse Head' +}, { + name: 'hospital', + search: ['building', 'covid-19', 'emergency room', 'medical center'], + styles: ['solid', 'regular'], + label: 'hospital' +}, { + name: 'hospital-alt', + search: ['building', 'covid-19', 'emergency room', 'medical center'], + styles: ['solid'], + label: 'Alternate Hospital' +}, { + name: 'hospital-symbol', + search: ['clinic', 'covid-19', 'emergency', 'map'], + styles: ['solid'], + label: 'Hospital Symbol' +}, { + name: 'hospital-user', + search: ['covid-19', 'doctor', 'network', 'patient', 'primary care'], + styles: ['solid'], + label: 'Hospital with User' +}, { + name: 'hot-tub', + search: ['bath', 'jacuzzi', 'massage', 'sauna', 'spa'], + styles: ['solid'], + label: 'Hot Tub' +}, { + name: 'hotdog', + search: ['bun', 'chili', 'frankfurt', 'frankfurter', 'kosher', 'polish', 'sandwich', 'sausage', 'vienna', 'weiner'], + styles: ['solid'], + label: 'Hot Dog' }, { - name: "hotel", - search: ["building", "inn", "lodging", "motel", "resort", "travel"], - styles: ["solid"], - label: "Hotel" + name: 'hotel', + search: ['building', 'inn', 'lodging', 'motel', 'resort', 'travel'], + styles: ['solid'], + label: 'Hotel' }, { - name: "hotjar", - search: [], - styles: ["brands"], - label: "Hotjar" + name: 'hotjar', + search: [], + styles: ['brands'], + label: 'Hotjar' }, { - name: "hourglass", - search: ["hour", "minute", "sand", "stopwatch", "time"], - styles: ["solid", "regular"], - label: "Hourglass" + name: 'hourglass', + search: ['hour', 'minute', 'sand', 'stopwatch', 'time'], + styles: ['solid', 'regular'], + label: 'Hourglass' }, { - name: "hourglass-end", - search: ["hour", "minute", "sand", "stopwatch", "time"], - styles: ["solid"], - label: "Hourglass End" + name: 'hourglass-end', + search: ['hour', 'minute', 'sand', 'stopwatch', 'time'], + styles: ['solid'], + label: 'Hourglass End' }, { - name: "hourglass-half", - search: ["hour", "minute", "sand", "stopwatch", "time"], - styles: ["solid"], - label: "Hourglass Half" + name: 'hourglass-half', + search: ['hour', 'minute', 'sand', 'stopwatch', 'time'], + styles: ['solid'], + label: 'Hourglass Half' }, { - name: "hourglass-start", - search: ["hour", "minute", "sand", "stopwatch", "time"], - styles: ["solid"], - label: "Hourglass Start" -}, { - name: "house-damage", - search: ["building", "devastation", "disaster", "home", "insurance"], - styles: ["solid"], - label: "Damaged House" -}, { - name: "house-user", - search: ["covid-19", "home", "isolation", "quarantine"], - styles: ["solid"], - label: "House User" -}, { - name: "houzz", - search: [], - styles: ["brands"], - label: "Houzz" -}, { - name: "hryvnia", - search: ["currency", "money", "ukraine", "ukrainian"], - styles: ["solid"], - label: "Hryvnia" -}, { - name: "html5", - search: [], - styles: ["brands"], - label: "HTML 5 Logo" -}, { - name: "hubspot", - search: [], - styles: ["brands"], - label: "HubSpot" -}, { - name: "i-cursor", - search: ["editing", "i-beam", "type", "writing"], - styles: ["solid"], - label: "I Beam Cursor" -}, { - name: "ice-cream", - search: ["chocolate", "cone", "dessert", "frozen", "scoop", "sorbet", "vanilla", "yogurt"], - styles: ["solid"], - label: "Ice Cream" -}, { - name: "icicles", - search: ["cold", "frozen", "hanging", "ice", "seasonal", "sharp"], - styles: ["solid"], - label: "Icicles" -}, { - name: "icons", - search: ["bolt", "emoji", "heart", "image", "music", "photo", "symbols"], - styles: ["solid"], - label: "Icons" + name: 'hourglass-start', + search: ['hour', 'minute', 'sand', 'stopwatch', 'time'], + styles: ['solid'], + label: 'Hourglass Start' +}, { + name: 'house-damage', + search: ['building', 'devastation', 'disaster', 'home', 'insurance'], + styles: ['solid'], + label: 'Damaged House' +}, { + name: 'house-user', + search: ['covid-19', 'home', 'isolation', 'quarantine'], + styles: ['solid'], + label: 'House User' +}, { + name: 'houzz', + search: [], + styles: ['brands'], + label: 'Houzz' +}, { + name: 'hryvnia', + search: ['currency', 'money', 'ukraine', 'ukrainian'], + styles: ['solid'], + label: 'Hryvnia' +}, { + name: 'html5', + search: [], + styles: ['brands'], + label: 'HTML 5 Logo' +}, { + name: 'hubspot', + search: [], + styles: ['brands'], + label: 'HubSpot' +}, { + name: 'i-cursor', + search: ['editing', 'i-beam', 'type', 'writing'], + styles: ['solid'], + label: 'I Beam Cursor' +}, { + name: 'ice-cream', + search: ['chocolate', 'cone', 'dessert', 'frozen', 'scoop', 'sorbet', 'vanilla', 'yogurt'], + styles: ['solid'], + label: 'Ice Cream' +}, { + name: 'icicles', + search: ['cold', 'frozen', 'hanging', 'ice', 'seasonal', 'sharp'], + styles: ['solid'], + label: 'Icicles' +}, { + name: 'icons', + search: ['bolt', 'emoji', 'heart', 'image', 'music', 'photo', 'symbols'], + styles: ['solid'], + label: 'Icons' }, { - name: "id-badge", - search: ["address", "contact", "identification", "license", "profile"], - styles: ["solid", "regular"], - label: "Identification Badge" + name: 'id-badge', + search: ['address', 'contact', 'identification', 'license', 'profile'], + styles: ['solid', 'regular'], + label: 'Identification Badge' }, { - name: "id-card", - search: ["contact", "demographics", "document", "identification", "issued", "profile"], - styles: ["solid", "regular"], - label: "Identification Card" + name: 'id-card', + search: ['contact', 'demographics', 'document', 'identification', 'issued', 'profile'], + styles: ['solid', 'regular'], + label: 'Identification Card' }, { - name: "id-card-alt", - search: ["contact", "demographics", "document", "identification", "issued", "profile"], - styles: ["solid"], - label: "Alternate Identification Card" + name: 'id-card-alt', + search: ['contact', 'demographics', 'document', 'identification', 'issued', 'profile'], + styles: ['solid'], + label: 'Alternate Identification Card' }, { - name: "ideal", + name: 'ideal', search: [], - styles: ["brands"], - label: "iDeal" + styles: ['brands'], + label: 'iDeal' }, { - name: "igloo", - search: ["dome", "dwelling", "eskimo", "home", "house", "ice", "snow"], - styles: ["solid"], - label: "Igloo" + name: 'igloo', + search: ['dome', 'dwelling', 'eskimo', 'home', 'house', 'ice', 'snow'], + styles: ['solid'], + label: 'Igloo' }, { - name: "image", - search: ["album", "landscape", "photo", "picture"], - styles: ["solid", "regular"], - label: "Image" + name: 'image', + search: ['album', 'landscape', 'photo', 'picture'], + styles: ['solid', 'regular'], + label: 'Image' }, { - name: "images", - search: ["album", "landscape", "photo", "picture"], - styles: ["solid", "regular"], - label: "Images" + name: 'images', + search: ['album', 'landscape', 'photo', 'picture'], + styles: ['solid', 'regular'], + label: 'Images' }, { - name: "imdb", + name: 'imdb', search: [], - styles: ["brands"], - label: "IMDB" + styles: ['brands'], + label: 'IMDB' }, { - name: "inbox", - search: ["archive", "desk", "email", "mail", "message"], - styles: ["solid"], - label: "inbox" + name: 'inbox', + search: ['archive', 'desk', 'email', 'mail', 'message'], + styles: ['solid'], + label: 'inbox' }, { - name: "indent", - search: ["align", "justify", "paragraph", "tab"], - styles: ["solid"], - label: "Indent" + name: 'indent', + search: ['align', 'justify', 'paragraph', 'tab'], + styles: ['solid'], + label: 'Indent' }, { - name: "industry", - search: ["building", "factory", "industrial", "manufacturing", "mill", "warehouse"], - styles: ["solid"], - label: "Industry" + name: 'industry', + search: ['building', 'factory', 'industrial', 'manufacturing', 'mill', 'warehouse'], + styles: ['solid'], + label: 'Industry' }, { - name: "infinity", - search: ["eternity", "forever", "math"], - styles: ["solid"], - label: "Infinity" + name: 'infinity', + search: ['eternity', 'forever', 'math'], + styles: ['solid'], + label: 'Infinity' }, { - name: "info", - search: ["details", "help", "information", "more", "support"], - styles: ["solid"], - label: "Info" + name: 'info', + search: ['details', 'help', 'information', 'more', 'support'], + styles: ['solid'], + label: 'Info' }, { - name: "info-circle", - search: ["details", "help", "information", "more", "support"], - styles: ["solid"], - label: "Info Circle" + name: 'info-circle', + search: ['details', 'help', 'information', 'more', 'support'], + styles: ['solid'], + label: 'Info Circle' }, { - name: "instagram", + name: 'instagram', search: [], - styles: ["brands"], - label: "Instagram" + styles: ['brands'], + label: 'Instagram' }, { - name: "instagram-square", + name: 'instagram-square', search: [], - styles: ["brands"], - label: "Instagram Square" + styles: ['brands'], + label: 'Instagram Square' }, { - name: "intercom", - search: ["app", "customer", "messenger"], - styles: ["brands"], - label: "Intercom" + name: 'intercom', + search: ['app', 'customer', 'messenger'], + styles: ['brands'], + label: 'Intercom' }, { - name: "internet-explorer", - search: ["browser", "ie"], - styles: ["brands"], - label: "Internet-explorer" + name: 'internet-explorer', + search: ['browser', 'ie'], + styles: ['brands'], + label: 'Internet-explorer' }, { - name: "invision", - search: ["app", "design", "interface"], - styles: ["brands"], - label: "InVision" + name: 'invision', + search: ['app', 'design', 'interface'], + styles: ['brands'], + label: 'InVision' }, { - name: "ioxhost", + name: 'ioxhost', search: [], - styles: ["brands"], - label: "ioxhost" + styles: ['brands'], + label: 'ioxhost' }, { - name: "italic", - search: ["edit", "emphasis", "font", "format", "text", "type"], - styles: ["solid"], - label: "italic" + name: 'italic', + search: ['edit', 'emphasis', 'font', 'format', 'text', 'type'], + styles: ['solid'], + label: 'italic' }, { - name: "itch-io", + name: 'itch-io', search: [], - styles: ["brands"], - label: "itch.io" + styles: ['brands'], + label: 'itch.io' }, { - name: "itunes", + name: 'itunes', search: [], - styles: ["brands"], - label: "iTunes" + styles: ['brands'], + label: 'iTunes' }, { - name: "itunes-note", + name: 'itunes-note', search: [], - styles: ["brands"], - label: "Itunes Note" + styles: ['brands'], + label: 'Itunes Note' }, { - name: "java", + name: 'java', search: [], - styles: ["brands"], - label: "Java" + styles: ['brands'], + label: 'Java' }, { - name: "jedi", - search: ["crest", "force", "sith", "skywalker", "star wars", "yoda"], - styles: ["solid"], - label: "Jedi" + name: 'jedi', + search: ['crest', 'force', 'sith', 'skywalker', 'star wars', 'yoda'], + styles: ['solid'], + label: 'Jedi' }, { - name: "jedi-order", - search: ["star wars"], - styles: ["brands"], - label: "Jedi Order" + name: 'jedi-order', + search: ['star wars'], + styles: ['brands'], + label: 'Jedi Order' }, { - name: "jenkins", + name: 'jenkins', search: [], - styles: ["brands"], - label: "Jenkis" + styles: ['brands'], + label: 'Jenkis' }, { - name: "jira", - search: ["atlassian"], - styles: ["brands"], - label: "Jira" + name: 'jira', + search: ['atlassian'], + styles: ['brands'], + label: 'Jira' }, { - name: "joget", + name: 'joget', search: [], - styles: ["brands"], - label: "Joget" + styles: ['brands'], + label: 'Joget' }, { - name: "joint", - search: ["blunt", "cannabis", "doobie", "drugs", "marijuana", "roach", "smoke", "smoking", "spliff"], - styles: ["solid"], - label: "Joint" + name: 'joint', + search: ['blunt', 'cannabis', 'doobie', 'drugs', 'marijuana', 'roach', 'smoke', 'smoking', 'spliff'], + styles: ['solid'], + label: 'Joint' }, { - name: "joomla", + name: 'joomla', search: [], - styles: ["brands"], - label: "Joomla Logo" + styles: ['brands'], + label: 'Joomla Logo' }, { - name: "journal-whills", - search: ["book", "force", "jedi", "sith", "star wars", "yoda"], - styles: ["solid"], - label: "Journal of the Whills" + name: 'journal-whills', + search: ['book', 'force', 'jedi', 'sith', 'star wars', 'yoda'], + styles: ['solid'], + label: 'Journal of the Whills' }, { - name: "js", + name: 'js', search: [], - styles: ["brands"], - label: "JavaScript (JS)" + styles: ['brands'], + label: 'JavaScript (JS)' }, { - name: "js-square", + name: 'js-square', search: [], - styles: ["brands"], - label: "JavaScript (JS) Square" + styles: ['brands'], + label: 'JavaScript (JS) Square' }, { - name: "jsfiddle", + name: 'jsfiddle', search: [], - styles: ["brands"], - label: "jsFiddle" + styles: ['brands'], + label: 'jsFiddle' }, { - name: "kaaba", - search: ["building", "cube", "islam", "muslim"], - styles: ["solid"], - label: "Kaaba" + name: 'kaaba', + search: ['building', 'cube', 'islam', 'muslim'], + styles: ['solid'], + label: 'Kaaba' }, { - name: "kaggle", + name: 'kaggle', search: [], - styles: ["brands"], - label: "Kaggle" + styles: ['brands'], + label: 'Kaggle' }, { - name: "key", - search: ["lock", "password", "private", "secret", "unlock"], - styles: ["solid"], - label: "key" + name: 'key', + search: ['lock', 'password', 'private', 'secret', 'unlock'], + styles: ['solid'], + label: 'key' }, { - name: "keybase", + name: 'keybase', search: [], - styles: ["brands"], - label: "Keybase" + styles: ['brands'], + label: 'Keybase' }, { - name: "keyboard", - search: ["accessory", "edit", "input", "text", "type", "write"], - styles: ["solid", "regular"], - label: "Keyboard" + name: 'keyboard', + search: ['accessory', 'edit', 'input', 'text', 'type', 'write'], + styles: ['solid', 'regular'], + label: 'Keyboard' }, { - name: "keycdn", + name: 'keycdn', search: [], - styles: ["brands"], - label: "KeyCDN" + styles: ['brands'], + label: 'KeyCDN' }, { - name: "khanda", - search: ["chakkar", "sikh", "sikhism", "sword"], - styles: ["solid"], - label: "Khanda" + name: 'khanda', + search: ['chakkar', 'sikh', 'sikhism', 'sword'], + styles: ['solid'], + label: 'Khanda' }, { - name: "kickstarter", + name: 'kickstarter', search: [], - styles: ["brands"], - label: "Kickstarter" + styles: ['brands'], + label: 'Kickstarter' }, { - name: "kickstarter-k", + name: 'kickstarter-k', search: [], - styles: ["brands"], - label: "Kickstarter K" + styles: ['brands'], + label: 'Kickstarter K' }, { - name: "kiss", - search: ["beso", "emoticon", "face", "love", "smooch"], - styles: ["solid", "regular"], - label: "Kissing Face" + name: 'kiss', + search: ['beso', 'emoticon', 'face', 'love', 'smooch'], + styles: ['solid', 'regular'], + label: 'Kissing Face' }, { - name: "kiss-beam", - search: ["beso", "emoticon", "face", "love", "smooch"], - styles: ["solid", "regular"], - label: "Kissing Face With Smiling Eyes" + name: 'kiss-beam', + search: ['beso', 'emoticon', 'face', 'love', 'smooch'], + styles: ['solid', 'regular'], + label: 'Kissing Face With Smiling Eyes' }, { - name: "kiss-wink-heart", - search: ["beso", "emoticon", "face", "love", "smooch"], - styles: ["solid", "regular"], - label: "Face Blowing a Kiss" + name: 'kiss-wink-heart', + search: ['beso', 'emoticon', 'face', 'love', 'smooch'], + styles: ['solid', 'regular'], + label: 'Face Blowing a Kiss' }, { - name: "kiwi-bird", - search: ["bird", "fauna", "new zealand"], - styles: ["solid"], - label: "Kiwi Bird" + name: 'kiwi-bird', + search: ['bird', 'fauna', 'new zealand'], + styles: ['solid'], + label: 'Kiwi Bird' }, { - name: "korvue", + name: 'korvue', search: [], - styles: ["brands"], - label: "KORVUE" + styles: ['brands'], + label: 'KORVUE' }, { - name: "landmark", - search: ["building", "historic", "memorable", "monument", "politics"], - styles: ["solid"], - label: "Landmark" + name: 'landmark', + search: ['building', 'historic', 'memorable', 'monument', 'politics'], + styles: ['solid'], + label: 'Landmark' }, { - name: "language", - search: ["dialect", "idiom", "localize", "speech", "translate", "vernacular"], - styles: ["solid"], - label: "Language" + name: 'language', + search: ['dialect', 'idiom', 'localize', 'speech', 'translate', 'vernacular'], + styles: ['solid'], + label: 'Language' }, { - name: "laptop", - search: ["computer", "cpu", "dell", "demo", "device", "mac", "macbook", "machine", "pc"], - styles: ["solid"], - label: "Laptop" + name: 'laptop', + search: ['computer', 'cpu', 'dell', 'demo', 'device', 'mac', 'macbook', 'machine', 'pc'], + styles: ['solid'], + label: 'Laptop' }, { - name: "laptop-code", - search: ["computer", "cpu", "dell", "demo", "develop", "device", "mac", "macbook", "machine", "pc"], - styles: ["solid"], - label: "Laptop Code" + name: 'laptop-code', + search: ['computer', 'cpu', 'dell', 'demo', 'develop', 'device', 'mac', 'macbook', 'machine', 'pc'], + styles: ['solid'], + label: 'Laptop Code' }, { - name: "laptop-house", - search: ["computer", "covid-19", "device", "office", "remote", "work from home"], - styles: ["solid"], - label: "Laptop House" + name: 'laptop-house', + search: ['computer', 'covid-19', 'device', 'office', 'remote', 'work from home'], + styles: ['solid'], + label: 'Laptop House' }, { - name: "laptop-medical", - search: ["computer", "device", "ehr", "electronic health records", "history"], - styles: ["solid"], - label: "Laptop Medical" + name: 'laptop-medical', + search: ['computer', 'device', 'ehr', 'electronic health records', 'history'], + styles: ['solid'], + label: 'Laptop Medical' }, { - name: "laravel", + name: 'laravel', search: [], - styles: ["brands"], - label: "Laravel" + styles: ['brands'], + label: 'Laravel' }, { - name: "lastfm", + name: 'lastfm', search: [], - styles: ["brands"], - label: "last.fm" + styles: ['brands'], + label: 'last.fm' }, { - name: "lastfm-square", + name: 'lastfm-square', search: [], - styles: ["brands"], - label: "last.fm Square" + styles: ['brands'], + label: 'last.fm Square' }, { - name: "laugh", - search: ["LOL", "emoticon", "face", "laugh", "smile"], - styles: ["solid", "regular"], - label: "Grinning Face With Big Eyes" + name: 'laugh', + search: ['LOL', 'emoticon', 'face', 'laugh', 'smile'], + styles: ['solid', 'regular'], + label: 'Grinning Face With Big Eyes' }, { - name: "laugh-beam", - search: ["LOL", "emoticon", "face", "happy", "smile"], - styles: ["solid", "regular"], - label: "Laugh Face with Beaming Eyes" + name: 'laugh-beam', + search: ['LOL', 'emoticon', 'face', 'happy', 'smile'], + styles: ['solid', 'regular'], + label: 'Laugh Face with Beaming Eyes' }, { - name: "laugh-squint", - search: ["LOL", "emoticon", "face", "happy", "smile"], - styles: ["solid", "regular"], - label: "Laughing Squinting Face" + name: 'laugh-squint', + search: ['LOL', 'emoticon', 'face', 'happy', 'smile'], + styles: ['solid', 'regular'], + label: 'Laughing Squinting Face' }, { - name: "laugh-wink", - search: ["LOL", "emoticon", "face", "happy", "smile"], - styles: ["solid", "regular"], - label: "Laughing Winking Face" + name: 'laugh-wink', + search: ['LOL', 'emoticon', 'face', 'happy', 'smile'], + styles: ['solid', 'regular'], + label: 'Laughing Winking Face' }, { - name: "layer-group", - search: ["arrange", "develop", "layers", "map", "stack"], - styles: ["solid"], - label: "Layer Group" + name: 'layer-group', + search: ['arrange', 'develop', 'layers', 'map', 'stack'], + styles: ['solid'], + label: 'Layer Group' }, { - name: "leaf", - search: ["eco", "flora", "nature", "plant", "vegan"], - styles: ["solid"], - label: "leaf" -}, { - name: "leanpub", - search: [], - styles: ["brands"], - label: "Leanpub" -}, { - name: "lemon", - search: ["citrus", "lemonade", "lime", "tart"], - styles: ["solid", "regular"], - label: "Lemon" -}, { - name: "less", - search: [], - styles: ["brands"], - label: "Less" -}, { - name: "less-than", - search: ["arithmetic", "compare", "math"], - styles: ["solid"], - label: "Less Than" -}, { - name: "less-than-equal", - search: ["arithmetic", "compare", "math"], - styles: ["solid"], - label: "Less Than Equal To" -}, { - name: "level-down-alt", - search: ["arrow", "level-down"], - styles: ["solid"], - label: "Alternate Level Down" -}, { - name: "level-up-alt", - search: ["arrow", "level-up"], - styles: ["solid"], - label: "Alternate Level Up" -}, { - name: "life-ring", - search: ["coast guard", "help", "overboard", "save", "support"], - styles: ["solid", "regular"], - label: "Life Ring" -}, { - name: "lightbulb", - search: ["energy", "idea", "inspiration", "light"], - styles: ["solid", "regular"], - label: "Lightbulb" -}, { - name: "line", - search: [], - styles: ["brands"], - label: "Line" -}, { - name: "link", - search: ["attach", "attachment", "chain", "connect"], - styles: ["solid"], - label: "Link" -}, { - name: "linkedin", - search: ["linkedin-square"], - styles: ["brands"], - label: "LinkedIn" -}, { - name: "linkedin-in", - search: ["linkedin"], - styles: ["brands"], - label: "LinkedIn In" -}, { - name: "linode", - search: [], - styles: ["brands"], - label: "Linode" -}, { - name: "linux", - search: ["tux"], - styles: ["brands"], - label: "Linux" -}, { - name: "lira-sign", - search: ["currency", "money", "try", "turkish"], - styles: ["solid"], - label: "Turkish Lira Sign" -}, { - name: "list", - search: ["checklist", "completed", "done", "finished", "ol", "todo", "ul"], - styles: ["solid"], - label: "List" -}, { - name: "list-alt", - search: ["checklist", "completed", "done", "finished", "ol", "todo", "ul"], - styles: ["solid", "regular"], - label: "Alternate List" -}, { - name: "list-ol", - search: ["checklist", "completed", "done", "finished", "numbers", "ol", "todo", "ul"], - styles: ["solid"], - label: "list-ol" -}, { - name: "list-ul", - search: ["checklist", "completed", "done", "finished", "ol", "todo", "ul"], - styles: ["solid"], - label: "list-ul" -}, { - name: "location-arrow", - search: ["address", "compass", "coordinate", "direction", "gps", "map", "navigation", "place"], - styles: ["solid"], - label: "location-arrow" -}, { - name: "lock", - search: ["admin", "lock", "open", "password", "private", "protect", "security"], - styles: ["solid"], - label: "lock" -}, { - name: "lock-open", - search: ["admin", "lock", "open", "password", "private", "protect", "security"], - styles: ["solid"], - label: "Lock Open" -}, { - name: "long-arrow-alt-down", - search: ["download", "long-arrow-down"], - styles: ["solid"], - label: "Alternate Long Arrow Down" -}, { - name: "long-arrow-alt-left", - search: ["back", "long-arrow-left", "previous"], - styles: ["solid"], - label: "Alternate Long Arrow Left" -}, { - name: "long-arrow-alt-right", - search: ["forward", "long-arrow-right", "next"], - styles: ["solid"], - label: "Alternate Long Arrow Right" -}, { - name: "long-arrow-alt-up", - search: ["long-arrow-up", "upload"], - styles: ["solid"], - label: "Alternate Long Arrow Up" -}, { - name: "low-vision", - search: ["blind", "eye", "sight"], - styles: ["solid"], - label: "Low Vision" -}, { - name: "luggage-cart", - search: ["bag", "baggage", "suitcase", "travel"], - styles: ["solid"], - label: "Luggage Cart" -}, { - name: "lungs", - search: ["air", "breath", "covid-19", "organ", "respiratory"], - styles: ["solid"], - label: "Lungs" -}, { - name: "lungs-virus", - search: ["breath", "covid-19", "respiratory", "sick"], - styles: ["solid"], - label: "Lungs Virus" -}, { - name: "lyft", - search: [], - styles: ["brands"], - label: "lyft" + name: 'leaf', + search: ['eco', 'flora', 'nature', 'plant', 'vegan'], + styles: ['solid'], + label: 'leaf' +}, { + name: 'leanpub', + search: [], + styles: ['brands'], + label: 'Leanpub' +}, { + name: 'lemon', + search: ['citrus', 'lemonade', 'lime', 'tart'], + styles: ['solid', 'regular'], + label: 'Lemon' +}, { + name: 'less', + search: [], + styles: ['brands'], + label: 'Less' +}, { + name: 'less-than', + search: ['arithmetic', 'compare', 'math'], + styles: ['solid'], + label: 'Less Than' +}, { + name: 'less-than-equal', + search: ['arithmetic', 'compare', 'math'], + styles: ['solid'], + label: 'Less Than Equal To' +}, { + name: 'level-down-alt', + search: ['arrow', 'level-down'], + styles: ['solid'], + label: 'Alternate Level Down' +}, { + name: 'level-up-alt', + search: ['arrow', 'level-up'], + styles: ['solid'], + label: 'Alternate Level Up' +}, { + name: 'life-ring', + search: ['coast guard', 'help', 'overboard', 'save', 'support'], + styles: ['solid', 'regular'], + label: 'Life Ring' +}, { + name: 'lightbulb', + search: ['energy', 'idea', 'inspiration', 'light'], + styles: ['solid', 'regular'], + label: 'Lightbulb' +}, { + name: 'line', + search: [], + styles: ['brands'], + label: 'Line' +}, { + name: 'link', + search: ['attach', 'attachment', 'chain', 'connect'], + styles: ['solid'], + label: 'Link' +}, { + name: 'linkedin', + search: ['linkedin-square'], + styles: ['brands'], + label: 'LinkedIn' +}, { + name: 'linkedin-in', + search: ['linkedin'], + styles: ['brands'], + label: 'LinkedIn In' +}, { + name: 'linode', + search: [], + styles: ['brands'], + label: 'Linode' +}, { + name: 'linux', + search: ['tux'], + styles: ['brands'], + label: 'Linux' +}, { + name: 'lira-sign', + search: ['currency', 'money', 'try', 'turkish'], + styles: ['solid'], + label: 'Turkish Lira Sign' +}, { + name: 'list', + search: ['checklist', 'completed', 'done', 'finished', 'ol', 'todo', 'ul'], + styles: ['solid'], + label: 'List' +}, { + name: 'list-alt', + search: ['checklist', 'completed', 'done', 'finished', 'ol', 'todo', 'ul'], + styles: ['solid', 'regular'], + label: 'Alternate List' +}, { + name: 'list-ol', + search: ['checklist', 'completed', 'done', 'finished', 'numbers', 'ol', 'todo', 'ul'], + styles: ['solid'], + label: 'list-ol' +}, { + name: 'list-ul', + search: ['checklist', 'completed', 'done', 'finished', 'ol', 'todo', 'ul'], + styles: ['solid'], + label: 'list-ul' +}, { + name: 'location-arrow', + search: ['address', 'compass', 'coordinate', 'direction', 'gps', 'map', 'navigation', 'place'], + styles: ['solid'], + label: 'location-arrow' +}, { + name: 'lock', + search: ['admin', 'lock', 'open', 'password', 'private', 'protect', 'security'], + styles: ['solid'], + label: 'lock' +}, { + name: 'lock-open', + search: ['admin', 'lock', 'open', 'password', 'private', 'protect', 'security'], + styles: ['solid'], + label: 'Lock Open' +}, { + name: 'long-arrow-alt-down', + search: ['download', 'long-arrow-down'], + styles: ['solid'], + label: 'Alternate Long Arrow Down' +}, { + name: 'long-arrow-alt-left', + search: ['back', 'long-arrow-left', 'previous'], + styles: ['solid'], + label: 'Alternate Long Arrow Left' +}, { + name: 'long-arrow-alt-right', + search: ['forward', 'long-arrow-right', 'next'], + styles: ['solid'], + label: 'Alternate Long Arrow Right' +}, { + name: 'long-arrow-alt-up', + search: ['long-arrow-up', 'upload'], + styles: ['solid'], + label: 'Alternate Long Arrow Up' +}, { + name: 'low-vision', + search: ['blind', 'eye', 'sight'], + styles: ['solid'], + label: 'Low Vision' +}, { + name: 'luggage-cart', + search: ['bag', 'baggage', 'suitcase', 'travel'], + styles: ['solid'], + label: 'Luggage Cart' +}, { + name: 'lungs', + search: ['air', 'breath', 'covid-19', 'organ', 'respiratory'], + styles: ['solid'], + label: 'Lungs' +}, { + name: 'lungs-virus', + search: ['breath', 'covid-19', 'respiratory', 'sick'], + styles: ['solid'], + label: 'Lungs Virus' +}, { + name: 'lyft', + search: [], + styles: ['brands'], + label: 'lyft' }, { - name: "magento", + name: 'magento', search: [], - styles: ["brands"], - label: "Magento" + styles: ['brands'], + label: 'Magento' }, { - name: "magic", - search: ["autocomplete", "automatic", "mage", "magic", "spell", "wand", "witch", "wizard"], - styles: ["solid"], - label: "magic" + name: 'magic', + search: ['autocomplete', 'automatic', 'mage', 'magic', 'spell', 'wand', 'witch', 'wizard'], + styles: ['solid'], + label: 'magic' }, { - name: "magnet", - search: ["Attract", "lodestone", "tool"], - styles: ["solid"], - label: "magnet" + name: 'magnet', + search: ['Attract', 'lodestone', 'tool'], + styles: ['solid'], + label: 'magnet' }, { - name: "mail-bulk", - search: ["archive", "envelope", "letter", "post office", "postal", "postcard", "send", "stamp", "usps"], - styles: ["solid"], - label: "Mail Bulk" + name: 'mail-bulk', + search: ['archive', 'envelope', 'letter', 'post office', 'postal', 'postcard', 'send', 'stamp', 'usps'], + styles: ['solid'], + label: 'Mail Bulk' }, { - name: "mailchimp", + name: 'mailchimp', search: [], - styles: ["brands"], - label: "Mailchimp" + styles: ['brands'], + label: 'Mailchimp' }, { - name: "male", - search: ["human", "man", "person", "profile", "user"], - styles: ["solid"], - label: "Male" + name: 'male', + search: ['human', 'man', 'person', 'profile', 'user'], + styles: ['solid'], + label: 'Male' }, { - name: "mandalorian", + name: 'mandalorian', search: [], - styles: ["brands"], - label: "Mandalorian" + styles: ['brands'], + label: 'Mandalorian' }, { - name: "map", - search: ["address", "coordinates", "destination", "gps", "localize", "location", "map", "navigation", "paper", "pin", "place", "point of interest", "position", "route", "travel"], - styles: ["solid", "regular"], - label: "Map" + name: 'map', + search: ['address', 'coordinates', 'destination', 'gps', 'localize', 'location', 'map', 'navigation', 'paper', 'pin', 'place', 'point of interest', 'position', 'route', 'travel'], + styles: ['solid', 'regular'], + label: 'Map' }, { - name: "map-marked", - search: ["address", "coordinates", "destination", "gps", "localize", "location", "map", "navigation", "paper", "pin", "place", "point of interest", "position", "route", "travel"], - styles: ["solid"], - label: "Map Marked" + name: 'map-marked', + search: ['address', 'coordinates', 'destination', 'gps', 'localize', 'location', 'map', 'navigation', 'paper', 'pin', 'place', 'point of interest', 'position', 'route', 'travel'], + styles: ['solid'], + label: 'Map Marked' }, { - name: "map-marked-alt", - search: ["address", "coordinates", "destination", "gps", "localize", "location", "map", "navigation", "paper", "pin", "place", "point of interest", "position", "route", "travel"], - styles: ["solid"], - label: "Alternate Map Marked" + name: 'map-marked-alt', + search: ['address', 'coordinates', 'destination', 'gps', 'localize', 'location', 'map', 'navigation', 'paper', 'pin', 'place', 'point of interest', 'position', 'route', 'travel'], + styles: ['solid'], + label: 'Alternate Map Marked' }, { - name: "map-marker", - search: ["address", "coordinates", "destination", "gps", "localize", "location", "map", "navigation", "paper", "pin", "place", "point of interest", "position", "route", "travel"], - styles: ["solid"], - label: "map-marker" + name: 'map-marker', + search: ['address', 'coordinates', 'destination', 'gps', 'localize', 'location', 'map', 'navigation', 'paper', 'pin', 'place', 'point of interest', 'position', 'route', 'travel'], + styles: ['solid'], + label: 'map-marker' }, { - name: "map-marker-alt", - search: ["address", "coordinates", "destination", "gps", "localize", "location", "map", "navigation", "paper", "pin", "place", "point of interest", "position", "route", "travel"], - styles: ["solid"], - label: "Alternate Map Marker" + name: 'map-marker-alt', + search: ['address', 'coordinates', 'destination', 'gps', 'localize', 'location', 'map', 'navigation', 'paper', 'pin', 'place', 'point of interest', 'position', 'route', 'travel'], + styles: ['solid'], + label: 'Alternate Map Marker' }, { - name: "map-pin", - search: ["address", "agree", "coordinates", "destination", "gps", "localize", "location", "map", "marker", "navigation", "pin", "place", "position", "travel"], - styles: ["solid"], - label: "Map Pin" + name: 'map-pin', + search: ['address', 'agree', 'coordinates', 'destination', 'gps', 'localize', 'location', 'map', 'marker', 'navigation', 'pin', 'place', 'position', 'travel'], + styles: ['solid'], + label: 'Map Pin' }, { - name: "map-signs", - search: ["directions", "directory", "map", "signage", "wayfinding"], - styles: ["solid"], - label: "Map Signs" + name: 'map-signs', + search: ['directions', 'directory', 'map', 'signage', 'wayfinding'], + styles: ['solid'], + label: 'Map Signs' }, { - name: "markdown", + name: 'markdown', search: [], - styles: ["brands"], - label: "Markdown" + styles: ['brands'], + label: 'Markdown' }, { - name: "marker", - search: ["design", "edit", "sharpie", "update", "write"], - styles: ["solid"], - label: "Marker" + name: 'marker', + search: ['design', 'edit', 'sharpie', 'update', 'write'], + styles: ['solid'], + label: 'Marker' }, { - name: "mars", - search: ["male"], - styles: ["solid"], - label: "Mars" + name: 'mars', + search: ['male'], + styles: ['solid'], + label: 'Mars' }, { - name: "mars-double", + name: 'mars-double', search: [], - styles: ["solid"], - label: "Mars Double" + styles: ['solid'], + label: 'Mars Double' }, { - name: "mars-stroke", + name: 'mars-stroke', search: [], - styles: ["solid"], - label: "Mars Stroke" + styles: ['solid'], + label: 'Mars Stroke' }, { - name: "mars-stroke-h", + name: 'mars-stroke-h', search: [], - styles: ["solid"], - label: "Mars Stroke Horizontal" + styles: ['solid'], + label: 'Mars Stroke Horizontal' }, { - name: "mars-stroke-v", + name: 'mars-stroke-v', search: [], - styles: ["solid"], - label: "Mars Stroke Vertical" + styles: ['solid'], + label: 'Mars Stroke Vertical' }, { - name: "mask", - search: ["carnivale", "costume", "disguise", "halloween", "secret", "super hero"], - styles: ["solid"], - label: "Mask" + name: 'mask', + search: ['carnivale', 'costume', 'disguise', 'halloween', 'secret', 'super hero'], + styles: ['solid'], + label: 'Mask' }, { - name: "mastodon", + name: 'mastodon', search: [], - styles: ["brands"], - label: "Mastodon" + styles: ['brands'], + label: 'Mastodon' }, { - name: "maxcdn", + name: 'maxcdn', search: [], - styles: ["brands"], - label: "MaxCDN" + styles: ['brands'], + label: 'MaxCDN' }, { - name: "mdb", + name: 'mdb', search: [], - styles: ["brands"], - label: "Material Design for Bootstrap" + styles: ['brands'], + label: 'Material Design for Bootstrap' }, { - name: "medal", - search: ["award", "ribbon", "star", "trophy"], - styles: ["solid"], - label: "Medal" + name: 'medal', + search: ['award', 'ribbon', 'star', 'trophy'], + styles: ['solid'], + label: 'Medal' }, { - name: "medapps", + name: 'medapps', search: [], - styles: ["brands"], - label: "MedApps" + styles: ['brands'], + label: 'MedApps' }, { - name: "medium", + name: 'medium', search: [], - styles: ["brands"], - label: "Medium" + styles: ['brands'], + label: 'Medium' }, { - name: "medium-m", + name: 'medium-m', search: [], - styles: ["brands"], - label: "Medium M" + styles: ['brands'], + label: 'Medium M' }, { - name: "medkit", - search: ["first aid", "firstaid", "health", "help", "support"], - styles: ["solid"], - label: "medkit" + name: 'medkit', + search: ['first aid', 'firstaid', 'health', 'help', 'support'], + styles: ['solid'], + label: 'medkit' }, { - name: "medrt", + name: 'medrt', search: [], - styles: ["brands"], - label: "MRT" + styles: ['brands'], + label: 'MRT' }, { - name: "meetup", + name: 'meetup', search: [], - styles: ["brands"], - label: "Meetup" + styles: ['brands'], + label: 'Meetup' }, { - name: "megaport", + name: 'megaport', search: [], - styles: ["brands"], - label: "Megaport" + styles: ['brands'], + label: 'Megaport' }, { - name: "meh", - search: ["emoticon", "face", "neutral", "rating"], - styles: ["solid", "regular"], - label: "Neutral Face" + name: 'meh', + search: ['emoticon', 'face', 'neutral', 'rating'], + styles: ['solid', 'regular'], + label: 'Neutral Face' }, { - name: "meh-blank", - search: ["emoticon", "face", "neutral", "rating"], - styles: ["solid", "regular"], - label: "Face Without Mouth" + name: 'meh-blank', + search: ['emoticon', 'face', 'neutral', 'rating'], + styles: ['solid', 'regular'], + label: 'Face Without Mouth' }, { - name: "meh-rolling-eyes", - search: ["emoticon", "face", "neutral", "rating"], - styles: ["solid", "regular"], - label: "Face With Rolling Eyes" + name: 'meh-rolling-eyes', + search: ['emoticon', 'face', 'neutral', 'rating'], + styles: ['solid', 'regular'], + label: 'Face With Rolling Eyes' }, { - name: "memory", - search: ["DIMM", "RAM", "hardware", "storage", "technology"], - styles: ["solid"], - label: "Memory" + name: 'memory', + search: ['DIMM', 'RAM', 'hardware', 'storage', 'technology'], + styles: ['solid'], + label: 'Memory' }, { - name: "mendeley", + name: 'mendeley', search: [], - styles: ["brands"], - label: "Mendeley" + styles: ['brands'], + label: 'Mendeley' }, { - name: "menorah", - search: ["candle", "hanukkah", "jewish", "judaism", "light"], - styles: ["solid"], - label: "Menorah" + name: 'menorah', + search: ['candle', 'hanukkah', 'jewish', 'judaism', 'light'], + styles: ['solid'], + label: 'Menorah' }, { - name: "mercury", - search: ["transgender"], - styles: ["solid"], - label: "Mercury" + name: 'mercury', + search: ['transgender'], + styles: ['solid'], + label: 'Mercury' }, { - name: "meteor", - search: ["armageddon", "asteroid", "comet", "shooting star", "space"], - styles: ["solid"], - label: "Meteor" + name: 'meteor', + search: ['armageddon', 'asteroid', 'comet', 'shooting star', 'space'], + styles: ['solid'], + label: 'Meteor' }, { - name: "microblog", + name: 'microblog', search: [], - styles: ["brands"], - label: "Micro.blog" + styles: ['brands'], + label: 'Micro.blog' }, { - name: "microchip", - search: ["cpu", "hardware", "processor", "technology"], - styles: ["solid"], - label: "Microchip" + name: 'microchip', + search: ['cpu', 'hardware', 'processor', 'technology'], + styles: ['solid'], + label: 'Microchip' }, { - name: "microphone", - search: ["audio", "podcast", "record", "sing", "sound", "voice"], - styles: ["solid"], - label: "microphone" + name: 'microphone', + search: ['audio', 'podcast', 'record', 'sing', 'sound', 'voice'], + styles: ['solid'], + label: 'microphone' }, { - name: "microphone-alt", - search: ["audio", "podcast", "record", "sing", "sound", "voice"], - styles: ["solid"], - label: "Alternate Microphone" + name: 'microphone-alt', + search: ['audio', 'podcast', 'record', 'sing', 'sound', 'voice'], + styles: ['solid'], + label: 'Alternate Microphone' }, { - name: "microphone-alt-slash", - search: ["audio", "disable", "mute", "podcast", "record", "sing", "sound", "voice"], - styles: ["solid"], - label: "Alternate Microphone Slash" + name: 'microphone-alt-slash', + search: ['audio', 'disable', 'mute', 'podcast', 'record', 'sing', 'sound', 'voice'], + styles: ['solid'], + label: 'Alternate Microphone Slash' }, { - name: "microphone-slash", - search: ["audio", "disable", "mute", "podcast", "record", "sing", "sound", "voice"], - styles: ["solid"], - label: "Microphone Slash" + name: 'microphone-slash', + search: ['audio', 'disable', 'mute', 'podcast', 'record', 'sing', 'sound', 'voice'], + styles: ['solid'], + label: 'Microphone Slash' }, { - name: "microscope", - search: ["covid-19", "electron", "lens", "optics", "science", "shrink"], - styles: ["solid"], - label: "Microscope" + name: 'microscope', + search: ['covid-19', 'electron', 'lens', 'optics', 'science', 'shrink'], + styles: ['solid'], + label: 'Microscope' }, { - name: "microsoft", + name: 'microsoft', search: [], - styles: ["brands"], - label: "Microsoft" + styles: ['brands'], + label: 'Microsoft' }, { - name: "minus", - search: ["collapse", "delete", "hide", "minify", "negative", "remove", "trash"], - styles: ["solid"], - label: "minus" + name: 'minus', + search: ['collapse', 'delete', 'hide', 'minify', 'negative', 'remove', 'trash'], + styles: ['solid'], + label: 'minus' }, { - name: "minus-circle", - search: ["delete", "hide", "negative", "remove", "shape", "trash"], - styles: ["solid"], - label: "Minus Circle" + name: 'minus-circle', + search: ['delete', 'hide', 'negative', 'remove', 'shape', 'trash'], + styles: ['solid'], + label: 'Minus Circle' }, { - name: "minus-square", - search: ["collapse", "delete", "hide", "minify", "negative", "remove", "shape", "trash"], - styles: ["solid", "regular"], - label: "Minus Square" + name: 'minus-square', + search: ['collapse', 'delete', 'hide', 'minify', 'negative', 'remove', 'shape', 'trash'], + styles: ['solid', 'regular'], + label: 'Minus Square' }, { - name: "mitten", - search: ["clothing", "cold", "glove", "hands", "knitted", "seasonal", "warmth"], - styles: ["solid"], - label: "Mitten" + name: 'mitten', + search: ['clothing', 'cold', 'glove', 'hands', 'knitted', 'seasonal', 'warmth'], + styles: ['solid'], + label: 'Mitten' }, { - name: "mix", - search: [], - styles: ["brands"], - label: "Mix" + name: 'mix', + search: [], + styles: ['brands'], + label: 'Mix' }, { - name: "mixcloud", - search: [], - styles: ["brands"], - label: "Mixcloud" + name: 'mixcloud', + search: [], + styles: ['brands'], + label: 'Mixcloud' }, { - name: "mixer", - search: [], - styles: ["brands"], - label: "Mixer" + name: 'mixer', + search: [], + styles: ['brands'], + label: 'Mixer' }, { - name: "mizuni", - search: [], - styles: ["brands"], - label: "Mizuni" + name: 'mizuni', + search: [], + styles: ['brands'], + label: 'Mizuni' }, { - name: "mobile", - search: ["apple", "call", "cell phone", "cellphone", "device", "iphone", "number", "screen", "telephone"], - styles: ["solid"], - label: "Mobile Phone" + name: 'mobile', + search: ['apple', 'call', 'cell phone', 'cellphone', 'device', 'iphone', 'number', 'screen', 'telephone'], + styles: ['solid'], + label: 'Mobile Phone' }, { - name: "mobile-alt", - search: ["apple", "call", "cell phone", "cellphone", "device", "iphone", "number", "screen", "telephone"], - styles: ["solid"], - label: "Alternate Mobile" + name: 'mobile-alt', + search: ['apple', 'call', 'cell phone', 'cellphone', 'device', 'iphone', 'number', 'screen', 'telephone'], + styles: ['solid'], + label: 'Alternate Mobile' }, { - name: "modx", + name: 'modx', search: [], - styles: ["brands"], - label: "MODX" + styles: ['brands'], + label: 'MODX' }, { - name: "monero", + name: 'monero', search: [], - styles: ["brands"], - label: "Monero" + styles: ['brands'], + label: 'Monero' }, { - name: "money-bill", - search: ["buy", "cash", "checkout", "money", "payment", "price", "purchase"], - styles: ["solid"], - label: "Money Bill" + name: 'money-bill', + search: ['buy', 'cash', 'checkout', 'money', 'payment', 'price', 'purchase'], + styles: ['solid'], + label: 'Money Bill' }, { - name: "money-bill-alt", - search: ["buy", "cash", "checkout", "money", "payment", "price", "purchase"], - styles: ["solid", "regular"], - label: "Alternate Money Bill" + name: 'money-bill-alt', + search: ['buy', 'cash', 'checkout', 'money', 'payment', 'price', 'purchase'], + styles: ['solid', 'regular'], + label: 'Alternate Money Bill' }, { - name: "money-bill-wave", - search: ["buy", "cash", "checkout", "money", "payment", "price", "purchase"], - styles: ["solid"], - label: "Wavy Money Bill" + name: 'money-bill-wave', + search: ['buy', 'cash', 'checkout', 'money', 'payment', 'price', 'purchase'], + styles: ['solid'], + label: 'Wavy Money Bill' }, { - name: "money-bill-wave-alt", - search: ["buy", "cash", "checkout", "money", "payment", "price", "purchase"], - styles: ["solid"], - label: "Alternate Wavy Money Bill" + name: 'money-bill-wave-alt', + search: ['buy', 'cash', 'checkout', 'money', 'payment', 'price', 'purchase'], + styles: ['solid'], + label: 'Alternate Wavy Money Bill' }, { - name: "money-check", - search: ["bank check", "buy", "checkout", "cheque", "money", "payment", "price", "purchase"], - styles: ["solid"], - label: "Money Check" + name: 'money-check', + search: ['bank check', 'buy', 'checkout', 'cheque', 'money', 'payment', 'price', 'purchase'], + styles: ['solid'], + label: 'Money Check' }, { - name: "money-check-alt", - search: ["bank check", "buy", "checkout", "cheque", "money", "payment", "price", "purchase"], - styles: ["solid"], - label: "Alternate Money Check" + name: 'money-check-alt', + search: ['bank check', 'buy', 'checkout', 'cheque', 'money', 'payment', 'price', 'purchase'], + styles: ['solid'], + label: 'Alternate Money Check' }, { - name: "monument", - search: ["building", "historic", "landmark", "memorable"], - styles: ["solid"], - label: "Monument" + name: 'monument', + search: ['building', 'historic', 'landmark', 'memorable'], + styles: ['solid'], + label: 'Monument' }, { - name: "moon", - search: ["contrast", "crescent", "dark", "lunar", "night"], - styles: ["solid", "regular"], - label: "Moon" + name: 'moon', + search: ['contrast', 'crescent', 'dark', 'lunar', 'night'], + styles: ['solid', 'regular'], + label: 'Moon' }, { - name: "mortar-pestle", - search: ["crush", "culinary", "grind", "medical", "mix", "pharmacy", "prescription", "spices"], - styles: ["solid"], - label: "Mortar Pestle" + name: 'mortar-pestle', + search: ['crush', 'culinary', 'grind', 'medical', 'mix', 'pharmacy', 'prescription', 'spices'], + styles: ['solid'], + label: 'Mortar Pestle' }, { - name: "mosque", - search: ["building", "islam", "landmark", "muslim"], - styles: ["solid"], - label: "Mosque" + name: 'mosque', + search: ['building', 'islam', 'landmark', 'muslim'], + styles: ['solid'], + label: 'Mosque' }, { - name: "motorcycle", - search: ["bike", "machine", "transportation", "vehicle"], - styles: ["solid"], - label: "Motorcycle" + name: 'motorcycle', + search: ['bike', 'machine', 'transportation', 'vehicle'], + styles: ['solid'], + label: 'Motorcycle' }, { - name: "mountain", - search: ["glacier", "hiking", "hill", "landscape", "travel", "view"], - styles: ["solid"], - label: "Mountain" + name: 'mountain', + search: ['glacier', 'hiking', 'hill', 'landscape', 'travel', 'view'], + styles: ['solid'], + label: 'Mountain' }, { - name: "mouse", - search: ["click", "computer", "cursor", "input", "peripheral"], - styles: ["solid"], - label: "Mouse" + name: 'mouse', + search: ['click', 'computer', 'cursor', 'input', 'peripheral'], + styles: ['solid'], + label: 'Mouse' }, { - name: "mouse-pointer", - search: ["arrow", "cursor", "select"], - styles: ["solid"], - label: "Mouse Pointer" + name: 'mouse-pointer', + search: ['arrow', 'cursor', 'select'], + styles: ['solid'], + label: 'Mouse Pointer' }, { - name: "mug-hot", - search: ["caliente", "cocoa", "coffee", "cup", "drink", "holiday", "hot chocolate", "steam", "tea", "warmth"], - styles: ["solid"], - label: "Mug Hot" + name: 'mug-hot', + search: ['caliente', 'cocoa', 'coffee', 'cup', 'drink', 'holiday', 'hot chocolate', 'steam', 'tea', 'warmth'], + styles: ['solid'], + label: 'Mug Hot' }, { - name: "music", - search: ["lyrics", "melody", "note", "sing", "sound"], - styles: ["solid"], - label: "Music" + name: 'music', + search: ['lyrics', 'melody', 'note', 'sing', 'sound'], + styles: ['solid'], + label: 'Music' }, { - name: "napster", + name: 'napster', search: [], - styles: ["brands"], - label: "Napster" + styles: ['brands'], + label: 'Napster' }, { - name: "neos", + name: 'neos', search: [], - styles: ["brands"], - label: "Neos" + styles: ['brands'], + label: 'Neos' }, { - name: "network-wired", - search: ["computer", "connect", "ethernet", "internet", "intranet"], - styles: ["solid"], - label: "Wired Network" + name: 'network-wired', + search: ['computer', 'connect', 'ethernet', 'internet', 'intranet'], + styles: ['solid'], + label: 'Wired Network' }, { - name: "neuter", + name: 'neuter', search: [], - styles: ["solid"], - label: "Neuter" + styles: ['solid'], + label: 'Neuter' }, { - name: "newspaper", - search: ["article", "editorial", "headline", "journal", "journalism", "news", "press"], - styles: ["solid", "regular"], - label: "Newspaper" + name: 'newspaper', + search: ['article', 'editorial', 'headline', 'journal', 'journalism', 'news', 'press'], + styles: ['solid', 'regular'], + label: 'Newspaper' }, { - name: "nimblr", + name: 'nimblr', search: [], - styles: ["brands"], - label: "Nimblr" + styles: ['brands'], + label: 'Nimblr' }, { - name: "node", + name: 'node', search: [], - styles: ["brands"], - label: "Node.js" + styles: ['brands'], + label: 'Node.js' }, { - name: "node-js", + name: 'node-js', search: [], - styles: ["brands"], - label: "Node.js JS" + styles: ['brands'], + label: 'Node.js JS' }, { - name: "not-equal", - search: ["arithmetic", "compare", "math"], - styles: ["solid"], - label: "Not Equal" + name: 'not-equal', + search: ['arithmetic', 'compare', 'math'], + styles: ['solid'], + label: 'Not Equal' }, { - name: "notes-medical", - search: ["clipboard", "doctor", "ehr", "health", "history", "records"], - styles: ["solid"], - label: "Medical Notes" + name: 'notes-medical', + search: ['clipboard', 'doctor', 'ehr', 'health', 'history', 'records'], + styles: ['solid'], + label: 'Medical Notes' }, { - name: "npm", + name: 'npm', search: [], - styles: ["brands"], - label: "npm" + styles: ['brands'], + label: 'npm' }, { - name: "ns8", + name: 'ns8', search: [], - styles: ["brands"], - label: "NS8" + styles: ['brands'], + label: 'NS8' }, { - name: "nutritionix", + name: 'nutritionix', search: [], - styles: ["brands"], - label: "Nutritionix" + styles: ['brands'], + label: 'Nutritionix' }, { - name: "object-group", - search: ["combine", "copy", "design", "merge", "select"], - styles: ["solid", "regular"], - label: "Object Group" + name: 'object-group', + search: ['combine', 'copy', 'design', 'merge', 'select'], + styles: ['solid', 'regular'], + label: 'Object Group' }, { - name: "object-ungroup", - search: ["copy", "design", "merge", "select", "separate"], - styles: ["solid", "regular"], - label: "Object Ungroup" + name: 'object-ungroup', + search: ['copy', 'design', 'merge', 'select', 'separate'], + styles: ['solid', 'regular'], + label: 'Object Ungroup' }, { - name: "odnoklassniki", + name: 'odnoklassniki', search: [], - styles: ["brands"], - label: "Odnoklassniki" + styles: ['brands'], + label: 'Odnoklassniki' }, { - name: "odnoklassniki-square", + name: 'odnoklassniki-square', search: [], - styles: ["brands"], - label: "Odnoklassniki Square" + styles: ['brands'], + label: 'Odnoklassniki Square' }, { - name: "oil-can", - search: ["auto", "crude", "gasoline", "grease", "lubricate", "petroleum"], - styles: ["solid"], - label: "Oil Can" + name: 'oil-can', + search: ['auto', 'crude', 'gasoline', 'grease', 'lubricate', 'petroleum'], + styles: ['solid'], + label: 'Oil Can' }, { - name: "old-republic", - search: ["politics", "star wars"], - styles: ["brands"], - label: "Old Republic" + name: 'old-republic', + search: ['politics', 'star wars'], + styles: ['brands'], + label: 'Old Republic' }, { - name: "om", - search: ["buddhism", "hinduism", "jainism", "mantra"], - styles: ["solid"], - label: "Om" + name: 'om', + search: ['buddhism', 'hinduism', 'jainism', 'mantra'], + styles: ['solid'], + label: 'Om' }, { - name: "opencart", + name: 'opencart', search: [], - styles: ["brands"], - label: "OpenCart" + styles: ['brands'], + label: 'OpenCart' }, { - name: "openid", + name: 'openid', search: [], - styles: ["brands"], - label: "OpenID" + styles: ['brands'], + label: 'OpenID' }, { - name: "opera", + name: 'opera', search: [], - styles: ["brands"], - label: "Opera" + styles: ['brands'], + label: 'Opera' }, { - name: "optin-monster", + name: 'optin-monster', search: [], - styles: ["brands"], - label: "Optin Monster" + styles: ['brands'], + label: 'Optin Monster' }, { - name: "orcid", + name: 'orcid', search: [], - styles: ["brands"], - label: "ORCID" + styles: ['brands'], + label: 'ORCID' }, { - name: "osi", + name: 'osi', search: [], - styles: ["brands"], - label: "Open Source Initiative" + styles: ['brands'], + label: 'Open Source Initiative' }, { - name: "otter", - search: ["animal", "badger", "fauna", "fur", "mammal", "marten"], - styles: ["solid"], - label: "Otter" + name: 'otter', + search: ['animal', 'badger', 'fauna', 'fur', 'mammal', 'marten'], + styles: ['solid'], + label: 'Otter' }, { - name: "outdent", - search: ["align", "justify", "paragraph", "tab"], - styles: ["solid"], - label: "Outdent" + name: 'outdent', + search: ['align', 'justify', 'paragraph', 'tab'], + styles: ['solid'], + label: 'Outdent' }, { - name: "page4", + name: 'page4', search: [], - styles: ["brands"], - label: "page4 Corporation" + styles: ['brands'], + label: 'page4 Corporation' }, { - name: "pagelines", - search: ["eco", "flora", "leaf", "leaves", "nature", "plant", "tree"], - styles: ["brands"], - label: "Pagelines" + name: 'pagelines', + search: ['eco', 'flora', 'leaf', 'leaves', 'nature', 'plant', 'tree'], + styles: ['brands'], + label: 'Pagelines' }, { - name: "pager", - search: ["beeper", "cellphone", "communication"], - styles: ["solid"], - label: "Pager" + name: 'pager', + search: ['beeper', 'cellphone', 'communication'], + styles: ['solid'], + label: 'Pager' }, { - name: "paint-brush", - search: ["acrylic", "art", "brush", "color", "fill", "paint", "pigment", "watercolor"], - styles: ["solid"], - label: "Paint Brush" + name: 'paint-brush', + search: ['acrylic', 'art', 'brush', 'color', 'fill', 'paint', 'pigment', 'watercolor'], + styles: ['solid'], + label: 'Paint Brush' }, { - name: "paint-roller", - search: ["acrylic", "art", "brush", "color", "fill", "paint", "pigment", "watercolor"], - styles: ["solid"], - label: "Paint Roller" + name: 'paint-roller', + search: ['acrylic', 'art', 'brush', 'color', 'fill', 'paint', 'pigment', 'watercolor'], + styles: ['solid'], + label: 'Paint Roller' }, { - name: "palette", - search: ["acrylic", "art", "brush", "color", "fill", "paint", "pigment", "watercolor"], - styles: ["solid"], - label: "Palette" + name: 'palette', + search: ['acrylic', 'art', 'brush', 'color', 'fill', 'paint', 'pigment', 'watercolor'], + styles: ['solid'], + label: 'Palette' }, { - name: "palfed", + name: 'palfed', search: [], - styles: ["brands"], - label: "Palfed" + styles: ['brands'], + label: 'Palfed' }, { - name: "pallet", - search: ["archive", "box", "inventory", "shipping", "warehouse"], - styles: ["solid"], - label: "Pallet" + name: 'pallet', + search: ['archive', 'box', 'inventory', 'shipping', 'warehouse'], + styles: ['solid'], + label: 'Pallet' }, { - name: "paper-plane", - search: ["air", "float", "fold", "mail", "paper", "send"], - styles: ["solid", "regular"], - label: "Paper Plane" + name: 'paper-plane', + search: ['air', 'float', 'fold', 'mail', 'paper', 'send'], + styles: ['solid', 'regular'], + label: 'Paper Plane' }, { - name: "paperclip", - search: ["attach", "attachment", "connect", "link"], - styles: ["solid"], - label: "Paperclip" + name: 'paperclip', + search: ['attach', 'attachment', 'connect', 'link'], + styles: ['solid'], + label: 'Paperclip' }, { - name: "parachute-box", - search: ["aid", "assistance", "rescue", "supplies"], - styles: ["solid"], - label: "Parachute Box" + name: 'parachute-box', + search: ['aid', 'assistance', 'rescue', 'supplies'], + styles: ['solid'], + label: 'Parachute Box' }, { - name: "paragraph", - search: ["edit", "format", "text", "writing"], - styles: ["solid"], - label: "paragraph" + name: 'paragraph', + search: ['edit', 'format', 'text', 'writing'], + styles: ['solid'], + label: 'paragraph' }, { - name: "parking", - search: ["auto", "car", "garage", "meter"], - styles: ["solid"], - label: "Parking" + name: 'parking', + search: ['auto', 'car', 'garage', 'meter'], + styles: ['solid'], + label: 'Parking' }, { - name: "passport", - search: ["document", "id", "identification", "issued", "travel"], - styles: ["solid"], - label: "Passport" -}, { - name: "pastafarianism", - search: ["agnosticism", "atheism", "flying spaghetti monster", "fsm"], - styles: ["solid"], - label: "Pastafarianism" -}, { - name: "paste", - search: ["clipboard", "copy", "document", "paper"], - styles: ["solid"], - label: "Paste" -}, { - name: "patreon", - search: [], - styles: ["brands"], - label: "Patreon" -}, { - name: "pause", - search: ["hold", "wait"], - styles: ["solid"], - label: "pause" -}, { - name: "pause-circle", - search: ["hold", "wait"], - styles: ["solid", "regular"], - label: "Pause Circle" -}, { - name: "paw", - search: ["animal", "cat", "dog", "pet", "print"], - styles: ["solid"], - label: "Paw" -}, { - name: "paypal", - search: [], - styles: ["brands"], - label: "Paypal" -}, { - name: "peace", - search: ["serenity", "tranquility", "truce", "war"], - styles: ["solid"], - label: "Peace" -}, { - name: "pen", - search: ["design", "edit", "update", "write"], - styles: ["solid"], - label: "Pen" -}, { - name: "pen-alt", - search: ["design", "edit", "update", "write"], - styles: ["solid"], - label: "Alternate Pen" -}, { - name: "pen-fancy", - search: ["design", "edit", "fountain pen", "update", "write"], - styles: ["solid"], - label: "Pen Fancy" -}, { - name: "pen-nib", - search: ["design", "edit", "fountain pen", "update", "write"], - styles: ["solid"], - label: "Pen Nib" -}, { - name: "pen-square", - search: ["edit", "pencil-square", "update", "write"], - styles: ["solid"], - label: "Pen Square" -}, { - name: "pencil-alt", - search: ["design", "edit", "pencil", "update", "write"], - styles: ["solid"], - label: "Alternate Pencil" -}, { - name: "pencil-ruler", - search: ["design", "draft", "draw", "pencil"], - styles: ["solid"], - label: "Pencil Ruler" -}, { - name: "penny-arcade", - search: ["Dungeons & Dragons", "d&d", "dnd", "fantasy", "game", "gaming", "pax", "tabletop"], - styles: ["brands"], - label: "Penny Arcade" + name: 'passport', + search: ['document', 'id', 'identification', 'issued', 'travel'], + styles: ['solid'], + label: 'Passport' +}, { + name: 'pastafarianism', + search: ['agnosticism', 'atheism', 'flying spaghetti monster', 'fsm'], + styles: ['solid'], + label: 'Pastafarianism' +}, { + name: 'paste', + search: ['clipboard', 'copy', 'document', 'paper'], + styles: ['solid'], + label: 'Paste' +}, { + name: 'patreon', + search: [], + styles: ['brands'], + label: 'Patreon' +}, { + name: 'pause', + search: ['hold', 'wait'], + styles: ['solid'], + label: 'pause' +}, { + name: 'pause-circle', + search: ['hold', 'wait'], + styles: ['solid', 'regular'], + label: 'Pause Circle' +}, { + name: 'paw', + search: ['animal', 'cat', 'dog', 'pet', 'print'], + styles: ['solid'], + label: 'Paw' +}, { + name: 'paypal', + search: [], + styles: ['brands'], + label: 'Paypal' +}, { + name: 'peace', + search: ['serenity', 'tranquility', 'truce', 'war'], + styles: ['solid'], + label: 'Peace' +}, { + name: 'pen', + search: ['design', 'edit', 'update', 'write'], + styles: ['solid'], + label: 'Pen' +}, { + name: 'pen-alt', + search: ['design', 'edit', 'update', 'write'], + styles: ['solid'], + label: 'Alternate Pen' +}, { + name: 'pen-fancy', + search: ['design', 'edit', 'fountain pen', 'update', 'write'], + styles: ['solid'], + label: 'Pen Fancy' +}, { + name: 'pen-nib', + search: ['design', 'edit', 'fountain pen', 'update', 'write'], + styles: ['solid'], + label: 'Pen Nib' +}, { + name: 'pen-square', + search: ['edit', 'pencil-square', 'update', 'write'], + styles: ['solid'], + label: 'Pen Square' +}, { + name: 'pencil-alt', + search: ['design', 'edit', 'pencil', 'update', 'write'], + styles: ['solid'], + label: 'Alternate Pencil' +}, { + name: 'pencil-ruler', + search: ['design', 'draft', 'draw', 'pencil'], + styles: ['solid'], + label: 'Pencil Ruler' +}, { + name: 'penny-arcade', + search: ['Dungeons & Dragons', 'd&d', 'dnd', 'fantasy', 'game', 'gaming', 'pax', 'tabletop'], + styles: ['brands'], + label: 'Penny Arcade' }, { - name: "people-arrows", - search: ["covid-19", "personal space", "social distance", "space", "spread", "users"], - styles: ["solid"], - label: "People Arrows" + name: 'people-arrows', + search: ['covid-19', 'personal space', 'social distance', 'space', 'spread', 'users'], + styles: ['solid'], + label: 'People Arrows' }, { - name: "people-carry", - search: ["box", "carry", "fragile", "help", "movers", "package"], - styles: ["solid"], - label: "People Carry" + name: 'people-carry', + search: ['box', 'carry', 'fragile', 'help', 'movers', 'package'], + styles: ['solid'], + label: 'People Carry' }, { - name: "pepper-hot", - search: ["buffalo wings", "capsicum", "chili", "chilli", "habanero", "jalapeno", "mexican", "spicy", "tabasco", "vegetable"], - styles: ["solid"], - label: "Hot Pepper" + name: 'pepper-hot', + search: ['buffalo wings', 'capsicum', 'chili', 'chilli', 'habanero', 'jalapeno', 'mexican', 'spicy', 'tabasco', 'vegetable'], + styles: ['solid'], + label: 'Hot Pepper' }, { - name: "percent", - search: ["discount", "fraction", "proportion", "rate", "ratio"], - styles: ["solid"], - label: "Percent" + name: 'percent', + search: ['discount', 'fraction', 'proportion', 'rate', 'ratio'], + styles: ['solid'], + label: 'Percent' }, { - name: "percentage", - search: ["discount", "fraction", "proportion", "rate", "ratio"], - styles: ["solid"], - label: "Percentage" + name: 'percentage', + search: ['discount', 'fraction', 'proportion', 'rate', 'ratio'], + styles: ['solid'], + label: 'Percentage' }, { - name: "periscope", + name: 'periscope', search: [], - styles: ["brands"], - label: "Periscope" + styles: ['brands'], + label: 'Periscope' }, { - name: "person-booth", - search: ["changing", "changing room", "election", "human", "person", "vote", "voting"], - styles: ["solid"], - label: "Person Entering Booth" + name: 'person-booth', + search: ['changing', 'changing room', 'election', 'human', 'person', 'vote', 'voting'], + styles: ['solid'], + label: 'Person Entering Booth' }, { - name: "phabricator", + name: 'phabricator', search: [], - styles: ["brands"], - label: "Phabricator" + styles: ['brands'], + label: 'Phabricator' }, { - name: "phoenix-framework", + name: 'phoenix-framework', search: [], - styles: ["brands"], - label: "Phoenix Framework" + styles: ['brands'], + label: 'Phoenix Framework' }, { - name: "phoenix-squadron", + name: 'phoenix-squadron', search: [], - styles: ["brands"], - label: "Phoenix Squadron" + styles: ['brands'], + label: 'Phoenix Squadron' }, { - name: "phone", - search: ["call", "earphone", "number", "support", "telephone", "voice"], - styles: ["solid"], - label: "Phone" + name: 'phone', + search: ['call', 'earphone', 'number', 'support', 'telephone', 'voice'], + styles: ['solid'], + label: 'Phone' }, { - name: "phone-alt", - search: ["call", "earphone", "number", "support", "telephone", "voice"], - styles: ["solid"], - label: "Alternate Phone" + name: 'phone-alt', + search: ['call', 'earphone', 'number', 'support', 'telephone', 'voice'], + styles: ['solid'], + label: 'Alternate Phone' }, { - name: "phone-slash", - search: ["call", "cancel", "earphone", "mute", "number", "support", "telephone", "voice"], - styles: ["solid"], - label: "Phone Slash" + name: 'phone-slash', + search: ['call', 'cancel', 'earphone', 'mute', 'number', 'support', 'telephone', 'voice'], + styles: ['solid'], + label: 'Phone Slash' }, { - name: "phone-square", - search: ["call", "earphone", "number", "support", "telephone", "voice"], - styles: ["solid"], - label: "Phone Square" + name: 'phone-square', + search: ['call', 'earphone', 'number', 'support', 'telephone', 'voice'], + styles: ['solid'], + label: 'Phone Square' }, { - name: "phone-square-alt", - search: ["call", "earphone", "number", "support", "telephone", "voice"], - styles: ["solid"], - label: "Alternate Phone Square" + name: 'phone-square-alt', + search: ['call', 'earphone', 'number', 'support', 'telephone', 'voice'], + styles: ['solid'], + label: 'Alternate Phone Square' }, { - name: "phone-volume", - search: ["call", "earphone", "number", "sound", "support", "telephone", "voice", "volume-control-phone"], - styles: ["solid"], - label: "Phone Volume" + name: 'phone-volume', + search: ['call', 'earphone', 'number', 'sound', 'support', 'telephone', 'voice', 'volume-control-phone'], + styles: ['solid'], + label: 'Phone Volume' }, { - name: "photo-video", - search: ["av", "film", "image", "library", "media"], - styles: ["solid"], - label: "Photo Video" + name: 'photo-video', + search: ['av', 'film', 'image', 'library', 'media'], + styles: ['solid'], + label: 'Photo Video' }, { - name: "php", + name: 'php', search: [], - styles: ["brands"], - label: "PHP" + styles: ['brands'], + label: 'PHP' }, { - name: "pied-piper", + name: 'pied-piper', search: [], - styles: ["brands"], - label: "Pied Piper Logo" + styles: ['brands'], + label: 'Pied Piper Logo' }, { - name: "pied-piper-alt", + name: 'pied-piper-alt', search: [], - styles: ["brands"], - label: "Alternate Pied Piper Logo (Old)" + styles: ['brands'], + label: 'Alternate Pied Piper Logo (Old)' }, { - name: "pied-piper-hat", - search: ["clothing"], - styles: ["brands"], - label: "Pied Piper Hat (Old)" + name: 'pied-piper-hat', + search: ['clothing'], + styles: ['brands'], + label: 'Pied Piper Hat (Old)' }, { - name: "pied-piper-pp", + name: 'pied-piper-pp', search: [], - styles: ["brands"], - label: "Pied Piper PP Logo (Old)" + styles: ['brands'], + label: 'Pied Piper PP Logo (Old)' }, { - name: "pied-piper-square", + name: 'pied-piper-square', search: [], - styles: ["brands"], - label: "Pied Piper Square Logo (Old)" + styles: ['brands'], + label: 'Pied Piper Square Logo (Old)' }, { - name: "piggy-bank", - search: ["bank", "save", "savings"], - styles: ["solid"], - label: "Piggy Bank" + name: 'piggy-bank', + search: ['bank', 'save', 'savings'], + styles: ['solid'], + label: 'Piggy Bank' }, { - name: "pills", - search: ["drugs", "medicine", "prescription", "tablets"], - styles: ["solid"], - label: "Pills" + name: 'pills', + search: ['drugs', 'medicine', 'prescription', 'tablets'], + styles: ['solid'], + label: 'Pills' }, { - name: "pinterest", + name: 'pinterest', search: [], - styles: ["brands"], - label: "Pinterest" + styles: ['brands'], + label: 'Pinterest' }, { - name: "pinterest-p", + name: 'pinterest-p', search: [], - styles: ["brands"], - label: "Pinterest P" + styles: ['brands'], + label: 'Pinterest P' }, { - name: "pinterest-square", + name: 'pinterest-square', search: [], - styles: ["brands"], - label: "Pinterest Square" + styles: ['brands'], + label: 'Pinterest Square' }, { - name: "pizza-slice", - search: ["cheese", "chicago", "italian", "mozzarella", "new york", "pepperoni", "pie", "slice", "teenage mutant ninja turtles", "tomato"], - styles: ["solid"], - label: "Pizza Slice" + name: 'pizza-slice', + search: ['cheese', 'chicago', 'italian', 'mozzarella', 'new york', 'pepperoni', 'pie', 'slice', 'teenage mutant ninja turtles', 'tomato'], + styles: ['solid'], + label: 'Pizza Slice' }, { - name: "place-of-worship", - search: ["building", "church", "holy", "mosque", "synagogue"], - styles: ["solid"], - label: "Place of Worship" + name: 'place-of-worship', + search: ['building', 'church', 'holy', 'mosque', 'synagogue'], + styles: ['solid'], + label: 'Place of Worship' }, { - name: "plane", - search: ["airplane", "destination", "fly", "location", "mode", "travel", "trip"], - styles: ["solid"], - label: "plane" + name: 'plane', + search: ['airplane', 'destination', 'fly', 'location', 'mode', 'travel', 'trip'], + styles: ['solid'], + label: 'plane' }, { - name: "plane-arrival", - search: ["airplane", "arriving", "destination", "fly", "land", "landing", "location", "mode", "travel", "trip"], - styles: ["solid"], - label: "Plane Arrival" + name: 'plane-arrival', + search: ['airplane', 'arriving', 'destination', 'fly', 'land', 'landing', 'location', 'mode', 'travel', 'trip'], + styles: ['solid'], + label: 'Plane Arrival' }, { - name: "plane-departure", - search: ["airplane", "departing", "destination", "fly", "location", "mode", "take off", "taking off", "travel", "trip"], - styles: ["solid"], - label: "Plane Departure" + name: 'plane-departure', + search: ['airplane', 'departing', 'destination', 'fly', 'location', 'mode', 'take off', 'taking off', 'travel', 'trip'], + styles: ['solid'], + label: 'Plane Departure' }, { - name: "plane-slash", - search: ["airplane mode", "canceled", "covid-19", "delayed", "grounded", "travel"], - styles: ["solid"], - label: "Plane Slash" + name: 'plane-slash', + search: ['airplane mode', 'canceled', 'covid-19', 'delayed', 'grounded', 'travel'], + styles: ['solid'], + label: 'Plane Slash' }, { - name: "play", - search: ["audio", "music", "playing", "sound", "start", "video"], - styles: ["solid"], - label: "play" + name: 'play', + search: ['audio', 'music', 'playing', 'sound', 'start', 'video'], + styles: ['solid'], + label: 'play' }, { - name: "play-circle", - search: ["audio", "music", "playing", "sound", "start", "video"], - styles: ["solid", "regular"], - label: "Play Circle" + name: 'play-circle', + search: ['audio', 'music', 'playing', 'sound', 'start', 'video'], + styles: ['solid', 'regular'], + label: 'Play Circle' }, { - name: "playstation", - search: [], - styles: ["brands"], - label: "PlayStation" + name: 'playstation', + search: [], + styles: ['brands'], + label: 'PlayStation' }, { - name: "plug", - search: ["connect", "electric", "online", "power"], - styles: ["solid"], - label: "Plug" + name: 'plug', + search: ['connect', 'electric', 'online', 'power'], + styles: ['solid'], + label: 'Plug' }, { - name: "plus", - search: ["add", "create", "expand", "new", "positive", "shape"], - styles: ["solid"], - label: "plus" -}, { - name: "plus-circle", - search: ["add", "create", "expand", "new", "positive", "shape"], - styles: ["solid"], - label: "Plus Circle" -}, { - name: "plus-square", - search: ["add", "create", "expand", "new", "positive", "shape"], - styles: ["solid", "regular"], - label: "Plus Square" -}, { - name: "podcast", - search: ["audio", "broadcast", "music", "sound"], - styles: ["solid"], - label: "Podcast" -}, { - name: "poll", - search: ["results", "survey", "trend", "vote", "voting"], - styles: ["solid"], - label: "Poll" -}, { - name: "poll-h", - search: ["results", "survey", "trend", "vote", "voting"], - styles: ["solid"], - label: "Poll H" -}, { - name: "poo", - search: ["crap", "poop", "shit", "smile", "turd"], - styles: ["solid"], - label: "Poo" -}, { - name: "poo-storm", - search: ["bolt", "cloud", "euphemism", "lightning", "mess", "poop", "shit", "turd"], - styles: ["solid"], - label: "Poo Storm" -}, { - name: "poop", - search: ["crap", "poop", "shit", "smile", "turd"], - styles: ["solid"], - label: "Poop" -}, { - name: "portrait", - search: ["id", "image", "photo", "picture", "selfie"], - styles: ["solid"], - label: "Portrait" -}, { - name: "pound-sign", - search: ["currency", "gbp", "money"], - styles: ["solid"], - label: "Pound Sign" -}, { - name: "power-off", - search: ["cancel", "computer", "on", "reboot", "restart"], - styles: ["solid"], - label: "Power Off" -}, { - name: "pray", - search: ["kneel", "preach", "religion", "worship"], - styles: ["solid"], - label: "Pray" -}, { - name: "praying-hands", - search: ["kneel", "preach", "religion", "worship"], - styles: ["solid"], - label: "Praying Hands" -}, { - name: "prescription", - search: ["drugs", "medical", "medicine", "pharmacy", "rx"], - styles: ["solid"], - label: "Prescription" -}, { - name: "prescription-bottle", - search: ["drugs", "medical", "medicine", "pharmacy", "rx"], - styles: ["solid"], - label: "Prescription Bottle" -}, { - name: "prescription-bottle-alt", - search: ["drugs", "medical", "medicine", "pharmacy", "rx"], - styles: ["solid"], - label: "Alternate Prescription Bottle" -}, { - name: "print", - search: ["business", "copy", "document", "office", "paper"], - styles: ["solid"], - label: "print" -}, { - name: "procedures", - search: ["EKG", "bed", "electrocardiogram", "health", "hospital", "life", "patient", "vital"], - styles: ["solid"], - label: "Procedures" -}, { - name: "product-hunt", - search: [], - styles: ["brands"], - label: "Product Hunt" -}, { - name: "project-diagram", - search: ["chart", "graph", "network", "pert"], - styles: ["solid"], - label: "Project Diagram" -}, { - name: "pump-medical", - search: ["anti-bacterial", "clean", "covid-19", "disinfect", "hygiene", "medical grade", "sanitizer", "soap"], - styles: ["solid"], - label: "Pump Medical" -}, { - name: "pump-soap", - search: ["anti-bacterial", "clean", "covid-19", "disinfect", "hygiene", "sanitizer", "soap"], - styles: ["solid"], - label: "Pump Soap" + name: 'plus', + search: ['add', 'create', 'expand', 'new', 'positive', 'shape'], + styles: ['solid'], + label: 'plus' +}, { + name: 'plus-circle', + search: ['add', 'create', 'expand', 'new', 'positive', 'shape'], + styles: ['solid'], + label: 'Plus Circle' +}, { + name: 'plus-square', + search: ['add', 'create', 'expand', 'new', 'positive', 'shape'], + styles: ['solid', 'regular'], + label: 'Plus Square' +}, { + name: 'podcast', + search: ['audio', 'broadcast', 'music', 'sound'], + styles: ['solid'], + label: 'Podcast' +}, { + name: 'poll', + search: ['results', 'survey', 'trend', 'vote', 'voting'], + styles: ['solid'], + label: 'Poll' +}, { + name: 'poll-h', + search: ['results', 'survey', 'trend', 'vote', 'voting'], + styles: ['solid'], + label: 'Poll H' +}, { + name: 'poo', + search: ['crap', 'poop', 'shit', 'smile', 'turd'], + styles: ['solid'], + label: 'Poo' +}, { + name: 'poo-storm', + search: ['bolt', 'cloud', 'euphemism', 'lightning', 'mess', 'poop', 'shit', 'turd'], + styles: ['solid'], + label: 'Poo Storm' +}, { + name: 'poop', + search: ['crap', 'poop', 'shit', 'smile', 'turd'], + styles: ['solid'], + label: 'Poop' +}, { + name: 'portrait', + search: ['id', 'image', 'photo', 'picture', 'selfie'], + styles: ['solid'], + label: 'Portrait' +}, { + name: 'pound-sign', + search: ['currency', 'gbp', 'money'], + styles: ['solid'], + label: 'Pound Sign' +}, { + name: 'power-off', + search: ['cancel', 'computer', 'on', 'reboot', 'restart'], + styles: ['solid'], + label: 'Power Off' +}, { + name: 'pray', + search: ['kneel', 'preach', 'religion', 'worship'], + styles: ['solid'], + label: 'Pray' +}, { + name: 'praying-hands', + search: ['kneel', 'preach', 'religion', 'worship'], + styles: ['solid'], + label: 'Praying Hands' +}, { + name: 'prescription', + search: ['drugs', 'medical', 'medicine', 'pharmacy', 'rx'], + styles: ['solid'], + label: 'Prescription' +}, { + name: 'prescription-bottle', + search: ['drugs', 'medical', 'medicine', 'pharmacy', 'rx'], + styles: ['solid'], + label: 'Prescription Bottle' +}, { + name: 'prescription-bottle-alt', + search: ['drugs', 'medical', 'medicine', 'pharmacy', 'rx'], + styles: ['solid'], + label: 'Alternate Prescription Bottle' +}, { + name: 'print', + search: ['business', 'copy', 'document', 'office', 'paper'], + styles: ['solid'], + label: 'print' +}, { + name: 'procedures', + search: ['EKG', 'bed', 'electrocardiogram', 'health', 'hospital', 'life', 'patient', 'vital'], + styles: ['solid'], + label: 'Procedures' +}, { + name: 'product-hunt', + search: [], + styles: ['brands'], + label: 'Product Hunt' +}, { + name: 'project-diagram', + search: ['chart', 'graph', 'network', 'pert'], + styles: ['solid'], + label: 'Project Diagram' +}, { + name: 'pump-medical', + search: ['anti-bacterial', 'clean', 'covid-19', 'disinfect', 'hygiene', 'medical grade', 'sanitizer', 'soap'], + styles: ['solid'], + label: 'Pump Medical' +}, { + name: 'pump-soap', + search: ['anti-bacterial', 'clean', 'covid-19', 'disinfect', 'hygiene', 'sanitizer', 'soap'], + styles: ['solid'], + label: 'Pump Soap' }, { - name: "pushed", + name: 'pushed', search: [], - styles: ["brands"], - label: "Pushed" + styles: ['brands'], + label: 'Pushed' }, { - name: "puzzle-piece", - search: ["add-on", "addon", "game", "section"], - styles: ["solid"], - label: "Puzzle Piece" + name: 'puzzle-piece', + search: ['add-on', 'addon', 'game', 'section'], + styles: ['solid'], + label: 'Puzzle Piece' }, { - name: "python", + name: 'python', search: [], - styles: ["brands"], - label: "Python" + styles: ['brands'], + label: 'Python' }, { - name: "qq", + name: 'qq', search: [], - styles: ["brands"], - label: "QQ" + styles: ['brands'], + label: 'QQ' }, { - name: "qrcode", - search: ["barcode", "info", "information", "scan"], - styles: ["solid"], - label: "qrcode" + name: 'qrcode', + search: ['barcode', 'info', 'information', 'scan'], + styles: ['solid'], + label: 'qrcode' }, { - name: "question", - search: ["help", "information", "support", "unknown"], - styles: ["solid"], - label: "Question" + name: 'question', + search: ['help', 'information', 'support', 'unknown'], + styles: ['solid'], + label: 'Question' }, { - name: "question-circle", - search: ["help", "information", "support", "unknown"], - styles: ["solid", "regular"], - label: "Question Circle" + name: 'question-circle', + search: ['help', 'information', 'support', 'unknown'], + styles: ['solid', 'regular'], + label: 'Question Circle' }, { - name: "quidditch", - search: ["ball", "bludger", "broom", "golden snitch", "harry potter", "hogwarts", "quaffle", "sport", "wizard"], - styles: ["solid"], - label: "Quidditch" + name: 'quidditch', + search: ['ball', 'bludger', 'broom', 'golden snitch', 'harry potter', 'hogwarts', 'quaffle', 'sport', 'wizard'], + styles: ['solid'], + label: 'Quidditch' }, { - name: "quinscape", + name: 'quinscape', search: [], - styles: ["brands"], - label: "QuinScape" + styles: ['brands'], + label: 'QuinScape' }, { - name: "quora", + name: 'quora', search: [], - styles: ["brands"], - label: "Quora" + styles: ['brands'], + label: 'Quora' }, { - name: "quote-left", - search: ["mention", "note", "phrase", "text", "type"], - styles: ["solid"], - label: "quote-left" + name: 'quote-left', + search: ['mention', 'note', 'phrase', 'text', 'type'], + styles: ['solid'], + label: 'quote-left' }, { - name: "quote-right", - search: ["mention", "note", "phrase", "text", "type"], - styles: ["solid"], - label: "quote-right" + name: 'quote-right', + search: ['mention', 'note', 'phrase', 'text', 'type'], + styles: ['solid'], + label: 'quote-right' }, { - name: "quran", - search: ["book", "islam", "muslim", "religion"], - styles: ["solid"], - label: "Quran" + name: 'quran', + search: ['book', 'islam', 'muslim', 'religion'], + styles: ['solid'], + label: 'Quran' }, { - name: "r-project", + name: 'r-project', search: [], - styles: ["brands"], - label: "R Project" + styles: ['brands'], + label: 'R Project' }, { - name: "radiation", - search: ["danger", "dangerous", "deadly", "hazard", "nuclear", "radioactive", "warning"], - styles: ["solid"], - label: "Radiation" + name: 'radiation', + search: ['danger', 'dangerous', 'deadly', 'hazard', 'nuclear', 'radioactive', 'warning'], + styles: ['solid'], + label: 'Radiation' }, { - name: "radiation-alt", - search: ["danger", "dangerous", "deadly", "hazard", "nuclear", "radioactive", "warning"], - styles: ["solid"], - label: "Alternate Radiation" + name: 'radiation-alt', + search: ['danger', 'dangerous', 'deadly', 'hazard', 'nuclear', 'radioactive', 'warning'], + styles: ['solid'], + label: 'Alternate Radiation' }, { - name: "rainbow", - search: ["gold", "leprechaun", "prism", "rain", "sky"], - styles: ["solid"], - label: "Rainbow" + name: 'rainbow', + search: ['gold', 'leprechaun', 'prism', 'rain', 'sky'], + styles: ['solid'], + label: 'Rainbow' }, { - name: "random", - search: ["arrows", "shuffle", "sort", "swap", "switch", "transfer"], - styles: ["solid"], - label: "random" + name: 'random', + search: ['arrows', 'shuffle', 'sort', 'swap', 'switch', 'transfer'], + styles: ['solid'], + label: 'random' }, { - name: "raspberry-pi", + name: 'raspberry-pi', search: [], - styles: ["brands"], - label: "Raspberry Pi" + styles: ['brands'], + label: 'Raspberry Pi' }, { - name: "ravelry", + name: 'ravelry', search: [], - styles: ["brands"], - label: "Ravelry" + styles: ['brands'], + label: 'Ravelry' }, { - name: "react", + name: 'react', search: [], - styles: ["brands"], - label: "React" + styles: ['brands'], + label: 'React' }, { - name: "reacteurope", + name: 'reacteurope', search: [], - styles: ["brands"], - label: "ReactEurope" + styles: ['brands'], + label: 'ReactEurope' }, { - name: "readme", + name: 'readme', search: [], - styles: ["brands"], - label: "ReadMe" + styles: ['brands'], + label: 'ReadMe' }, { - name: "rebel", + name: 'rebel', search: [], - styles: ["brands"], - label: "Rebel Alliance" + styles: ['brands'], + label: 'Rebel Alliance' }, { - name: "receipt", - search: ["check", "invoice", "money", "pay", "table"], - styles: ["solid"], - label: "Receipt" + name: 'receipt', + search: ['check', 'invoice', 'money', 'pay', 'table'], + styles: ['solid'], + label: 'Receipt' }, { - name: "record-vinyl", - search: ["LP", "album", "analog", "music", "phonograph", "sound"], - styles: ["solid"], - label: "Record Vinyl" + name: 'record-vinyl', + search: ['LP', 'album', 'analog', 'music', 'phonograph', 'sound'], + styles: ['solid'], + label: 'Record Vinyl' }, { - name: "recycle", - search: ["Waste", "compost", "garbage", "reuse", "trash"], - styles: ["solid"], - label: "Recycle" + name: 'recycle', + search: ['Waste', 'compost', 'garbage', 'reuse', 'trash'], + styles: ['solid'], + label: 'Recycle' }, { - name: "red-river", + name: 'red-river', search: [], - styles: ["brands"], - label: "red river" + styles: ['brands'], + label: 'red river' }, { - name: "reddit", + name: 'reddit', search: [], - styles: ["brands"], - label: "reddit Logo" + styles: ['brands'], + label: 'reddit Logo' }, { - name: "reddit-alien", + name: 'reddit-alien', search: [], - styles: ["brands"], - label: "reddit Alien" + styles: ['brands'], + label: 'reddit Alien' }, { - name: "reddit-square", + name: 'reddit-square', search: [], - styles: ["brands"], - label: "reddit Square" + styles: ['brands'], + label: 'reddit Square' }, { - name: "redhat", - search: ["linux", "operating system", "os"], - styles: ["brands"], - label: "Redhat" + name: 'redhat', + search: ['linux', 'operating system', 'os'], + styles: ['brands'], + label: 'Redhat' }, { - name: "redo", - search: ["forward", "refresh", "reload", "repeat"], - styles: ["solid"], - label: "Redo" + name: 'redo', + search: ['forward', 'refresh', 'reload', 'repeat'], + styles: ['solid'], + label: 'Redo' }, { - name: "redo-alt", - search: ["forward", "refresh", "reload", "repeat"], - styles: ["solid"], - label: "Alternate Redo" + name: 'redo-alt', + search: ['forward', 'refresh', 'reload', 'repeat'], + styles: ['solid'], + label: 'Alternate Redo' }, { - name: "registered", - search: ["copyright", "mark", "trademark"], - styles: ["solid", "regular"], - label: "Registered Trademark" + name: 'registered', + search: ['copyright', 'mark', 'trademark'], + styles: ['solid', 'regular'], + label: 'Registered Trademark' }, { - name: "remove-format", - search: ["cancel", "font", "format", "remove", "style", "text"], - styles: ["solid"], - label: "Remove Format" + name: 'remove-format', + search: ['cancel', 'font', 'format', 'remove', 'style', 'text'], + styles: ['solid'], + label: 'Remove Format' }, { - name: "renren", + name: 'renren', search: [], - styles: ["brands"], - label: "Renren" + styles: ['brands'], + label: 'Renren' }, { - name: "reply", - search: ["mail", "message", "respond"], - styles: ["solid"], - label: "Reply" + name: 'reply', + search: ['mail', 'message', 'respond'], + styles: ['solid'], + label: 'Reply' }, { - name: "reply-all", - search: ["mail", "message", "respond"], - styles: ["solid"], - label: "reply-all" + name: 'reply-all', + search: ['mail', 'message', 'respond'], + styles: ['solid'], + label: 'reply-all' }, { - name: "replyd", + name: 'replyd', search: [], - styles: ["brands"], - label: "replyd" + styles: ['brands'], + label: 'replyd' }, { - name: "republican", - search: ["american", "conservative", "election", "elephant", "politics", "republican party", "right", "right-wing", "usa"], - styles: ["solid"], - label: "Republican" + name: 'republican', + search: ['american', 'conservative', 'election', 'elephant', 'politics', 'republican party', 'right', 'right-wing', 'usa'], + styles: ['solid'], + label: 'Republican' }, { - name: "researchgate", + name: 'researchgate', search: [], - styles: ["brands"], - label: "Researchgate" + styles: ['brands'], + label: 'Researchgate' }, { - name: "resolving", + name: 'resolving', search: [], - styles: ["brands"], - label: "Resolving" + styles: ['brands'], + label: 'Resolving' }, { - name: "restroom", - search: ["bathroom", "john", "loo", "potty", "washroom", "waste", "wc"], - styles: ["solid"], - label: "Restroom" + name: 'restroom', + search: ['bathroom', 'john', 'loo', 'potty', 'washroom', 'waste', 'wc'], + styles: ['solid'], + label: 'Restroom' }, { - name: "retweet", - search: ["refresh", "reload", "share", "swap"], - styles: ["solid"], - label: "Retweet" + name: 'retweet', + search: ['refresh', 'reload', 'share', 'swap'], + styles: ['solid'], + label: 'Retweet' }, { - name: "rev", + name: 'rev', search: [], - styles: ["brands"], - label: "Rev.io" + styles: ['brands'], + label: 'Rev.io' }, { - name: "ribbon", - search: ["badge", "cause", "lapel", "pin"], - styles: ["solid"], - label: "Ribbon" + name: 'ribbon', + search: ['badge', 'cause', 'lapel', 'pin'], + styles: ['solid'], + label: 'Ribbon' }, { - name: "ring", - search: ["Dungeons & Dragons", "Gollum", "band", "binding", "d&d", "dnd", "engagement", "fantasy", "gold", "jewelry", "marriage", "precious"], - styles: ["solid"], - label: "Ring" + name: 'ring', + search: ['Dungeons & Dragons', 'Gollum', 'band', 'binding', 'd&d', 'dnd', 'engagement', 'fantasy', 'gold', 'jewelry', 'marriage', 'precious'], + styles: ['solid'], + label: 'Ring' }, { - name: "road", - search: ["highway", "map", "pavement", "route", "street", "travel"], - styles: ["solid"], - label: "road" + name: 'road', + search: ['highway', 'map', 'pavement', 'route', 'street', 'travel'], + styles: ['solid'], + label: 'road' }, { - name: "robot", - search: ["android", "automate", "computer", "cyborg"], - styles: ["solid"], - label: "Robot" + name: 'robot', + search: ['android', 'automate', 'computer', 'cyborg'], + styles: ['solid'], + label: 'Robot' }, { - name: "rocket", - search: ["aircraft", "app", "jet", "launch", "nasa", "space"], - styles: ["solid"], - label: "rocket" + name: 'rocket', + search: ['aircraft', 'app', 'jet', 'launch', 'nasa', 'space'], + styles: ['solid'], + label: 'rocket' }, { - name: "rocketchat", + name: 'rocketchat', search: [], - styles: ["brands"], - label: "Rocket.Chat" + styles: ['brands'], + label: 'Rocket.Chat' }, { - name: "rockrms", + name: 'rockrms', search: [], - styles: ["brands"], - label: "Rockrms" + styles: ['brands'], + label: 'Rockrms' }, { - name: "route", - search: ["directions", "navigation", "travel"], - styles: ["solid"], - label: "Route" + name: 'route', + search: ['directions', 'navigation', 'travel'], + styles: ['solid'], + label: 'Route' }, { - name: "rss", - search: ["blog", "feed", "journal", "news", "writing"], - styles: ["solid"], - label: "rss" + name: 'rss', + search: ['blog', 'feed', 'journal', 'news', 'writing'], + styles: ['solid'], + label: 'rss' }, { - name: "rss-square", - search: ["blog", "feed", "journal", "news", "writing"], - styles: ["solid"], - label: "RSS Square" + name: 'rss-square', + search: ['blog', 'feed', 'journal', 'news', 'writing'], + styles: ['solid'], + label: 'RSS Square' }, { - name: "ruble-sign", - search: ["currency", "money", "rub"], - styles: ["solid"], - label: "Ruble Sign" + name: 'ruble-sign', + search: ['currency', 'money', 'rub'], + styles: ['solid'], + label: 'Ruble Sign' }, { - name: "ruler", - search: ["design", "draft", "length", "measure", "planning"], - styles: ["solid"], - label: "Ruler" + name: 'ruler', + search: ['design', 'draft', 'length', 'measure', 'planning'], + styles: ['solid'], + label: 'Ruler' }, { - name: "ruler-combined", - search: ["design", "draft", "length", "measure", "planning"], - styles: ["solid"], - label: "Ruler Combined" + name: 'ruler-combined', + search: ['design', 'draft', 'length', 'measure', 'planning'], + styles: ['solid'], + label: 'Ruler Combined' }, { - name: "ruler-horizontal", - search: ["design", "draft", "length", "measure", "planning"], - styles: ["solid"], - label: "Ruler Horizontal" + name: 'ruler-horizontal', + search: ['design', 'draft', 'length', 'measure', 'planning'], + styles: ['solid'], + label: 'Ruler Horizontal' }, { - name: "ruler-vertical", - search: ["design", "draft", "length", "measure", "planning"], - styles: ["solid"], - label: "Ruler Vertical" + name: 'ruler-vertical', + search: ['design', 'draft', 'length', 'measure', 'planning'], + styles: ['solid'], + label: 'Ruler Vertical' }, { - name: "running", - search: ["exercise", "health", "jog", "person", "run", "sport", "sprint"], - styles: ["solid"], - label: "Running" -}, { - name: "rupee-sign", - search: ["currency", "indian", "inr", "money"], - styles: ["solid"], - label: "Indian Rupee Sign" -}, { - name: "sad-cry", - search: ["emoticon", "face", "tear", "tears"], - styles: ["solid", "regular"], - label: "Crying Face" -}, { - name: "sad-tear", - search: ["emoticon", "face", "tear", "tears"], - styles: ["solid", "regular"], - label: "Loudly Crying Face" -}, { - name: "safari", - search: ["browser"], - styles: ["brands"], - label: "Safari" -}, { - name: "salesforce", - search: [], - styles: ["brands"], - label: "Salesforce" -}, { - name: "sass", - search: [], - styles: ["brands"], - label: "Sass" + name: 'running', + search: ['exercise', 'health', 'jog', 'person', 'run', 'sport', 'sprint'], + styles: ['solid'], + label: 'Running' +}, { + name: 'rupee-sign', + search: ['currency', 'indian', 'inr', 'money'], + styles: ['solid'], + label: 'Indian Rupee Sign' +}, { + name: 'sad-cry', + search: ['emoticon', 'face', 'tear', 'tears'], + styles: ['solid', 'regular'], + label: 'Crying Face' +}, { + name: 'sad-tear', + search: ['emoticon', 'face', 'tear', 'tears'], + styles: ['solid', 'regular'], + label: 'Loudly Crying Face' +}, { + name: 'safari', + search: ['browser'], + styles: ['brands'], + label: 'Safari' +}, { + name: 'salesforce', + search: [], + styles: ['brands'], + label: 'Salesforce' +}, { + name: 'sass', + search: [], + styles: ['brands'], + label: 'Sass' }, { - name: "satellite", - search: ["communications", "hardware", "orbit", "space"], - styles: ["solid"], - label: "Satellite" + name: 'satellite', + search: ['communications', 'hardware', 'orbit', 'space'], + styles: ['solid'], + label: 'Satellite' }, { - name: "satellite-dish", - search: ["SETI", "communications", "hardware", "receiver", "saucer", "signal", "space"], - styles: ["solid"], - label: "Satellite Dish" + name: 'satellite-dish', + search: ['SETI', 'communications', 'hardware', 'receiver', 'saucer', 'signal', 'space'], + styles: ['solid'], + label: 'Satellite Dish' }, { - name: "save", - search: ["disk", "download", "floppy", "floppy-o"], - styles: ["solid", "regular"], - label: "Save" + name: 'save', + search: ['disk', 'download', 'floppy', 'floppy-o'], + styles: ['solid', 'regular'], + label: 'Save' }, { - name: "schlix", - search: [], - styles: ["brands"], - label: "SCHLIX" -}, { - name: "school", - search: ["building", "education", "learn", "student", "teacher"], - styles: ["solid"], - label: "School" -}, { - name: "screwdriver", - search: ["admin", "fix", "mechanic", "repair", "settings", "tool"], - styles: ["solid"], - label: "Screwdriver" -}, { - name: "scribd", - search: [], - styles: ["brands"], - label: "Scribd" -}, { - name: "scroll", - search: ["Dungeons & Dragons", "announcement", "d&d", "dnd", "fantasy", "paper", "script"], - styles: ["solid"], - label: "Scroll" -}, { - name: "sd-card", - search: ["image", "memory", "photo", "save"], - styles: ["solid"], - label: "Sd Card" -}, { - name: "search", - search: ["bigger", "enlarge", "find", "magnify", "preview", "zoom"], - styles: ["solid"], - label: "Search" -}, { - name: "search-dollar", - search: ["bigger", "enlarge", "find", "magnify", "money", "preview", "zoom"], - styles: ["solid"], - label: "Search Dollar" -}, { - name: "search-location", - search: ["bigger", "enlarge", "find", "magnify", "preview", "zoom"], - styles: ["solid"], - label: "Search Location" -}, { - name: "search-minus", - search: ["minify", "negative", "smaller", "zoom", "zoom out"], - styles: ["solid"], - label: "Search Minus" + name: 'schlix', + search: [], + styles: ['brands'], + label: 'SCHLIX' +}, { + name: 'school', + search: ['building', 'education', 'learn', 'student', 'teacher'], + styles: ['solid'], + label: 'School' +}, { + name: 'screwdriver', + search: ['admin', 'fix', 'mechanic', 'repair', 'settings', 'tool'], + styles: ['solid'], + label: 'Screwdriver' +}, { + name: 'scribd', + search: [], + styles: ['brands'], + label: 'Scribd' +}, { + name: 'scroll', + search: ['Dungeons & Dragons', 'announcement', 'd&d', 'dnd', 'fantasy', 'paper', 'script'], + styles: ['solid'], + label: 'Scroll' +}, { + name: 'sd-card', + search: ['image', 'memory', 'photo', 'save'], + styles: ['solid'], + label: 'Sd Card' +}, { + name: 'search', + search: ['bigger', 'enlarge', 'find', 'magnify', 'preview', 'zoom'], + styles: ['solid'], + label: 'Search' +}, { + name: 'search-dollar', + search: ['bigger', 'enlarge', 'find', 'magnify', 'money', 'preview', 'zoom'], + styles: ['solid'], + label: 'Search Dollar' +}, { + name: 'search-location', + search: ['bigger', 'enlarge', 'find', 'magnify', 'preview', 'zoom'], + styles: ['solid'], + label: 'Search Location' +}, { + name: 'search-minus', + search: ['minify', 'negative', 'smaller', 'zoom', 'zoom out'], + styles: ['solid'], + label: 'Search Minus' }, { - name: "search-plus", - search: ["bigger", "enlarge", "magnify", "positive", "zoom", "zoom in"], - styles: ["solid"], - label: "Search Plus" + name: 'search-plus', + search: ['bigger', 'enlarge', 'magnify', 'positive', 'zoom', 'zoom in'], + styles: ['solid'], + label: 'Search Plus' }, { - name: "searchengin", - search: [], - styles: ["brands"], - label: "Searchengin" + name: 'searchengin', + search: [], + styles: ['brands'], + label: 'Searchengin' }, { - name: "seedling", - search: ["flora", "grow", "plant", "vegan"], - styles: ["solid"], - label: "Seedling" + name: 'seedling', + search: ['flora', 'grow', 'plant', 'vegan'], + styles: ['solid'], + label: 'Seedling' }, { - name: "sellcast", - search: ["eercast"], - styles: ["brands"], - label: "Sellcast" + name: 'sellcast', + search: ['eercast'], + styles: ['brands'], + label: 'Sellcast' }, { - name: "sellsy", + name: 'sellsy', search: [], - styles: ["brands"], - label: "Sellsy" + styles: ['brands'], + label: 'Sellsy' }, { - name: "server", - search: ["computer", "cpu", "database", "hardware", "network"], - styles: ["solid"], - label: "Server" + name: 'server', + search: ['computer', 'cpu', 'database', 'hardware', 'network'], + styles: ['solid'], + label: 'Server' }, { - name: "servicestack", - search: [], - styles: ["brands"], - label: "Servicestack" -}, { - name: "shapes", - search: ["blocks", "build", "circle", "square", "triangle"], - styles: ["solid"], - label: "Shapes" -}, { - name: "share", - search: ["forward", "save", "send", "social"], - styles: ["solid"], - label: "Share" -}, { - name: "share-alt", - search: ["forward", "save", "send", "social"], - styles: ["solid"], - label: "Alternate Share" -}, { - name: "share-alt-square", - search: ["forward", "save", "send", "social"], - styles: ["solid"], - label: "Alternate Share Square" -}, { - name: "share-square", - search: ["forward", "save", "send", "social"], - styles: ["solid", "regular"], - label: "Share Square" -}, { - name: "shekel-sign", - search: ["currency", "ils", "money"], - styles: ["solid"], - label: "Shekel Sign" -}, { - name: "shield-alt", - search: ["achievement", "award", "block", "defend", "security", "winner"], - styles: ["solid"], - label: "Alternate Shield" -}, { - name: "shield-virus", - search: ["antibodies", "barrier", "covid-19", "health", "protect"], - styles: ["solid"], - label: "Shield Virus" -}, { - name: "ship", - search: ["boat", "sea", "water"], - styles: ["solid"], - label: "Ship" -}, { - name: "shipping-fast", - search: ["express", "fedex", "mail", "overnight", "package", "ups"], - styles: ["solid"], - label: "Shipping Fast" + name: 'servicestack', + search: [], + styles: ['brands'], + label: 'Servicestack' +}, { + name: 'shapes', + search: ['blocks', 'build', 'circle', 'square', 'triangle'], + styles: ['solid'], + label: 'Shapes' +}, { + name: 'share', + search: ['forward', 'save', 'send', 'social'], + styles: ['solid'], + label: 'Share' +}, { + name: 'share-alt', + search: ['forward', 'save', 'send', 'social'], + styles: ['solid'], + label: 'Alternate Share' +}, { + name: 'share-alt-square', + search: ['forward', 'save', 'send', 'social'], + styles: ['solid'], + label: 'Alternate Share Square' +}, { + name: 'share-square', + search: ['forward', 'save', 'send', 'social'], + styles: ['solid', 'regular'], + label: 'Share Square' +}, { + name: 'shekel-sign', + search: ['currency', 'ils', 'money'], + styles: ['solid'], + label: 'Shekel Sign' +}, { + name: 'shield-alt', + search: ['achievement', 'award', 'block', 'defend', 'security', 'winner'], + styles: ['solid'], + label: 'Alternate Shield' +}, { + name: 'shield-virus', + search: ['antibodies', 'barrier', 'covid-19', 'health', 'protect'], + styles: ['solid'], + label: 'Shield Virus' +}, { + name: 'ship', + search: ['boat', 'sea', 'water'], + styles: ['solid'], + label: 'Ship' +}, { + name: 'shipping-fast', + search: ['express', 'fedex', 'mail', 'overnight', 'package', 'ups'], + styles: ['solid'], + label: 'Shipping Fast' }, { - name: "shirtsinbulk", - search: [], - styles: ["brands"], - label: "Shirts in Bulk" + name: 'shirtsinbulk', + search: [], + styles: ['brands'], + label: 'Shirts in Bulk' }, { - name: "shoe-prints", - search: ["feet", "footprints", "steps", "walk"], - styles: ["solid"], - label: "Shoe Prints" + name: 'shoe-prints', + search: ['feet', 'footprints', 'steps', 'walk'], + styles: ['solid'], + label: 'Shoe Prints' }, { - name: "shopify", - search: [], - styles: ["brands"], - label: "Shopify" + name: 'shopify', + search: [], + styles: ['brands'], + label: 'Shopify' }, { - name: "shopping-bag", - search: ["buy", "checkout", "grocery", "payment", "purchase"], - styles: ["solid"], - label: "Shopping Bag" + name: 'shopping-bag', + search: ['buy', 'checkout', 'grocery', 'payment', 'purchase'], + styles: ['solid'], + label: 'Shopping Bag' }, { - name: "shopping-basket", - search: ["buy", "checkout", "grocery", "payment", "purchase"], - styles: ["solid"], - label: "Shopping Basket" -}, { - name: "shopping-cart", - search: ["buy", "checkout", "grocery", "payment", "purchase"], - styles: ["solid"], - label: "shopping-cart" -}, { - name: "shopware", - search: [], - styles: ["brands"], - label: "Shopware" + name: 'shopping-basket', + search: ['buy', 'checkout', 'grocery', 'payment', 'purchase'], + styles: ['solid'], + label: 'Shopping Basket' +}, { + name: 'shopping-cart', + search: ['buy', 'checkout', 'grocery', 'payment', 'purchase'], + styles: ['solid'], + label: 'shopping-cart' +}, { + name: 'shopware', + search: [], + styles: ['brands'], + label: 'Shopware' }, { - name: "shower", - search: ["bath", "clean", "faucet", "water"], - styles: ["solid"], - label: "Shower" + name: 'shower', + search: ['bath', 'clean', 'faucet', 'water'], + styles: ['solid'], + label: 'Shower' }, { - name: "shuttle-van", - search: ["airport", "machine", "public-transportation", "transportation", "travel", "vehicle"], - styles: ["solid"], - label: "Shuttle Van" + name: 'shuttle-van', + search: ['airport', 'machine', 'public-transportation', 'transportation', 'travel', 'vehicle'], + styles: ['solid'], + label: 'Shuttle Van' }, { - name: "sign", - search: ["directions", "real estate", "signage", "wayfinding"], - styles: ["solid"], - label: "Sign" -}, { - name: "sign-in-alt", - search: ["arrow", "enter", "join", "log in", "login", "sign in", "sign up", "sign-in", "signin", "signup"], - styles: ["solid"], - label: "Alternate Sign In" -}, { - name: "sign-language", - search: ["Translate", "asl", "deaf", "hands"], - styles: ["solid"], - label: "Sign Language" -}, { - name: "sign-out-alt", - search: ["arrow", "exit", "leave", "log out", "logout", "sign-out"], - styles: ["solid"], - label: "Alternate Sign Out" -}, { - name: "signal", - search: ["bars", "graph", "online", "reception", "status"], - styles: ["solid"], - label: "signal" + name: 'sign', + search: ['directions', 'real estate', 'signage', 'wayfinding'], + styles: ['solid'], + label: 'Sign' +}, { + name: 'sign-in-alt', + search: ['arrow', 'enter', 'join', 'log in', 'login', 'sign in', 'sign up', 'sign-in', 'signin', 'signup'], + styles: ['solid'], + label: 'Alternate Sign In' +}, { + name: 'sign-language', + search: ['Translate', 'asl', 'deaf', 'hands'], + styles: ['solid'], + label: 'Sign Language' +}, { + name: 'sign-out-alt', + search: ['arrow', 'exit', 'leave', 'log out', 'logout', 'sign-out'], + styles: ['solid'], + label: 'Alternate Sign Out' +}, { + name: 'signal', + search: ['bars', 'graph', 'online', 'reception', 'status'], + styles: ['solid'], + label: 'signal' }, { - name: "signature", - search: ["John Hancock", "cursive", "name", "writing"], - styles: ["solid"], - label: "Signature" + name: 'signature', + search: ['John Hancock', 'cursive', 'name', 'writing'], + styles: ['solid'], + label: 'Signature' }, { - name: "sim-card", - search: ["hard drive", "hardware", "portable", "storage", "technology", "tiny"], - styles: ["solid"], - label: "SIM Card" + name: 'sim-card', + search: ['hard drive', 'hardware', 'portable', 'storage', 'technology', 'tiny'], + styles: ['solid'], + label: 'SIM Card' }, { - name: "simplybuilt", - search: [], - styles: ["brands"], - label: "SimplyBuilt" + name: 'simplybuilt', + search: [], + styles: ['brands'], + label: 'SimplyBuilt' }, { - name: "sistrix", - search: [], - styles: ["brands"], - label: "SISTRIX" + name: 'sistrix', + search: [], + styles: ['brands'], + label: 'SISTRIX' }, { - name: "sitemap", - search: ["directory", "hierarchy", "ia", "information architecture", "organization"], - styles: ["solid"], - label: "Sitemap" + name: 'sitemap', + search: ['directory', 'hierarchy', 'ia', 'information architecture', 'organization'], + styles: ['solid'], + label: 'Sitemap' }, { - name: "sith", - search: [], - styles: ["brands"], - label: "Sith" + name: 'sith', + search: [], + styles: ['brands'], + label: 'Sith' }, { - name: "skating", - search: ["activity", "figure skating", "fitness", "ice", "person", "winter"], - styles: ["solid"], - label: "Skating" -}, { - name: "sketch", - search: ["app", "design", "interface"], - styles: ["brands"], - label: "Sketch" + name: 'skating', + search: ['activity', 'figure skating', 'fitness', 'ice', 'person', 'winter'], + styles: ['solid'], + label: 'Skating' +}, { + name: 'sketch', + search: ['app', 'design', 'interface'], + styles: ['brands'], + label: 'Sketch' }, { - name: "skiing", - search: ["activity", "downhill", "fast", "fitness", "olympics", "outdoors", "person", "seasonal", "slalom"], - styles: ["solid"], - label: "Skiing" + name: 'skiing', + search: ['activity', 'downhill', 'fast', 'fitness', 'olympics', 'outdoors', 'person', 'seasonal', 'slalom'], + styles: ['solid'], + label: 'Skiing' }, { - name: "skiing-nordic", - search: ["activity", "cross country", "fitness", "outdoors", "person", "seasonal"], - styles: ["solid"], - label: "Skiing Nordic" + name: 'skiing-nordic', + search: ['activity', 'cross country', 'fitness', 'outdoors', 'person', 'seasonal'], + styles: ['solid'], + label: 'Skiing Nordic' }, { - name: "skull", - search: ["bones", "skeleton", "x-ray", "yorick"], - styles: ["solid"], - label: "Skull" + name: 'skull', + search: ['bones', 'skeleton', 'x-ray', 'yorick'], + styles: ['solid'], + label: 'Skull' }, { - name: "skull-crossbones", - search: ["Dungeons & Dragons", "alert", "bones", "d&d", "danger", "dead", "deadly", "death", "dnd", "fantasy", "halloween", "holiday", "jolly-roger", "pirate", "poison", "skeleton", "warning"], - styles: ["solid"], - label: "Skull & Crossbones" + name: 'skull-crossbones', + search: ['Dungeons & Dragons', 'alert', 'bones', 'd&d', 'danger', 'dead', 'deadly', 'death', 'dnd', 'fantasy', 'halloween', 'holiday', 'jolly-roger', 'pirate', 'poison', 'skeleton', 'warning'], + styles: ['solid'], + label: 'Skull & Crossbones' }, { - name: "skyatlas", + name: 'skyatlas', search: [], - styles: ["brands"], - label: "skyatlas" + styles: ['brands'], + label: 'skyatlas' }, { - name: "skype", - search: [], - styles: ["brands"], - label: "Skype" + name: 'skype', + search: [], + styles: ['brands'], + label: 'Skype' }, { - name: "slack", - search: ["anchor", "hash", "hashtag"], - styles: ["brands"], - label: "Slack Logo" + name: 'slack', + search: ['anchor', 'hash', 'hashtag'], + styles: ['brands'], + label: 'Slack Logo' }, { - name: "slack-hash", - search: ["anchor", "hash", "hashtag"], - styles: ["brands"], - label: "Slack Hashtag" + name: 'slack-hash', + search: ['anchor', 'hash', 'hashtag'], + styles: ['brands'], + label: 'Slack Hashtag' }, { - name: "slash", - search: ["cancel", "close", "mute", "off", "stop", "x"], - styles: ["solid"], - label: "Slash" + name: 'slash', + search: ['cancel', 'close', 'mute', 'off', 'stop', 'x'], + styles: ['solid'], + label: 'Slash' }, { - name: "sleigh", - search: ["christmas", "claus", "fly", "holiday", "santa", "sled", "snow", "xmas"], - styles: ["solid"], - label: "Sleigh" + name: 'sleigh', + search: ['christmas', 'claus', 'fly', 'holiday', 'santa', 'sled', 'snow', 'xmas'], + styles: ['solid'], + label: 'Sleigh' }, { - name: "sliders-h", - search: ["adjust", "settings", "sliders", "toggle"], - styles: ["solid"], - label: "Horizontal Sliders" + name: 'sliders-h', + search: ['adjust', 'settings', 'sliders', 'toggle'], + styles: ['solid'], + label: 'Horizontal Sliders' }, { - name: "slideshare", - search: [], - styles: ["brands"], - label: "Slideshare" + name: 'slideshare', + search: [], + styles: ['brands'], + label: 'Slideshare' }, { - name: "smile", - search: ["approve", "emoticon", "face", "happy", "rating", "satisfied"], - styles: ["solid", "regular"], - label: "Smiling Face" + name: 'smile', + search: ['approve', 'emoticon', 'face', 'happy', 'rating', 'satisfied'], + styles: ['solid', 'regular'], + label: 'Smiling Face' }, { - name: "smile-beam", - search: ["emoticon", "face", "happy", "positive"], - styles: ["solid", "regular"], - label: "Beaming Face With Smiling Eyes" + name: 'smile-beam', + search: ['emoticon', 'face', 'happy', 'positive'], + styles: ['solid', 'regular'], + label: 'Beaming Face With Smiling Eyes' }, { - name: "smile-wink", - search: ["emoticon", "face", "happy", "hint", "joke"], - styles: ["solid", "regular"], - label: "Winking Face" -}, { - name: "smog", - search: ["dragon", "fog", "haze", "pollution", "smoke", "weather"], - styles: ["solid"], - label: "Smog" -}, { - name: "smoking", - search: ["cancer", "cigarette", "nicotine", "smoking status", "tobacco"], - styles: ["solid"], - label: "Smoking" -}, { - name: "smoking-ban", - search: ["ban", "cancel", "no smoking", "non-smoking"], - styles: ["solid"], - label: "Smoking Ban" -}, { - name: "sms", - search: ["chat", "conversation", "message", "mobile", "notification", "phone", "sms", "texting"], - styles: ["solid"], - label: "SMS" -}, { - name: "snapchat", - search: [], - styles: ["brands"], - label: "Snapchat" -}, { - name: "snapchat-ghost", - search: [], - styles: ["brands"], - label: "Snapchat Ghost" -}, { - name: "snapchat-square", - search: [], - styles: ["brands"], - label: "Snapchat Square" -}, { - name: "snowboarding", - search: ["activity", "fitness", "olympics", "outdoors", "person"], - styles: ["solid"], - label: "Snowboarding" -}, { - name: "snowflake", - search: ["precipitation", "rain", "winter"], - styles: ["solid", "regular"], - label: "Snowflake" -}, { - name: "snowman", - search: ["decoration", "frost", "frosty", "holiday"], - styles: ["solid"], - label: "Snowman" -}, { - name: "snowplow", - search: ["clean up", "cold", "road", "storm", "winter"], - styles: ["solid"], - label: "Snowplow" -}, { - name: "soap", - search: ["bubbles", "clean", "covid-19", "hygiene", "wash"], - styles: ["solid"], - label: "Soap" -}, { - name: "socks", - search: ["business socks", "business time", "clothing", "feet", "flight of the conchords", "wednesday"], - styles: ["solid"], - label: "Socks" -}, { - name: "solar-panel", - search: ["clean", "eco-friendly", "energy", "green", "sun"], - styles: ["solid"], - label: "Solar Panel" -}, { - name: "sort", - search: ["filter", "order"], - styles: ["solid"], - label: "Sort" -}, { - name: "sort-alpha-down", - search: ["alphabetical", "arrange", "filter", "order", "sort-alpha-asc"], - styles: ["solid"], - label: "Sort Alphabetical Down" -}, { - name: "sort-alpha-down-alt", - search: ["alphabetical", "arrange", "filter", "order", "sort-alpha-asc"], - styles: ["solid"], - label: "Alternate Sort Alphabetical Down" -}, { - name: "sort-alpha-up", - search: ["alphabetical", "arrange", "filter", "order", "sort-alpha-desc"], - styles: ["solid"], - label: "Sort Alphabetical Up" -}, { - name: "sort-alpha-up-alt", - search: ["alphabetical", "arrange", "filter", "order", "sort-alpha-desc"], - styles: ["solid"], - label: "Alternate Sort Alphabetical Up" -}, { - name: "sort-amount-down", - search: ["arrange", "filter", "number", "order", "sort-amount-asc"], - styles: ["solid"], - label: "Sort Amount Down" -}, { - name: "sort-amount-down-alt", - search: ["arrange", "filter", "order", "sort-amount-asc"], - styles: ["solid"], - label: "Alternate Sort Amount Down" -}, { - name: "sort-amount-up", - search: ["arrange", "filter", "order", "sort-amount-desc"], - styles: ["solid"], - label: "Sort Amount Up" -}, { - name: "sort-amount-up-alt", - search: ["arrange", "filter", "order", "sort-amount-desc"], - styles: ["solid"], - label: "Alternate Sort Amount Up" -}, { - name: "sort-down", - search: ["arrow", "descending", "filter", "order", "sort-desc"], - styles: ["solid"], - label: "Sort Down (Descending)" -}, { - name: "sort-numeric-down", - search: ["arrange", "filter", "numbers", "order", "sort-numeric-asc"], - styles: ["solid"], - label: "Sort Numeric Down" -}, { - name: "sort-numeric-down-alt", - search: ["arrange", "filter", "numbers", "order", "sort-numeric-asc"], - styles: ["solid"], - label: "Alternate Sort Numeric Down" -}, { - name: "sort-numeric-up", - search: ["arrange", "filter", "numbers", "order", "sort-numeric-desc"], - styles: ["solid"], - label: "Sort Numeric Up" -}, { - name: "sort-numeric-up-alt", - search: ["arrange", "filter", "numbers", "order", "sort-numeric-desc"], - styles: ["solid"], - label: "Alternate Sort Numeric Up" + name: 'smile-wink', + search: ['emoticon', 'face', 'happy', 'hint', 'joke'], + styles: ['solid', 'regular'], + label: 'Winking Face' +}, { + name: 'smog', + search: ['dragon', 'fog', 'haze', 'pollution', 'smoke', 'weather'], + styles: ['solid'], + label: 'Smog' +}, { + name: 'smoking', + search: ['cancer', 'cigarette', 'nicotine', 'smoking status', 'tobacco'], + styles: ['solid'], + label: 'Smoking' +}, { + name: 'smoking-ban', + search: ['ban', 'cancel', 'no smoking', 'non-smoking'], + styles: ['solid'], + label: 'Smoking Ban' +}, { + name: 'sms', + search: ['chat', 'conversation', 'message', 'mobile', 'notification', 'phone', 'sms', 'texting'], + styles: ['solid'], + label: 'SMS' +}, { + name: 'snapchat', + search: [], + styles: ['brands'], + label: 'Snapchat' +}, { + name: 'snapchat-ghost', + search: [], + styles: ['brands'], + label: 'Snapchat Ghost' +}, { + name: 'snapchat-square', + search: [], + styles: ['brands'], + label: 'Snapchat Square' +}, { + name: 'snowboarding', + search: ['activity', 'fitness', 'olympics', 'outdoors', 'person'], + styles: ['solid'], + label: 'Snowboarding' +}, { + name: 'snowflake', + search: ['precipitation', 'rain', 'winter'], + styles: ['solid', 'regular'], + label: 'Snowflake' +}, { + name: 'snowman', + search: ['decoration', 'frost', 'frosty', 'holiday'], + styles: ['solid'], + label: 'Snowman' +}, { + name: 'snowplow', + search: ['clean up', 'cold', 'road', 'storm', 'winter'], + styles: ['solid'], + label: 'Snowplow' +}, { + name: 'soap', + search: ['bubbles', 'clean', 'covid-19', 'hygiene', 'wash'], + styles: ['solid'], + label: 'Soap' +}, { + name: 'socks', + search: ['business socks', 'business time', 'clothing', 'feet', 'flight of the conchords', 'wednesday'], + styles: ['solid'], + label: 'Socks' +}, { + name: 'solar-panel', + search: ['clean', 'eco-friendly', 'energy', 'green', 'sun'], + styles: ['solid'], + label: 'Solar Panel' +}, { + name: 'sort', + search: ['filter', 'order'], + styles: ['solid'], + label: 'Sort' +}, { + name: 'sort-alpha-down', + search: ['alphabetical', 'arrange', 'filter', 'order', 'sort-alpha-asc'], + styles: ['solid'], + label: 'Sort Alphabetical Down' +}, { + name: 'sort-alpha-down-alt', + search: ['alphabetical', 'arrange', 'filter', 'order', 'sort-alpha-asc'], + styles: ['solid'], + label: 'Alternate Sort Alphabetical Down' +}, { + name: 'sort-alpha-up', + search: ['alphabetical', 'arrange', 'filter', 'order', 'sort-alpha-desc'], + styles: ['solid'], + label: 'Sort Alphabetical Up' +}, { + name: 'sort-alpha-up-alt', + search: ['alphabetical', 'arrange', 'filter', 'order', 'sort-alpha-desc'], + styles: ['solid'], + label: 'Alternate Sort Alphabetical Up' +}, { + name: 'sort-amount-down', + search: ['arrange', 'filter', 'number', 'order', 'sort-amount-asc'], + styles: ['solid'], + label: 'Sort Amount Down' +}, { + name: 'sort-amount-down-alt', + search: ['arrange', 'filter', 'order', 'sort-amount-asc'], + styles: ['solid'], + label: 'Alternate Sort Amount Down' +}, { + name: 'sort-amount-up', + search: ['arrange', 'filter', 'order', 'sort-amount-desc'], + styles: ['solid'], + label: 'Sort Amount Up' +}, { + name: 'sort-amount-up-alt', + search: ['arrange', 'filter', 'order', 'sort-amount-desc'], + styles: ['solid'], + label: 'Alternate Sort Amount Up' +}, { + name: 'sort-down', + search: ['arrow', 'descending', 'filter', 'order', 'sort-desc'], + styles: ['solid'], + label: 'Sort Down (Descending)' +}, { + name: 'sort-numeric-down', + search: ['arrange', 'filter', 'numbers', 'order', 'sort-numeric-asc'], + styles: ['solid'], + label: 'Sort Numeric Down' +}, { + name: 'sort-numeric-down-alt', + search: ['arrange', 'filter', 'numbers', 'order', 'sort-numeric-asc'], + styles: ['solid'], + label: 'Alternate Sort Numeric Down' +}, { + name: 'sort-numeric-up', + search: ['arrange', 'filter', 'numbers', 'order', 'sort-numeric-desc'], + styles: ['solid'], + label: 'Sort Numeric Up' +}, { + name: 'sort-numeric-up-alt', + search: ['arrange', 'filter', 'numbers', 'order', 'sort-numeric-desc'], + styles: ['solid'], + label: 'Alternate Sort Numeric Up' }, { - name: "sort-up", - search: ["arrow", "ascending", "filter", "order", "sort-asc"], - styles: ["solid"], - label: "Sort Up (Ascending)" + name: 'sort-up', + search: ['arrow', 'ascending', 'filter', 'order', 'sort-asc'], + styles: ['solid'], + label: 'Sort Up (Ascending)' }, { - name: "soundcloud", - search: [], - styles: ["brands"], - label: "SoundCloud" + name: 'soundcloud', + search: [], + styles: ['brands'], + label: 'SoundCloud' }, { - name: "sourcetree", - search: [], - styles: ["brands"], - label: "Sourcetree" + name: 'sourcetree', + search: [], + styles: ['brands'], + label: 'Sourcetree' }, { - name: "spa", - search: ["flora", "massage", "mindfulness", "plant", "wellness"], - styles: ["solid"], - label: "Spa" + name: 'spa', + search: ['flora', 'massage', 'mindfulness', 'plant', 'wellness'], + styles: ['solid'], + label: 'Spa' }, { - name: "space-shuttle", - search: ["astronaut", "machine", "nasa", "rocket", "space", "transportation"], - styles: ["solid"], - label: "Space Shuttle" + name: 'space-shuttle', + search: ['astronaut', 'machine', 'nasa', 'rocket', 'space', 'transportation'], + styles: ['solid'], + label: 'Space Shuttle' }, { - name: "speakap", - search: [], - styles: ["brands"], - label: "Speakap" + name: 'speakap', + search: [], + styles: ['brands'], + label: 'Speakap' }, { - name: "speaker-deck", - search: [], - styles: ["brands"], - label: "Speaker Deck" + name: 'speaker-deck', + search: [], + styles: ['brands'], + label: 'Speaker Deck' }, { - name: "spell-check", - search: ["dictionary", "edit", "editor", "grammar", "text"], - styles: ["solid"], - label: "Spell Check" + name: 'spell-check', + search: ['dictionary', 'edit', 'editor', 'grammar', 'text'], + styles: ['solid'], + label: 'Spell Check' }, { - name: "spider", - search: ["arachnid", "bug", "charlotte", "crawl", "eight", "halloween"], - styles: ["solid"], - label: "Spider" + name: 'spider', + search: ['arachnid', 'bug', 'charlotte', 'crawl', 'eight', 'halloween'], + styles: ['solid'], + label: 'Spider' }, { - name: "spinner", - search: ["circle", "loading", "progress"], - styles: ["solid"], - label: "Spinner" + name: 'spinner', + search: ['circle', 'loading', 'progress'], + styles: ['solid'], + label: 'Spinner' }, { - name: "splotch", - search: ["Ink", "blob", "blotch", "glob", "stain"], - styles: ["solid"], - label: "Splotch" + name: 'splotch', + search: ['Ink', 'blob', 'blotch', 'glob', 'stain'], + styles: ['solid'], + label: 'Splotch' }, { - name: "spotify", + name: 'spotify', search: [], - styles: ["brands"], - label: "Spotify" + styles: ['brands'], + label: 'Spotify' }, { - name: "spray-can", - search: ["Paint", "aerosol", "design", "graffiti", "tag"], - styles: ["solid"], - label: "Spray Can" + name: 'spray-can', + search: ['Paint', 'aerosol', 'design', 'graffiti', 'tag'], + styles: ['solid'], + label: 'Spray Can' }, { - name: "square", - search: ["block", "box", "shape"], - styles: ["solid", "regular"], - label: "Square" + name: 'square', + search: ['block', 'box', 'shape'], + styles: ['solid', 'regular'], + label: 'Square' }, { - name: "square-full", - search: ["block", "box", "shape"], - styles: ["solid"], - label: "Square Full" + name: 'square-full', + search: ['block', 'box', 'shape'], + styles: ['solid'], + label: 'Square Full' }, { - name: "square-root-alt", - search: ["arithmetic", "calculus", "division", "math"], - styles: ["solid"], - label: "Alternate Square Root" + name: 'square-root-alt', + search: ['arithmetic', 'calculus', 'division', 'math'], + styles: ['solid'], + label: 'Alternate Square Root' }, { - name: "squarespace", + name: 'squarespace', search: [], - styles: ["brands"], - label: "Squarespace" + styles: ['brands'], + label: 'Squarespace' }, { - name: "stack-exchange", + name: 'stack-exchange', search: [], - styles: ["brands"], - label: "Stack Exchange" + styles: ['brands'], + label: 'Stack Exchange' }, { - name: "stack-overflow", + name: 'stack-overflow', search: [], - styles: ["brands"], - label: "Stack Overflow" + styles: ['brands'], + label: 'Stack Overflow' }, { - name: "stackpath", + name: 'stackpath', search: [], - styles: ["brands"], - label: "Stackpath" + styles: ['brands'], + label: 'Stackpath' }, { - name: "stamp", - search: ["art", "certificate", "imprint", "rubber", "seal"], - styles: ["solid"], - label: "Stamp" + name: 'stamp', + search: ['art', 'certificate', 'imprint', 'rubber', 'seal'], + styles: ['solid'], + label: 'Stamp' }, { - name: "star", - search: ["achievement", "award", "favorite", "important", "night", "rating", "score"], - styles: ["solid", "regular"], - label: "Star" + name: 'star', + search: ['achievement', 'award', 'favorite', 'important', 'night', 'rating', 'score'], + styles: ['solid', 'regular'], + label: 'Star' }, { - name: "star-and-crescent", - search: ["islam", "muslim", "religion"], - styles: ["solid"], - label: "Star and Crescent" + name: 'star-and-crescent', + search: ['islam', 'muslim', 'religion'], + styles: ['solid'], + label: 'Star and Crescent' }, { - name: "star-half", - search: ["achievement", "award", "rating", "score", "star-half-empty", "star-half-full"], - styles: ["solid", "regular"], - label: "star-half" + name: 'star-half', + search: ['achievement', 'award', 'rating', 'score', 'star-half-empty', 'star-half-full'], + styles: ['solid', 'regular'], + label: 'star-half' }, { - name: "star-half-alt", - search: ["achievement", "award", "rating", "score", "star-half-empty", "star-half-full"], - styles: ["solid"], - label: "Alternate Star Half" + name: 'star-half-alt', + search: ['achievement', 'award', 'rating', 'score', 'star-half-empty', 'star-half-full'], + styles: ['solid'], + label: 'Alternate Star Half' }, { - name: "star-of-david", - search: ["jewish", "judaism", "religion"], - styles: ["solid"], - label: "Star of David" + name: 'star-of-david', + search: ['jewish', 'judaism', 'religion'], + styles: ['solid'], + label: 'Star of David' }, { - name: "star-of-life", - search: ["doctor", "emt", "first aid", "health", "medical"], - styles: ["solid"], - label: "Star of Life" + name: 'star-of-life', + search: ['doctor', 'emt', 'first aid', 'health', 'medical'], + styles: ['solid'], + label: 'Star of Life' }, { - name: "staylinked", + name: 'staylinked', search: [], - styles: ["brands"], - label: "StayLinked" + styles: ['brands'], + label: 'StayLinked' }, { - name: "steam", + name: 'steam', search: [], - styles: ["brands"], - label: "Steam" + styles: ['brands'], + label: 'Steam' }, { - name: "steam-square", + name: 'steam-square', search: [], - styles: ["brands"], - label: "Steam Square" + styles: ['brands'], + label: 'Steam Square' }, { - name: "steam-symbol", + name: 'steam-symbol', search: [], - styles: ["brands"], - label: "Steam Symbol" + styles: ['brands'], + label: 'Steam Symbol' }, { - name: "step-backward", - search: ["beginning", "first", "previous", "rewind", "start"], - styles: ["solid"], - label: "step-backward" + name: 'step-backward', + search: ['beginning', 'first', 'previous', 'rewind', 'start'], + styles: ['solid'], + label: 'step-backward' }, { - name: "step-forward", - search: ["end", "last", "next"], - styles: ["solid"], - label: "step-forward" + name: 'step-forward', + search: ['end', 'last', 'next'], + styles: ['solid'], + label: 'step-forward' }, { - name: "stethoscope", - search: ["covid-19", "diagnosis", "doctor", "general practitioner", "hospital", "infirmary", "medicine", "office", "outpatient"], - styles: ["solid"], - label: "Stethoscope" + name: 'stethoscope', + search: ['covid-19', 'diagnosis', 'doctor', 'general practitioner', 'hospital', 'infirmary', 'medicine', 'office', 'outpatient'], + styles: ['solid'], + label: 'Stethoscope' }, { - name: "sticker-mule", + name: 'sticker-mule', search: [], - styles: ["brands"], - label: "Sticker Mule" + styles: ['brands'], + label: 'Sticker Mule' }, { - name: "sticky-note", - search: ["message", "note", "paper", "reminder", "sticker"], - styles: ["solid", "regular"], - label: "Sticky Note" + name: 'sticky-note', + search: ['message', 'note', 'paper', 'reminder', 'sticker'], + styles: ['solid', 'regular'], + label: 'Sticky Note' }, { - name: "stop", - search: ["block", "box", "square"], - styles: ["solid"], - label: "stop" + name: 'stop', + search: ['block', 'box', 'square'], + styles: ['solid'], + label: 'stop' }, { - name: "stop-circle", - search: ["block", "box", "circle", "square"], - styles: ["solid", "regular"], - label: "Stop Circle" + name: 'stop-circle', + search: ['block', 'box', 'circle', 'square'], + styles: ['solid', 'regular'], + label: 'Stop Circle' }, { - name: "stopwatch", - search: ["clock", "reminder", "time"], - styles: ["solid"], - label: "Stopwatch" + name: 'stopwatch', + search: ['clock', 'reminder', 'time'], + styles: ['solid'], + label: 'Stopwatch' }, { - name: "stopwatch-20", - search: ["ABCs", "countdown", "covid-19", "happy birthday", "i will survive", "reminder", "seconds", "time", "timer"], - styles: ["solid"], - label: "Stopwatch 20" + name: 'stopwatch-20', + search: ['ABCs', 'countdown', 'covid-19', 'happy birthday', 'i will survive', 'reminder', 'seconds', 'time', 'timer'], + styles: ['solid'], + label: 'Stopwatch 20' }, { - name: "store", - search: ["building", "buy", "purchase", "shopping"], - styles: ["solid"], - label: "Store" + name: 'store', + search: ['building', 'buy', 'purchase', 'shopping'], + styles: ['solid'], + label: 'Store' }, { - name: "store-alt", - search: ["building", "buy", "purchase", "shopping"], - styles: ["solid"], - label: "Alternate Store" + name: 'store-alt', + search: ['building', 'buy', 'purchase', 'shopping'], + styles: ['solid'], + label: 'Alternate Store' }, { - name: "store-alt-slash", - search: ["building", "buy", "closed", "covid-19", "purchase", "shopping"], - styles: ["solid"], - label: "Alternate Store Slash" + name: 'store-alt-slash', + search: ['building', 'buy', 'closed', 'covid-19', 'purchase', 'shopping'], + styles: ['solid'], + label: 'Alternate Store Slash' }, { - name: "store-slash", - search: ["building", "buy", "closed", "covid-19", "purchase", "shopping"], - styles: ["solid"], - label: "Store Slash" + name: 'store-slash', + search: ['building', 'buy', 'closed', 'covid-19', 'purchase', 'shopping'], + styles: ['solid'], + label: 'Store Slash' }, { - name: "strava", + name: 'strava', search: [], - styles: ["brands"], - label: "Strava" + styles: ['brands'], + label: 'Strava' }, { - name: "stream", - search: ["flow", "list", "timeline"], - styles: ["solid"], - label: "Stream" + name: 'stream', + search: ['flow', 'list', 'timeline'], + styles: ['solid'], + label: 'Stream' }, { - name: "street-view", - search: ["directions", "location", "map", "navigation"], - styles: ["solid"], - label: "Street View" + name: 'street-view', + search: ['directions', 'location', 'map', 'navigation'], + styles: ['solid'], + label: 'Street View' }, { - name: "strikethrough", - search: ["cancel", "edit", "font", "format", "text", "type"], - styles: ["solid"], - label: "Strikethrough" + name: 'strikethrough', + search: ['cancel', 'edit', 'font', 'format', 'text', 'type'], + styles: ['solid'], + label: 'Strikethrough' }, { - name: "stripe", + name: 'stripe', search: [], - styles: ["brands"], - label: "Stripe" + styles: ['brands'], + label: 'Stripe' }, { - name: "stripe-s", + name: 'stripe-s', search: [], - styles: ["brands"], - label: "Stripe S" + styles: ['brands'], + label: 'Stripe S' }, { - name: "stroopwafel", - search: ["caramel", "cookie", "dessert", "sweets", "waffle"], - styles: ["solid"], - label: "Stroopwafel" + name: 'stroopwafel', + search: ['caramel', 'cookie', 'dessert', 'sweets', 'waffle'], + styles: ['solid'], + label: 'Stroopwafel' }, { - name: "studiovinari", + name: 'studiovinari', search: [], - styles: ["brands"], - label: "Studio Vinari" + styles: ['brands'], + label: 'Studio Vinari' }, { - name: "stumbleupon", + name: 'stumbleupon', search: [], - styles: ["brands"], - label: "StumbleUpon Logo" + styles: ['brands'], + label: 'StumbleUpon Logo' }, { - name: "stumbleupon-circle", + name: 'stumbleupon-circle', search: [], - styles: ["brands"], - label: "StumbleUpon Circle" + styles: ['brands'], + label: 'StumbleUpon Circle' }, { - name: "subscript", - search: ["edit", "font", "format", "text", "type"], - styles: ["solid"], - label: "subscript" + name: 'subscript', + search: ['edit', 'font', 'format', 'text', 'type'], + styles: ['solid'], + label: 'subscript' }, { - name: "subway", - search: ["machine", "railway", "train", "transportation", "vehicle"], - styles: ["solid"], - label: "Subway" + name: 'subway', + search: ['machine', 'railway', 'train', 'transportation', 'vehicle'], + styles: ['solid'], + label: 'Subway' }, { - name: "suitcase", - search: ["baggage", "luggage", "move", "suitcase", "travel", "trip"], - styles: ["solid"], - label: "Suitcase" + name: 'suitcase', + search: ['baggage', 'luggage', 'move', 'suitcase', 'travel', 'trip'], + styles: ['solid'], + label: 'Suitcase' }, { - name: "suitcase-rolling", - search: ["baggage", "luggage", "move", "suitcase", "travel", "trip"], - styles: ["solid"], - label: "Suitcase Rolling" + name: 'suitcase-rolling', + search: ['baggage', 'luggage', 'move', 'suitcase', 'travel', 'trip'], + styles: ['solid'], + label: 'Suitcase Rolling' }, { - name: "sun", - search: ["brighten", "contrast", "day", "lighter", "sol", "solar", "star", "weather"], - styles: ["solid", "regular"], - label: "Sun" + name: 'sun', + search: ['brighten', 'contrast', 'day', 'lighter', 'sol', 'solar', 'star', 'weather'], + styles: ['solid', 'regular'], + label: 'Sun' }, { - name: "superpowers", + name: 'superpowers', search: [], - styles: ["brands"], - label: "Superpowers" + styles: ['brands'], + label: 'Superpowers' }, { - name: "superscript", - search: ["edit", "exponential", "font", "format", "text", "type"], - styles: ["solid"], - label: "superscript" + name: 'superscript', + search: ['edit', 'exponential', 'font', 'format', 'text', 'type'], + styles: ['solid'], + label: 'superscript' }, { - name: "supple", + name: 'supple', search: [], - styles: ["brands"], - label: "Supple" + styles: ['brands'], + label: 'Supple' }, { - name: "surprise", - search: ["emoticon", "face", "shocked"], - styles: ["solid", "regular"], - label: "Hushed Face" + name: 'surprise', + search: ['emoticon', 'face', 'shocked'], + styles: ['solid', 'regular'], + label: 'Hushed Face' }, { - name: "suse", - search: ["linux", "operating system", "os"], - styles: ["brands"], - label: "Suse" + name: 'suse', + search: ['linux', 'operating system', 'os'], + styles: ['brands'], + label: 'Suse' }, { - name: "swatchbook", - search: ["Pantone", "color", "design", "hue", "palette"], - styles: ["solid"], - label: "Swatchbook" + name: 'swatchbook', + search: ['Pantone', 'color', 'design', 'hue', 'palette'], + styles: ['solid'], + label: 'Swatchbook' }, { - name: "swift", + name: 'swift', search: [], - styles: ["brands"], - label: "Swift" + styles: ['brands'], + label: 'Swift' }, { - name: "swimmer", - search: ["athlete", "head", "man", "olympics", "person", "pool", "water"], - styles: ["solid"], - label: "Swimmer" + name: 'swimmer', + search: ['athlete', 'head', 'man', 'olympics', 'person', 'pool', 'water'], + styles: ['solid'], + label: 'Swimmer' }, { - name: "swimming-pool", - search: ["ladder", "recreation", "swim", "water"], - styles: ["solid"], - label: "Swimming Pool" + name: 'swimming-pool', + search: ['ladder', 'recreation', 'swim', 'water'], + styles: ['solid'], + label: 'Swimming Pool' }, { - name: "symfony", + name: 'symfony', search: [], - styles: ["brands"], - label: "Symfony" + styles: ['brands'], + label: 'Symfony' }, { - name: "synagogue", - search: ["building", "jewish", "judaism", "religion", "star of david", "temple"], - styles: ["solid"], - label: "Synagogue" + name: 'synagogue', + search: ['building', 'jewish', 'judaism', 'religion', 'star of david', 'temple'], + styles: ['solid'], + label: 'Synagogue' }, { - name: "sync", - search: ["exchange", "refresh", "reload", "rotate", "swap"], - styles: ["solid"], - label: "Sync" + name: 'sync', + search: ['exchange', 'refresh', 'reload', 'rotate', 'swap'], + styles: ['solid'], + label: 'Sync' }, { - name: "sync-alt", - search: ["exchange", "refresh", "reload", "rotate", "swap"], - styles: ["solid"], - label: "Alternate Sync" + name: 'sync-alt', + search: ['exchange', 'refresh', 'reload', 'rotate', 'swap'], + styles: ['solid'], + label: 'Alternate Sync' }, { - name: "syringe", - search: ["covid-19", "doctor", "immunizations", "medical", "needle"], - styles: ["solid"], - label: "Syringe" + name: 'syringe', + search: ['covid-19', 'doctor', 'immunizations', 'medical', 'needle'], + styles: ['solid'], + label: 'Syringe' }, { - name: "table", - search: ["data", "excel", "spreadsheet"], - styles: ["solid"], - label: "table" -}, { - name: "table-tennis", - search: ["ball", "paddle", "ping pong"], - styles: ["solid"], - label: "Table Tennis" -}, { - name: "tablet", - search: ["apple", "device", "ipad", "kindle", "screen"], - styles: ["solid"], - label: "tablet" -}, { - name: "tablet-alt", - search: ["apple", "device", "ipad", "kindle", "screen"], - styles: ["solid"], - label: "Alternate Tablet" -}, { - name: "tablets", - search: ["drugs", "medicine", "pills", "prescription"], - styles: ["solid"], - label: "Tablets" -}, { - name: "tachometer-alt", - search: ["dashboard", "fast", "odometer", "speed", "speedometer"], - styles: ["solid"], - label: "Alternate Tachometer" -}, { - name: "tag", - search: ["discount", "label", "price", "shopping"], - styles: ["solid"], - label: "tag" -}, { - name: "tags", - search: ["discount", "label", "price", "shopping"], - styles: ["solid"], - label: "tags" -}, { - name: "tape", - search: ["design", "package", "sticky"], - styles: ["solid"], - label: "Tape" -}, { - name: "tasks", - search: ["checklist", "downloading", "downloads", "loading", "progress", "project management", "settings", "to do"], - styles: ["solid"], - label: "Tasks" + name: 'table', + search: ['data', 'excel', 'spreadsheet'], + styles: ['solid'], + label: 'table' +}, { + name: 'table-tennis', + search: ['ball', 'paddle', 'ping pong'], + styles: ['solid'], + label: 'Table Tennis' +}, { + name: 'tablet', + search: ['apple', 'device', 'ipad', 'kindle', 'screen'], + styles: ['solid'], + label: 'tablet' +}, { + name: 'tablet-alt', + search: ['apple', 'device', 'ipad', 'kindle', 'screen'], + styles: ['solid'], + label: 'Alternate Tablet' +}, { + name: 'tablets', + search: ['drugs', 'medicine', 'pills', 'prescription'], + styles: ['solid'], + label: 'Tablets' +}, { + name: 'tachometer-alt', + search: ['dashboard', 'fast', 'odometer', 'speed', 'speedometer'], + styles: ['solid'], + label: 'Alternate Tachometer' +}, { + name: 'tag', + search: ['discount', 'label', 'price', 'shopping'], + styles: ['solid'], + label: 'tag' +}, { + name: 'tags', + search: ['discount', 'label', 'price', 'shopping'], + styles: ['solid'], + label: 'tags' +}, { + name: 'tape', + search: ['design', 'package', 'sticky'], + styles: ['solid'], + label: 'Tape' +}, { + name: 'tasks', + search: ['checklist', 'downloading', 'downloads', 'loading', 'progress', 'project management', 'settings', 'to do'], + styles: ['solid'], + label: 'Tasks' }, { - name: "taxi", - search: ["cab", "cabbie", "car", "car service", "lyft", "machine", "transportation", "travel", "uber", "vehicle"], - styles: ["solid"], - label: "Taxi" + name: 'taxi', + search: ['cab', 'cabbie', 'car', 'car service', 'lyft', 'machine', 'transportation', 'travel', 'uber', 'vehicle'], + styles: ['solid'], + label: 'Taxi' }, { - name: "teamspeak", - search: [], - styles: ["brands"], - label: "TeamSpeak" + name: 'teamspeak', + search: [], + styles: ['brands'], + label: 'TeamSpeak' }, { - name: "teeth", - search: ["bite", "dental", "dentist", "gums", "mouth", "smile", "tooth"], - styles: ["solid"], - label: "Teeth" -}, { - name: "teeth-open", - search: ["dental", "dentist", "gums bite", "mouth", "smile", "tooth"], - styles: ["solid"], - label: "Teeth Open" -}, { - name: "telegram", - search: [], - styles: ["brands"], - label: "Telegram" -}, { - name: "telegram-plane", - search: [], - styles: ["brands"], - label: "Telegram Plane" -}, { - name: "temperature-high", - search: ["cook", "covid-19", "mercury", "summer", "thermometer", "warm"], - styles: ["solid"], - label: "High Temperature" -}, { - name: "temperature-low", - search: ["cold", "cool", "covid-19", "mercury", "thermometer", "winter"], - styles: ["solid"], - label: "Low Temperature" -}, { - name: "tencent-weibo", - search: [], - styles: ["brands"], - label: "Tencent Weibo" -}, { - name: "tenge", - search: ["currency", "kazakhstan", "money", "price"], - styles: ["solid"], - label: "Tenge" -}, { - name: "terminal", - search: ["code", "command", "console", "development", "prompt"], - styles: ["solid"], - label: "Terminal" -}, { - name: "text-height", - search: ["edit", "font", "format", "text", "type"], - styles: ["solid"], - label: "text-height" -}, { - name: "text-width", - search: ["edit", "font", "format", "text", "type"], - styles: ["solid"], - label: "Text Width" -}, { - name: "th", - search: ["blocks", "boxes", "grid", "squares"], - styles: ["solid"], - label: "th" -}, { - name: "th-large", - search: ["blocks", "boxes", "grid", "squares"], - styles: ["solid"], - label: "th-large" -}, { - name: "th-list", - search: ["checklist", "completed", "done", "finished", "ol", "todo", "ul"], - styles: ["solid"], - label: "th-list" -}, { - name: "the-red-yeti", - search: [], - styles: ["brands"], - label: "The Red Yeti" -}, { - name: "theater-masks", - search: ["comedy", "perform", "theatre", "tragedy"], - styles: ["solid"], - label: "Theater Masks" -}, { - name: "themeco", - search: [], - styles: ["brands"], - label: "Themeco" -}, { - name: "themeisle", - search: [], - styles: ["brands"], - label: "ThemeIsle" -}, { - name: "thermometer", - search: ["covid-19", "mercury", "status", "temperature"], - styles: ["solid"], - label: "Thermometer" -}, { - name: "thermometer-empty", - search: ["cold", "mercury", "status", "temperature"], - styles: ["solid"], - label: "Thermometer Empty" -}, { - name: "thermometer-full", - search: ["fever", "hot", "mercury", "status", "temperature"], - styles: ["solid"], - label: "Thermometer Full" -}, { - name: "thermometer-half", - search: ["mercury", "status", "temperature"], - styles: ["solid"], - label: "Thermometer 1/2 Full" -}, { - name: "thermometer-quarter", - search: ["mercury", "status", "temperature"], - styles: ["solid"], - label: "Thermometer 1/4 Full" -}, { - name: "thermometer-three-quarters", - search: ["mercury", "status", "temperature"], - styles: ["solid"], - label: "Thermometer 3/4 Full" -}, { - name: "think-peaks", - search: [], - styles: ["brands"], - label: "Think Peaks" -}, { - name: "thumbs-down", - search: ["disagree", "disapprove", "dislike", "hand", "social", "thumbs-o-down"], - styles: ["solid", "regular"], - label: "thumbs-down" -}, { - name: "thumbs-up", - search: ["agree", "approve", "favorite", "hand", "like", "ok", "okay", "social", "success", "thumbs-o-up", "yes", "you got it dude"], - styles: ["solid", "regular"], - label: "thumbs-up" -}, { - name: "thumbtack", - search: ["coordinates", "location", "marker", "pin", "thumb-tack"], - styles: ["solid"], - label: "Thumbtack" -}, { - name: "ticket-alt", - search: ["movie", "pass", "support", "ticket"], - styles: ["solid"], - label: "Alternate Ticket" -}, { - name: "times", - search: ["close", "cross", "error", "exit", "incorrect", "notice", "notification", "notify", "problem", "wrong", "x"], - styles: ["solid"], - label: "Times" -}, { - name: "times-circle", - search: ["close", "cross", "exit", "incorrect", "notice", "notification", "notify", "problem", "wrong", "x"], - styles: ["solid", "regular"], - label: "Times Circle" -}, { - name: "tint", - search: ["color", "drop", "droplet", "raindrop", "waterdrop"], - styles: ["solid"], - label: "tint" -}, { - name: "tint-slash", - search: ["color", "drop", "droplet", "raindrop", "waterdrop"], - styles: ["solid"], - label: "Tint Slash" -}, { - name: "tired", - search: ["angry", "emoticon", "face", "grumpy", "upset"], - styles: ["solid", "regular"], - label: "Tired Face" -}, { - name: "toggle-off", - search: ["switch"], - styles: ["solid"], - label: "Toggle Off" -}, { - name: "toggle-on", - search: ["switch"], - styles: ["solid"], - label: "Toggle On" -}, { - name: "toilet", - search: ["bathroom", "flush", "john", "loo", "pee", "plumbing", "poop", "porcelain", "potty", "restroom", "throne", "washroom", "waste", "wc"], - styles: ["solid"], - label: "Toilet" -}, { - name: "toilet-paper", - search: ["bathroom", "covid-19", "halloween", "holiday", "lavatory", "prank", "restroom", "roll"], - styles: ["solid"], - label: "Toilet Paper" -}, { - name: "toilet-paper-slash", - search: ["bathroom", "covid-19", "halloween", "holiday", "lavatory", "leaves", "prank", "restroom", "roll", "trouble", "ut oh"], - styles: ["solid"], - label: "Toilet Paper Slash" -}, { - name: "toolbox", - search: ["admin", "container", "fix", "repair", "settings", "tools"], - styles: ["solid"], - label: "Toolbox" -}, { - name: "tools", - search: ["admin", "fix", "repair", "screwdriver", "settings", "tools", "wrench"], - styles: ["solid"], - label: "Tools" -}, { - name: "tooth", - search: ["bicuspid", "dental", "dentist", "molar", "mouth", "teeth"], - styles: ["solid"], - label: "Tooth" -}, { - name: "torah", - search: ["book", "jewish", "judaism", "religion", "scroll"], - styles: ["solid"], - label: "Torah" -}, { - name: "torii-gate", - search: ["building", "shintoism"], - styles: ["solid"], - label: "Torii Gate" -}, { - name: "tractor", - search: ["agriculture", "farm", "vehicle"], - styles: ["solid"], - label: "Tractor" -}, { - name: "trade-federation", - search: [], - styles: ["brands"], - label: "Trade Federation" -}, { - name: "trademark", - search: ["copyright", "register", "symbol"], - styles: ["solid"], - label: "Trademark" -}, { - name: "traffic-light", - search: ["direction", "road", "signal", "travel"], - styles: ["solid"], - label: "Traffic Light" -}, { - name: "trailer", - search: ["carry", "haul", "moving", "travel"], - styles: ["solid"], - label: "Trailer" -}, { - name: "train", - search: ["bullet", "commute", "locomotive", "railway", "subway"], - styles: ["solid"], - label: "Train" -}, { - name: "tram", - search: ["crossing", "machine", "mountains", "seasonal", "transportation"], - styles: ["solid"], - label: "Tram" -}, { - name: "transgender", - search: ["intersex"], - styles: ["solid"], - label: "Transgender" -}, { - name: "transgender-alt", - search: ["intersex"], - styles: ["solid"], - label: "Alternate Transgender" -}, { - name: "trash", - search: ["delete", "garbage", "hide", "remove"], - styles: ["solid"], - label: "Trash" -}, { - name: "trash-alt", - search: ["delete", "garbage", "hide", "remove", "trash-o"], - styles: ["solid", "regular"], - label: "Alternate Trash" -}, { - name: "trash-restore", - search: ["back", "control z", "oops", "undo"], - styles: ["solid"], - label: "Trash Restore" -}, { - name: "trash-restore-alt", - search: ["back", "control z", "oops", "undo"], - styles: ["solid"], - label: "Alternative Trash Restore" -}, { - name: "tree", - search: ["bark", "fall", "flora", "forest", "nature", "plant", "seasonal"], - styles: ["solid"], - label: "Tree" -}, { - name: "trello", - search: ["atlassian"], - styles: ["brands"], - label: "Trello" + name: 'teeth', + search: ['bite', 'dental', 'dentist', 'gums', 'mouth', 'smile', 'tooth'], + styles: ['solid'], + label: 'Teeth' +}, { + name: 'teeth-open', + search: ['dental', 'dentist', 'gums bite', 'mouth', 'smile', 'tooth'], + styles: ['solid'], + label: 'Teeth Open' +}, { + name: 'telegram', + search: [], + styles: ['brands'], + label: 'Telegram' +}, { + name: 'telegram-plane', + search: [], + styles: ['brands'], + label: 'Telegram Plane' +}, { + name: 'temperature-high', + search: ['cook', 'covid-19', 'mercury', 'summer', 'thermometer', 'warm'], + styles: ['solid'], + label: 'High Temperature' +}, { + name: 'temperature-low', + search: ['cold', 'cool', 'covid-19', 'mercury', 'thermometer', 'winter'], + styles: ['solid'], + label: 'Low Temperature' +}, { + name: 'tencent-weibo', + search: [], + styles: ['brands'], + label: 'Tencent Weibo' +}, { + name: 'tenge', + search: ['currency', 'kazakhstan', 'money', 'price'], + styles: ['solid'], + label: 'Tenge' +}, { + name: 'terminal', + search: ['code', 'command', 'console', 'development', 'prompt'], + styles: ['solid'], + label: 'Terminal' +}, { + name: 'text-height', + search: ['edit', 'font', 'format', 'text', 'type'], + styles: ['solid'], + label: 'text-height' +}, { + name: 'text-width', + search: ['edit', 'font', 'format', 'text', 'type'], + styles: ['solid'], + label: 'Text Width' +}, { + name: 'th', + search: ['blocks', 'boxes', 'grid', 'squares'], + styles: ['solid'], + label: 'th' +}, { + name: 'th-large', + search: ['blocks', 'boxes', 'grid', 'squares'], + styles: ['solid'], + label: 'th-large' +}, { + name: 'th-list', + search: ['checklist', 'completed', 'done', 'finished', 'ol', 'todo', 'ul'], + styles: ['solid'], + label: 'th-list' +}, { + name: 'the-red-yeti', + search: [], + styles: ['brands'], + label: 'The Red Yeti' +}, { + name: 'theater-masks', + search: ['comedy', 'perform', 'theatre', 'tragedy'], + styles: ['solid'], + label: 'Theater Masks' +}, { + name: 'themeco', + search: [], + styles: ['brands'], + label: 'Themeco' +}, { + name: 'themeisle', + search: [], + styles: ['brands'], + label: 'ThemeIsle' +}, { + name: 'thermometer', + search: ['covid-19', 'mercury', 'status', 'temperature'], + styles: ['solid'], + label: 'Thermometer' +}, { + name: 'thermometer-empty', + search: ['cold', 'mercury', 'status', 'temperature'], + styles: ['solid'], + label: 'Thermometer Empty' +}, { + name: 'thermometer-full', + search: ['fever', 'hot', 'mercury', 'status', 'temperature'], + styles: ['solid'], + label: 'Thermometer Full' +}, { + name: 'thermometer-half', + search: ['mercury', 'status', 'temperature'], + styles: ['solid'], + label: 'Thermometer 1/2 Full' +}, { + name: 'thermometer-quarter', + search: ['mercury', 'status', 'temperature'], + styles: ['solid'], + label: 'Thermometer 1/4 Full' +}, { + name: 'thermometer-three-quarters', + search: ['mercury', 'status', 'temperature'], + styles: ['solid'], + label: 'Thermometer 3/4 Full' +}, { + name: 'think-peaks', + search: [], + styles: ['brands'], + label: 'Think Peaks' +}, { + name: 'thumbs-down', + search: ['disagree', 'disapprove', 'dislike', 'hand', 'social', 'thumbs-o-down'], + styles: ['solid', 'regular'], + label: 'thumbs-down' +}, { + name: 'thumbs-up', + search: ['agree', 'approve', 'favorite', 'hand', 'like', 'ok', 'okay', 'social', 'success', 'thumbs-o-up', 'yes', 'you got it dude'], + styles: ['solid', 'regular'], + label: 'thumbs-up' +}, { + name: 'thumbtack', + search: ['coordinates', 'location', 'marker', 'pin', 'thumb-tack'], + styles: ['solid'], + label: 'Thumbtack' +}, { + name: 'ticket-alt', + search: ['movie', 'pass', 'support', 'ticket'], + styles: ['solid'], + label: 'Alternate Ticket' +}, { + name: 'times', + search: ['close', 'cross', 'error', 'exit', 'incorrect', 'notice', 'notification', 'notify', 'problem', 'wrong', 'x'], + styles: ['solid'], + label: 'Times' +}, { + name: 'times-circle', + search: ['close', 'cross', 'exit', 'incorrect', 'notice', 'notification', 'notify', 'problem', 'wrong', 'x'], + styles: ['solid', 'regular'], + label: 'Times Circle' +}, { + name: 'tint', + search: ['color', 'drop', 'droplet', 'raindrop', 'waterdrop'], + styles: ['solid'], + label: 'tint' +}, { + name: 'tint-slash', + search: ['color', 'drop', 'droplet', 'raindrop', 'waterdrop'], + styles: ['solid'], + label: 'Tint Slash' +}, { + name: 'tired', + search: ['angry', 'emoticon', 'face', 'grumpy', 'upset'], + styles: ['solid', 'regular'], + label: 'Tired Face' +}, { + name: 'toggle-off', + search: ['switch'], + styles: ['solid'], + label: 'Toggle Off' +}, { + name: 'toggle-on', + search: ['switch'], + styles: ['solid'], + label: 'Toggle On' +}, { + name: 'toilet', + search: ['bathroom', 'flush', 'john', 'loo', 'pee', 'plumbing', 'poop', 'porcelain', 'potty', 'restroom', 'throne', 'washroom', 'waste', 'wc'], + styles: ['solid'], + label: 'Toilet' +}, { + name: 'toilet-paper', + search: ['bathroom', 'covid-19', 'halloween', 'holiday', 'lavatory', 'prank', 'restroom', 'roll'], + styles: ['solid'], + label: 'Toilet Paper' +}, { + name: 'toilet-paper-slash', + search: ['bathroom', 'covid-19', 'halloween', 'holiday', 'lavatory', 'leaves', 'prank', 'restroom', 'roll', 'trouble', 'ut oh'], + styles: ['solid'], + label: 'Toilet Paper Slash' +}, { + name: 'toolbox', + search: ['admin', 'container', 'fix', 'repair', 'settings', 'tools'], + styles: ['solid'], + label: 'Toolbox' +}, { + name: 'tools', + search: ['admin', 'fix', 'repair', 'screwdriver', 'settings', 'tools', 'wrench'], + styles: ['solid'], + label: 'Tools' +}, { + name: 'tooth', + search: ['bicuspid', 'dental', 'dentist', 'molar', 'mouth', 'teeth'], + styles: ['solid'], + label: 'Tooth' +}, { + name: 'torah', + search: ['book', 'jewish', 'judaism', 'religion', 'scroll'], + styles: ['solid'], + label: 'Torah' +}, { + name: 'torii-gate', + search: ['building', 'shintoism'], + styles: ['solid'], + label: 'Torii Gate' +}, { + name: 'tractor', + search: ['agriculture', 'farm', 'vehicle'], + styles: ['solid'], + label: 'Tractor' +}, { + name: 'trade-federation', + search: [], + styles: ['brands'], + label: 'Trade Federation' +}, { + name: 'trademark', + search: ['copyright', 'register', 'symbol'], + styles: ['solid'], + label: 'Trademark' +}, { + name: 'traffic-light', + search: ['direction', 'road', 'signal', 'travel'], + styles: ['solid'], + label: 'Traffic Light' +}, { + name: 'trailer', + search: ['carry', 'haul', 'moving', 'travel'], + styles: ['solid'], + label: 'Trailer' +}, { + name: 'train', + search: ['bullet', 'commute', 'locomotive', 'railway', 'subway'], + styles: ['solid'], + label: 'Train' +}, { + name: 'tram', + search: ['crossing', 'machine', 'mountains', 'seasonal', 'transportation'], + styles: ['solid'], + label: 'Tram' +}, { + name: 'transgender', + search: ['intersex'], + styles: ['solid'], + label: 'Transgender' +}, { + name: 'transgender-alt', + search: ['intersex'], + styles: ['solid'], + label: 'Alternate Transgender' +}, { + name: 'trash', + search: ['delete', 'garbage', 'hide', 'remove'], + styles: ['solid'], + label: 'Trash' +}, { + name: 'trash-alt', + search: ['delete', 'garbage', 'hide', 'remove', 'trash-o'], + styles: ['solid', 'regular'], + label: 'Alternate Trash' +}, { + name: 'trash-restore', + search: ['back', 'control z', 'oops', 'undo'], + styles: ['solid'], + label: 'Trash Restore' +}, { + name: 'trash-restore-alt', + search: ['back', 'control z', 'oops', 'undo'], + styles: ['solid'], + label: 'Alternative Trash Restore' +}, { + name: 'tree', + search: ['bark', 'fall', 'flora', 'forest', 'nature', 'plant', 'seasonal'], + styles: ['solid'], + label: 'Tree' +}, { + name: 'trello', + search: ['atlassian'], + styles: ['brands'], + label: 'Trello' }, { - name: "tripadvisor", - search: [], - styles: ["brands"], - label: "TripAdvisor" + name: 'tripadvisor', + search: [], + styles: ['brands'], + label: 'TripAdvisor' }, { - name: "trophy", - search: ["achievement", "award", "cup", "game", "winner"], - styles: ["solid"], - label: "trophy" + name: 'trophy', + search: ['achievement', 'award', 'cup', 'game', 'winner'], + styles: ['solid'], + label: 'trophy' }, { - name: "truck", - search: ["cargo", "delivery", "shipping", "vehicle"], - styles: ["solid"], - label: "truck" + name: 'truck', + search: ['cargo', 'delivery', 'shipping', 'vehicle'], + styles: ['solid'], + label: 'truck' }, { - name: "truck-loading", - search: ["box", "cargo", "delivery", "inventory", "moving", "rental", "vehicle"], - styles: ["solid"], - label: "Truck Loading" + name: 'truck-loading', + search: ['box', 'cargo', 'delivery', 'inventory', 'moving', 'rental', 'vehicle'], + styles: ['solid'], + label: 'Truck Loading' }, { - name: "truck-monster", - search: ["offroad", "vehicle", "wheel"], - styles: ["solid"], - label: "Truck Monster" + name: 'truck-monster', + search: ['offroad', 'vehicle', 'wheel'], + styles: ['solid'], + label: 'Truck Monster' }, { - name: "truck-moving", - search: ["cargo", "inventory", "rental", "vehicle"], - styles: ["solid"], - label: "Truck Moving" + name: 'truck-moving', + search: ['cargo', 'inventory', 'rental', 'vehicle'], + styles: ['solid'], + label: 'Truck Moving' }, { - name: "truck-pickup", - search: ["cargo", "vehicle"], - styles: ["solid"], - label: "Truck Side" + name: 'truck-pickup', + search: ['cargo', 'vehicle'], + styles: ['solid'], + label: 'Truck Side' }, { - name: "tshirt", - search: ["clothing", "fashion", "garment", "shirt"], - styles: ["solid"], - label: "T-Shirt" + name: 'tshirt', + search: ['clothing', 'fashion', 'garment', 'shirt'], + styles: ['solid'], + label: 'T-Shirt' }, { - name: "tty", - search: ["communication", "deaf", "telephone", "teletypewriter", "text"], - styles: ["solid"], - label: "TTY" + name: 'tty', + search: ['communication', 'deaf', 'telephone', 'teletypewriter', 'text'], + styles: ['solid'], + label: 'TTY' }, { - name: "tumblr", + name: 'tumblr', search: [], - styles: ["brands"], - label: "Tumblr" + styles: ['brands'], + label: 'Tumblr' }, { - name: "tumblr-square", + name: 'tumblr-square', search: [], - styles: ["brands"], - label: "Tumblr Square" + styles: ['brands'], + label: 'Tumblr Square' }, { - name: "tv", - search: ["computer", "display", "monitor", "television"], - styles: ["solid"], - label: "Television" + name: 'tv', + search: ['computer', 'display', 'monitor', 'television'], + styles: ['solid'], + label: 'Television' }, { - name: "twitch", + name: 'twitch', search: [], - styles: ["brands"], - label: "Twitch" + styles: ['brands'], + label: 'Twitch' }, { - name: "twitter", - search: ["social network", "tweet"], - styles: ["brands"], - label: "Twitter" + name: 'twitter', + search: ['social network', 'tweet'], + styles: ['brands'], + label: 'Twitter' }, { - name: "twitter-square", - search: ["social network", "tweet"], - styles: ["brands"], - label: "Twitter Square" + name: 'twitter-square', + search: ['social network', 'tweet'], + styles: ['brands'], + label: 'Twitter Square' }, { - name: "typo3", + name: 'typo3', search: [], - styles: ["brands"], - label: "Typo3" + styles: ['brands'], + label: 'Typo3' }, { - name: "uber", + name: 'uber', search: [], - styles: ["brands"], - label: "Uber" + styles: ['brands'], + label: 'Uber' }, { - name: "ubuntu", - search: ["linux", "operating system", "os"], - styles: ["brands"], - label: "Ubuntu" + name: 'ubuntu', + search: ['linux', 'operating system', 'os'], + styles: ['brands'], + label: 'Ubuntu' }, { - name: "uikit", + name: 'uikit', search: [], - styles: ["brands"], - label: "UIkit" + styles: ['brands'], + label: 'UIkit' }, { - name: "umbraco", + name: 'umbraco', search: [], - styles: ["brands"], - label: "Umbraco" + styles: ['brands'], + label: 'Umbraco' }, { - name: "umbrella", - search: ["protection", "rain", "storm", "wet"], - styles: ["solid"], - label: "Umbrella" + name: 'umbrella', + search: ['protection', 'rain', 'storm', 'wet'], + styles: ['solid'], + label: 'Umbrella' }, { - name: "umbrella-beach", - search: ["protection", "recreation", "sand", "shade", "summer", "sun"], - styles: ["solid"], - label: "Umbrella Beach" + name: 'umbrella-beach', + search: ['protection', 'recreation', 'sand', 'shade', 'summer', 'sun'], + styles: ['solid'], + label: 'Umbrella Beach' }, { - name: "underline", - search: ["edit", "emphasis", "format", "text", "writing"], - styles: ["solid"], - label: "Underline" + name: 'underline', + search: ['edit', 'emphasis', 'format', 'text', 'writing'], + styles: ['solid'], + label: 'Underline' }, { - name: "undo", - search: ["back", "control z", "exchange", "oops", "return", "rotate", "swap"], - styles: ["solid"], - label: "Undo" + name: 'undo', + search: ['back', 'control z', 'exchange', 'oops', 'return', 'rotate', 'swap'], + styles: ['solid'], + label: 'Undo' }, { - name: "undo-alt", - search: ["back", "control z", "exchange", "oops", "return", "swap"], - styles: ["solid"], - label: "Alternate Undo" + name: 'undo-alt', + search: ['back', 'control z', 'exchange', 'oops', 'return', 'swap'], + styles: ['solid'], + label: 'Alternate Undo' }, { - name: "uniregistry", + name: 'uniregistry', search: [], - styles: ["brands"], - label: "Uniregistry" + styles: ['brands'], + label: 'Uniregistry' }, { - name: "unity", + name: 'unity', search: [], - styles: ["brands"], - label: "Unity 3D" + styles: ['brands'], + label: 'Unity 3D' }, { - name: "universal-access", - search: ["accessibility", "hearing", "person", "seeing", "visual impairment"], - styles: ["solid"], - label: "Universal Access" + name: 'universal-access', + search: ['accessibility', 'hearing', 'person', 'seeing', 'visual impairment'], + styles: ['solid'], + label: 'Universal Access' }, { - name: "university", - search: ["bank", "building", "college", "higher education - students", "institution"], - styles: ["solid"], - label: "University" + name: 'university', + search: ['bank', 'building', 'college', 'higher education - students', 'institution'], + styles: ['solid'], + label: 'University' }, { - name: "unlink", - search: ["attachment", "chain", "chain-broken", "remove"], - styles: ["solid"], - label: "unlink" + name: 'unlink', + search: ['attachment', 'chain', 'chain-broken', 'remove'], + styles: ['solid'], + label: 'unlink' }, { - name: "unlock", - search: ["admin", "lock", "password", "private", "protect"], - styles: ["solid"], - label: "unlock" + name: 'unlock', + search: ['admin', 'lock', 'password', 'private', 'protect'], + styles: ['solid'], + label: 'unlock' }, { - name: "unlock-alt", - search: ["admin", "lock", "password", "private", "protect"], - styles: ["solid"], - label: "Alternate Unlock" + name: 'unlock-alt', + search: ['admin', 'lock', 'password', 'private', 'protect'], + styles: ['solid'], + label: 'Alternate Unlock' }, { - name: "untappd", - search: [], - styles: ["brands"], - label: "Untappd" -}, { - name: "upload", - search: ["hard drive", "import", "publish"], - styles: ["solid"], - label: "Upload" -}, { - name: "ups", - search: ["United Parcel Service", "package", "shipping"], - styles: ["brands"], - label: "UPS" -}, { - name: "usb", - search: [], - styles: ["brands"], - label: "USB" -}, { - name: "user", - search: ["account", "avatar", "head", "human", "man", "person", "profile"], - styles: ["solid", "regular"], - label: "User" -}, { - name: "user-alt", - search: ["account", "avatar", "head", "human", "man", "person", "profile"], - styles: ["solid"], - label: "Alternate User" -}, { - name: "user-alt-slash", - search: ["account", "avatar", "head", "human", "man", "person", "profile"], - styles: ["solid"], - label: "Alternate User Slash" -}, { - name: "user-astronaut", - search: ["avatar", "clothing", "cosmonaut", "nasa", "space", "suit"], - styles: ["solid"], - label: "User Astronaut" -}, { - name: "user-check", - search: ["accept", "check", "person", "verified"], - styles: ["solid"], - label: "User Check" -}, { - name: "user-circle", - search: ["account", "avatar", "head", "human", "man", "person", "profile"], - styles: ["solid", "regular"], - label: "User Circle" -}, { - name: "user-clock", - search: ["alert", "person", "remind", "time"], - styles: ["solid"], - label: "User Clock" -}, { - name: "user-cog", - search: ["admin", "cog", "person", "settings"], - styles: ["solid"], - label: "User Cog" -}, { - name: "user-edit", - search: ["edit", "pen", "pencil", "person", "update", "write"], - styles: ["solid"], - label: "User Edit" -}, { - name: "user-friends", - search: ["group", "people", "person", "team", "users"], - styles: ["solid"], - label: "User Friends" -}, { - name: "user-graduate", - search: ["cap", "clothing", "commencement", "gown", "graduation", "person", "student"], - styles: ["solid"], - label: "User Graduate" -}, { - name: "user-injured", - search: ["cast", "injury", "ouch", "patient", "person", "sling"], - styles: ["solid"], - label: "User Injured" -}, { - name: "user-lock", - search: ["admin", "lock", "person", "private", "unlock"], - styles: ["solid"], - label: "User Lock" -}, { - name: "user-md", - search: ["covid-19", "job", "medical", "nurse", "occupation", "physician", "profile", "surgeon"], - styles: ["solid"], - label: "Doctor" -}, { - name: "user-minus", - search: ["delete", "negative", "remove"], - styles: ["solid"], - label: "User Minus" -}, { - name: "user-ninja", - search: ["assassin", "avatar", "dangerous", "deadly", "sneaky"], - styles: ["solid"], - label: "User Ninja" -}, { - name: "user-nurse", - search: ["covid-19", "doctor", "midwife", "practitioner", "surgeon"], - styles: ["solid"], - label: "Nurse" -}, { - name: "user-plus", - search: ["add", "avatar", "positive", "sign up", "signup", "team"], - styles: ["solid"], - label: "User Plus" -}, { - name: "user-secret", - search: ["clothing", "coat", "hat", "incognito", "person", "privacy", "spy", "whisper"], - styles: ["solid"], - label: "User Secret" -}, { - name: "user-shield", - search: ["admin", "person", "private", "protect", "safe"], - styles: ["solid"], - label: "User Shield" -}, { - name: "user-slash", - search: ["ban", "delete", "remove"], - styles: ["solid"], - label: "User Slash" -}, { - name: "user-tag", - search: ["avatar", "discount", "label", "person", "role", "special"], - styles: ["solid"], - label: "User Tag" -}, { - name: "user-tie", - search: ["avatar", "business", "clothing", "formal", "professional", "suit"], - styles: ["solid"], - label: "User Tie" -}, { - name: "user-times", - search: ["archive", "delete", "remove", "x"], - styles: ["solid"], - label: "Remove User" -}, { - name: "users", - search: ["friends", "group", "people", "persons", "profiles", "team"], - styles: ["solid"], - label: "Users" -}, { - name: "users-cog", - search: ["admin", "cog", "group", "person", "settings", "team"], - styles: ["solid"], - label: "Users Cog" -}, { - name: "usps", - search: ["american", "package", "shipping", "usa"], - styles: ["brands"], - label: "United States Postal Service" -}, { - name: "ussunnah", - search: [], - styles: ["brands"], - label: "us-Sunnah Foundation" + name: 'untappd', + search: [], + styles: ['brands'], + label: 'Untappd' +}, { + name: 'upload', + search: ['hard drive', 'import', 'publish'], + styles: ['solid'], + label: 'Upload' +}, { + name: 'ups', + search: ['United Parcel Service', 'package', 'shipping'], + styles: ['brands'], + label: 'UPS' +}, { + name: 'usb', + search: [], + styles: ['brands'], + label: 'USB' +}, { + name: 'user', + search: ['account', 'avatar', 'head', 'human', 'man', 'person', 'profile'], + styles: ['solid', 'regular'], + label: 'User' +}, { + name: 'user-alt', + search: ['account', 'avatar', 'head', 'human', 'man', 'person', 'profile'], + styles: ['solid'], + label: 'Alternate User' +}, { + name: 'user-alt-slash', + search: ['account', 'avatar', 'head', 'human', 'man', 'person', 'profile'], + styles: ['solid'], + label: 'Alternate User Slash' +}, { + name: 'user-astronaut', + search: ['avatar', 'clothing', 'cosmonaut', 'nasa', 'space', 'suit'], + styles: ['solid'], + label: 'User Astronaut' +}, { + name: 'user-check', + search: ['accept', 'check', 'person', 'verified'], + styles: ['solid'], + label: 'User Check' +}, { + name: 'user-circle', + search: ['account', 'avatar', 'head', 'human', 'man', 'person', 'profile'], + styles: ['solid', 'regular'], + label: 'User Circle' +}, { + name: 'user-clock', + search: ['alert', 'person', 'remind', 'time'], + styles: ['solid'], + label: 'User Clock' +}, { + name: 'user-cog', + search: ['admin', 'cog', 'person', 'settings'], + styles: ['solid'], + label: 'User Cog' +}, { + name: 'user-edit', + search: ['edit', 'pen', 'pencil', 'person', 'update', 'write'], + styles: ['solid'], + label: 'User Edit' +}, { + name: 'user-friends', + search: ['group', 'people', 'person', 'team', 'users'], + styles: ['solid'], + label: 'User Friends' +}, { + name: 'user-graduate', + search: ['cap', 'clothing', 'commencement', 'gown', 'graduation', 'person', 'student'], + styles: ['solid'], + label: 'User Graduate' +}, { + name: 'user-injured', + search: ['cast', 'injury', 'ouch', 'patient', 'person', 'sling'], + styles: ['solid'], + label: 'User Injured' +}, { + name: 'user-lock', + search: ['admin', 'lock', 'person', 'private', 'unlock'], + styles: ['solid'], + label: 'User Lock' +}, { + name: 'user-md', + search: ['covid-19', 'job', 'medical', 'nurse', 'occupation', 'physician', 'profile', 'surgeon'], + styles: ['solid'], + label: 'Doctor' +}, { + name: 'user-minus', + search: ['delete', 'negative', 'remove'], + styles: ['solid'], + label: 'User Minus' +}, { + name: 'user-ninja', + search: ['assassin', 'avatar', 'dangerous', 'deadly', 'sneaky'], + styles: ['solid'], + label: 'User Ninja' +}, { + name: 'user-nurse', + search: ['covid-19', 'doctor', 'midwife', 'practitioner', 'surgeon'], + styles: ['solid'], + label: 'Nurse' +}, { + name: 'user-plus', + search: ['add', 'avatar', 'positive', 'sign up', 'signup', 'team'], + styles: ['solid'], + label: 'User Plus' +}, { + name: 'user-secret', + search: ['clothing', 'coat', 'hat', 'incognito', 'person', 'privacy', 'spy', 'whisper'], + styles: ['solid'], + label: 'User Secret' +}, { + name: 'user-shield', + search: ['admin', 'person', 'private', 'protect', 'safe'], + styles: ['solid'], + label: 'User Shield' +}, { + name: 'user-slash', + search: ['ban', 'delete', 'remove'], + styles: ['solid'], + label: 'User Slash' +}, { + name: 'user-tag', + search: ['avatar', 'discount', 'label', 'person', 'role', 'special'], + styles: ['solid'], + label: 'User Tag' +}, { + name: 'user-tie', + search: ['avatar', 'business', 'clothing', 'formal', 'professional', 'suit'], + styles: ['solid'], + label: 'User Tie' +}, { + name: 'user-times', + search: ['archive', 'delete', 'remove', 'x'], + styles: ['solid'], + label: 'Remove User' +}, { + name: 'users', + search: ['friends', 'group', 'people', 'persons', 'profiles', 'team'], + styles: ['solid'], + label: 'Users' +}, { + name: 'users-cog', + search: ['admin', 'cog', 'group', 'person', 'settings', 'team'], + styles: ['solid'], + label: 'Users Cog' +}, { + name: 'usps', + search: ['american', 'package', 'shipping', 'usa'], + styles: ['brands'], + label: 'United States Postal Service' +}, { + name: 'ussunnah', + search: [], + styles: ['brands'], + label: 'us-Sunnah Foundation' }, { - name: "utensil-spoon", - search: ["cutlery", "dining", "scoop", "silverware", "spoon"], - styles: ["solid"], - label: "Utensil Spoon" + name: 'utensil-spoon', + search: ['cutlery', 'dining', 'scoop', 'silverware', 'spoon'], + styles: ['solid'], + label: 'Utensil Spoon' }, { - name: "utensils", - search: ["cutlery", "dining", "dinner", "eat", "food", "fork", "knife", "restaurant"], - styles: ["solid"], - label: "Utensils" + name: 'utensils', + search: ['cutlery', 'dining', 'dinner', 'eat', 'food', 'fork', 'knife', 'restaurant'], + styles: ['solid'], + label: 'Utensils' }, { - name: "vaadin", - search: [], - styles: ["brands"], - label: "Vaadin" + name: 'vaadin', + search: [], + styles: ['brands'], + label: 'Vaadin' }, { - name: "vector-square", - search: ["anchors", "lines", "object", "render", "shape"], - styles: ["solid"], - label: "Vector Square" + name: 'vector-square', + search: ['anchors', 'lines', 'object', 'render', 'shape'], + styles: ['solid'], + label: 'Vector Square' }, { - name: "venus", - search: ["female"], - styles: ["solid"], - label: "Venus" + name: 'venus', + search: ['female'], + styles: ['solid'], + label: 'Venus' }, { - name: "venus-double", - search: ["female"], - styles: ["solid"], - label: "Venus Double" + name: 'venus-double', + search: ['female'], + styles: ['solid'], + label: 'Venus Double' }, { - name: "venus-mars", - search: ["Gender"], - styles: ["solid"], - label: "Venus Mars" + name: 'venus-mars', + search: ['Gender'], + styles: ['solid'], + label: 'Venus Mars' }, { - name: "viacoin", + name: 'viacoin', search: [], - styles: ["brands"], - label: "Viacoin" + styles: ['brands'], + label: 'Viacoin' }, { - name: "viadeo", + name: 'viadeo', search: [], - styles: ["brands"], - label: "Video" + styles: ['brands'], + label: 'Video' }, { - name: "viadeo-square", + name: 'viadeo-square', search: [], - styles: ["brands"], - label: "Video Square" + styles: ['brands'], + label: 'Video Square' }, { - name: "vial", - search: ["experiment", "lab", "sample", "science", "test", "test tube"], - styles: ["solid"], - label: "Vial" + name: 'vial', + search: ['experiment', 'lab', 'sample', 'science', 'test', 'test tube'], + styles: ['solid'], + label: 'Vial' }, { - name: "vials", - search: ["experiment", "lab", "sample", "science", "test", "test tube"], - styles: ["solid"], - label: "Vials" + name: 'vials', + search: ['experiment', 'lab', 'sample', 'science', 'test', 'test tube'], + styles: ['solid'], + label: 'Vials' }, { - name: "viber", + name: 'viber', search: [], - styles: ["brands"], - label: "Viber" + styles: ['brands'], + label: 'Viber' }, { - name: "video", - search: ["camera", "film", "movie", "record", "video-camera"], - styles: ["solid"], - label: "Video" + name: 'video', + search: ['camera', 'film', 'movie', 'record', 'video-camera'], + styles: ['solid'], + label: 'Video' }, { - name: "video-slash", - search: ["add", "create", "film", "new", "positive", "record", "video"], - styles: ["solid"], - label: "Video Slash" + name: 'video-slash', + search: ['add', 'create', 'film', 'new', 'positive', 'record', 'video'], + styles: ['solid'], + label: 'Video Slash' }, { - name: "vihara", - search: ["buddhism", "buddhist", "building", "monastery"], - styles: ["solid"], - label: "Vihara" + name: 'vihara', + search: ['buddhism', 'buddhist', 'building', 'monastery'], + styles: ['solid'], + label: 'Vihara' }, { - name: "vimeo", + name: 'vimeo', search: [], - styles: ["brands"], - label: "Vimeo" + styles: ['brands'], + label: 'Vimeo' }, { - name: "vimeo-square", + name: 'vimeo-square', search: [], - styles: ["brands"], - label: "Vimeo Square" + styles: ['brands'], + label: 'Vimeo Square' }, { - name: "vimeo-v", - search: ["vimeo"], - styles: ["brands"], - label: "Vimeo" + name: 'vimeo-v', + search: ['vimeo'], + styles: ['brands'], + label: 'Vimeo' }, { - name: "vine", + name: 'vine', search: [], - styles: ["brands"], - label: "Vine" + styles: ['brands'], + label: 'Vine' }, { - name: "virus", - search: ["bug", "covid-19", "flu", "health", "sick", "viral"], - styles: ["solid"], - label: "Virus" + name: 'virus', + search: ['bug', 'covid-19', 'flu', 'health', 'sick', 'viral'], + styles: ['solid'], + label: 'Virus' }, { - name: "virus-slash", - search: ["bug", "covid-19", "cure", "eliminate", "flu", "health", "sick", "viral"], - styles: ["solid"], - label: "Virus Slash" + name: 'virus-slash', + search: ['bug', 'covid-19', 'cure', 'eliminate', 'flu', 'health', 'sick', 'viral'], + styles: ['solid'], + label: 'Virus Slash' }, { - name: "viruses", - search: ["bugs", "covid-19", "flu", "health", "multiply", "sick", "spread", "viral"], - styles: ["solid"], - label: "Viruses" + name: 'viruses', + search: ['bugs', 'covid-19', 'flu', 'health', 'multiply', 'sick', 'spread', 'viral'], + styles: ['solid'], + label: 'Viruses' }, { - name: "vk", + name: 'vk', search: [], - styles: ["brands"], - label: "VK" + styles: ['brands'], + label: 'VK' }, { - name: "vnv", + name: 'vnv', search: [], - styles: ["brands"], - label: "VNV" + styles: ['brands'], + label: 'VNV' }, { - name: "voicemail", - search: ["answer", "inbox", "message", "phone"], - styles: ["solid"], - label: "Voicemail" + name: 'voicemail', + search: ['answer', 'inbox', 'message', 'phone'], + styles: ['solid'], + label: 'Voicemail' }, { - name: "volleyball-ball", - search: ["beach", "olympics", "sport"], - styles: ["solid"], - label: "Volleyball Ball" + name: 'volleyball-ball', + search: ['beach', 'olympics', 'sport'], + styles: ['solid'], + label: 'Volleyball Ball' }, { - name: "volume-down", - search: ["audio", "lower", "music", "quieter", "sound", "speaker"], - styles: ["solid"], - label: "Volume Down" + name: 'volume-down', + search: ['audio', 'lower', 'music', 'quieter', 'sound', 'speaker'], + styles: ['solid'], + label: 'Volume Down' }, { - name: "volume-mute", - search: ["audio", "music", "quiet", "sound", "speaker"], - styles: ["solid"], - label: "Volume Mute" + name: 'volume-mute', + search: ['audio', 'music', 'quiet', 'sound', 'speaker'], + styles: ['solid'], + label: 'Volume Mute' }, { - name: "volume-off", - search: ["audio", "ban", "music", "mute", "quiet", "silent", "sound"], - styles: ["solid"], - label: "Volume Off" + name: 'volume-off', + search: ['audio', 'ban', 'music', 'mute', 'quiet', 'silent', 'sound'], + styles: ['solid'], + label: 'Volume Off' }, { - name: "volume-up", - search: ["audio", "higher", "louder", "music", "sound", "speaker"], - styles: ["solid"], - label: "Volume Up" + name: 'volume-up', + search: ['audio', 'higher', 'louder', 'music', 'sound', 'speaker'], + styles: ['solid'], + label: 'Volume Up' }, { - name: "vote-yea", - search: ["accept", "cast", "election", "politics", "positive", "yes"], - styles: ["solid"], - label: "Vote Yea" + name: 'vote-yea', + search: ['accept', 'cast', 'election', 'politics', 'positive', 'yes'], + styles: ['solid'], + label: 'Vote Yea' }, { - name: "vr-cardboard", - search: ["3d", "augment", "google", "reality", "virtual"], - styles: ["solid"], - label: "Cardboard VR" + name: 'vr-cardboard', + search: ['3d', 'augment', 'google', 'reality', 'virtual'], + styles: ['solid'], + label: 'Cardboard VR' }, { - name: "vuejs", + name: 'vuejs', search: [], - styles: ["brands"], - label: "Vue.js" + styles: ['brands'], + label: 'Vue.js' }, { - name: "walking", - search: ["exercise", "health", "pedometer", "person", "steps"], - styles: ["solid"], - label: "Walking" + name: 'walking', + search: ['exercise', 'health', 'pedometer', 'person', 'steps'], + styles: ['solid'], + label: 'Walking' }, { - name: "wallet", - search: ["billfold", "cash", "currency", "money"], - styles: ["solid"], - label: "Wallet" + name: 'wallet', + search: ['billfold', 'cash', 'currency', 'money'], + styles: ['solid'], + label: 'Wallet' }, { - name: "warehouse", - search: ["building", "capacity", "garage", "inventory", "storage"], - styles: ["solid"], - label: "Warehouse" + name: 'warehouse', + search: ['building', 'capacity', 'garage', 'inventory', 'storage'], + styles: ['solid'], + label: 'Warehouse' }, { - name: "water", - search: ["lake", "liquid", "ocean", "sea", "swim", "wet"], - styles: ["solid"], - label: "Water" + name: 'water', + search: ['lake', 'liquid', 'ocean', 'sea', 'swim', 'wet'], + styles: ['solid'], + label: 'Water' }, { - name: "wave-square", - search: ["frequency", "pulse", "signal"], - styles: ["solid"], - label: "Square Wave" + name: 'wave-square', + search: ['frequency', 'pulse', 'signal'], + styles: ['solid'], + label: 'Square Wave' }, { - name: "waze", + name: 'waze', search: [], - styles: ["brands"], - label: "Waze" + styles: ['brands'], + label: 'Waze' }, { - name: "weebly", + name: 'weebly', search: [], - styles: ["brands"], - label: "Weebly" + styles: ['brands'], + label: 'Weebly' }, { - name: "weibo", + name: 'weibo', search: [], - styles: ["brands"], - label: "Weibo" + styles: ['brands'], + label: 'Weibo' }, { - name: "weight", - search: ["health", "measurement", "scale", "weight"], - styles: ["solid"], - label: "Weight" + name: 'weight', + search: ['health', 'measurement', 'scale', 'weight'], + styles: ['solid'], + label: 'Weight' }, { - name: "weight-hanging", - search: ["anvil", "heavy", "measurement"], - styles: ["solid"], - label: "Hanging Weight" + name: 'weight-hanging', + search: ['anvil', 'heavy', 'measurement'], + styles: ['solid'], + label: 'Hanging Weight' }, { - name: "weixin", + name: 'weixin', search: [], - styles: ["brands"], - label: "Weixin (WeChat)" + styles: ['brands'], + label: 'Weixin (WeChat)' }, { - name: "whatsapp", + name: 'whatsapp', search: [], - styles: ["brands"], - label: "What's App" + styles: ['brands'], + label: 'What\'s App' }, { - name: "whatsapp-square", + name: 'whatsapp-square', search: [], - styles: ["brands"], - label: "What's App Square" + styles: ['brands'], + label: 'What\'s App Square' }, { - name: "wheelchair", - search: ["accessible", "handicap", "person"], - styles: ["solid"], - label: "Wheelchair" + name: 'wheelchair', + search: ['accessible', 'handicap', 'person'], + styles: ['solid'], + label: 'Wheelchair' }, { - name: "whmcs", + name: 'whmcs', search: [], - styles: ["brands"], - label: "WHMCS" + styles: ['brands'], + label: 'WHMCS' }, { - name: "wifi", - search: ["connection", "hotspot", "internet", "network", "wireless"], - styles: ["solid"], - label: "WiFi" + name: 'wifi', + search: ['connection', 'hotspot', 'internet', 'network', 'wireless'], + styles: ['solid'], + label: 'WiFi' }, { - name: "wikipedia-w", + name: 'wikipedia-w', search: [], - styles: ["brands"], - label: "Wikipedia W" + styles: ['brands'], + label: 'Wikipedia W' }, { - name: "wind", - search: ["air", "blow", "breeze", "fall", "seasonal", "weather"], - styles: ["solid"], - label: "Wind" + name: 'wind', + search: ['air', 'blow', 'breeze', 'fall', 'seasonal', 'weather'], + styles: ['solid'], + label: 'Wind' }, { - name: "window-close", - search: ["browser", "cancel", "computer", "development"], - styles: ["solid", "regular"], - label: "Window Close" + name: 'window-close', + search: ['browser', 'cancel', 'computer', 'development'], + styles: ['solid', 'regular'], + label: 'Window Close' }, { - name: "window-maximize", - search: ["browser", "computer", "development", "expand"], - styles: ["solid", "regular"], - label: "Window Maximize" + name: 'window-maximize', + search: ['browser', 'computer', 'development', 'expand'], + styles: ['solid', 'regular'], + label: 'Window Maximize' }, { - name: "window-minimize", - search: ["browser", "collapse", "computer", "development"], - styles: ["solid", "regular"], - label: "Window Minimize" + name: 'window-minimize', + search: ['browser', 'collapse', 'computer', 'development'], + styles: ['solid', 'regular'], + label: 'Window Minimize' }, { - name: "window-restore", - search: ["browser", "computer", "development"], - styles: ["solid", "regular"], - label: "Window Restore" + name: 'window-restore', + search: ['browser', 'computer', 'development'], + styles: ['solid', 'regular'], + label: 'Window Restore' }, { - name: "windows", - search: ["microsoft", "operating system", "os"], - styles: ["brands"], - label: "Windows" + name: 'windows', + search: ['microsoft', 'operating system', 'os'], + styles: ['brands'], + label: 'Windows' }, { - name: "wine-bottle", - search: ["alcohol", "beverage", "cabernet", "drink", "glass", "grapes", "merlot", "sauvignon"], - styles: ["solid"], - label: "Wine Bottle" + name: 'wine-bottle', + search: ['alcohol', 'beverage', 'cabernet', 'drink', 'glass', 'grapes', 'merlot', 'sauvignon'], + styles: ['solid'], + label: 'Wine Bottle' }, { - name: "wine-glass", - search: ["alcohol", "beverage", "cabernet", "drink", "grapes", "merlot", "sauvignon"], - styles: ["solid"], - label: "Wine Glass" + name: 'wine-glass', + search: ['alcohol', 'beverage', 'cabernet', 'drink', 'grapes', 'merlot', 'sauvignon'], + styles: ['solid'], + label: 'Wine Glass' }, { - name: "wine-glass-alt", - search: ["alcohol", "beverage", "cabernet", "drink", "grapes", "merlot", "sauvignon"], - styles: ["solid"], - label: "Alternate Wine Glas" + name: 'wine-glass-alt', + search: ['alcohol', 'beverage', 'cabernet', 'drink', 'grapes', 'merlot', 'sauvignon'], + styles: ['solid'], + label: 'Alternate Wine Glas' }, { - name: "wix", + name: 'wix', search: [], - styles: ["brands"], - label: "Wix" + styles: ['brands'], + label: 'Wix' }, { - name: "wizards-of-the-coast", - search: ["Dungeons & Dragons", "d&d", "dnd", "fantasy", "game", "gaming", "tabletop"], - styles: ["brands"], - label: "Wizards of the Coast" + name: 'wizards-of-the-coast', + search: ['Dungeons & Dragons', 'd&d', 'dnd', 'fantasy', 'game', 'gaming', 'tabletop'], + styles: ['brands'], + label: 'Wizards of the Coast' }, { - name: "wolf-pack-battalion", + name: 'wolf-pack-battalion', search: [], - styles: ["brands"], - label: "Wolf Pack Battalion" + styles: ['brands'], + label: 'Wolf Pack Battalion' }, { - name: "won-sign", - search: ["currency", "krw", "money"], - styles: ["solid"], - label: "Won Sign" + name: 'won-sign', + search: ['currency', 'krw', 'money'], + styles: ['solid'], + label: 'Won Sign' }, { - name: "wordpress", + name: 'wordpress', search: [], - styles: ["brands"], - label: "WordPress Logo" + styles: ['brands'], + label: 'WordPress Logo' }, { - name: "wordpress-simple", + name: 'wordpress-simple', search: [], - styles: ["brands"], - label: "Wordpress Simple" + styles: ['brands'], + label: 'Wordpress Simple' }, { - name: "wpbeginner", + name: 'wpbeginner', search: [], - styles: ["brands"], - label: "WPBeginner" + styles: ['brands'], + label: 'WPBeginner' }, { - name: "wpexplorer", + name: 'wpexplorer', search: [], - styles: ["brands"], - label: "WPExplorer" + styles: ['brands'], + label: 'WPExplorer' }, { - name: "wpforms", + name: 'wpforms', search: [], - styles: ["brands"], - label: "WPForms" + styles: ['brands'], + label: 'WPForms' }, { - name: "wpressr", - search: ["rendact"], - styles: ["brands"], - label: "wpressr" + name: 'wpressr', + search: ['rendact'], + styles: ['brands'], + label: 'wpressr' }, { - name: "wrench", - search: ["construction", "fix", "mechanic", "plumbing", "settings", "spanner", "tool", "update"], - styles: ["solid"], - label: "Wrench" + name: 'wrench', + search: ['construction', 'fix', 'mechanic', 'plumbing', 'settings', 'spanner', 'tool', 'update'], + styles: ['solid'], + label: 'Wrench' }, { - name: "x-ray", - search: ["health", "medical", "radiological images", "radiology", "skeleton"], - styles: ["solid"], - label: "X-Ray" + name: 'x-ray', + search: ['health', 'medical', 'radiological images', 'radiology', 'skeleton'], + styles: ['solid'], + label: 'X-Ray' }, { - name: "xbox", + name: 'xbox', search: [], - styles: ["brands"], - label: "Xbox" + styles: ['brands'], + label: 'Xbox' }, { - name: "xing", + name: 'xing', search: [], - styles: ["brands"], - label: "Xing" + styles: ['brands'], + label: 'Xing' }, { - name: "xing-square", + name: 'xing-square', search: [], - styles: ["brands"], - label: "Xing Square" + styles: ['brands'], + label: 'Xing Square' }, { - name: "y-combinator", + name: 'y-combinator', search: [], - styles: ["brands"], - label: "Y Combinator" + styles: ['brands'], + label: 'Y Combinator' }, { - name: "yahoo", + name: 'yahoo', search: [], - styles: ["brands"], - label: "Yahoo Logo" + styles: ['brands'], + label: 'Yahoo Logo' }, { - name: "yammer", + name: 'yammer', search: [], - styles: ["brands"], - label: "Yammer" + styles: ['brands'], + label: 'Yammer' }, { - name: "yandex", + name: 'yandex', search: [], - styles: ["brands"], - label: "Yandex" + styles: ['brands'], + label: 'Yandex' }, { - name: "yandex-international", + name: 'yandex-international', search: [], - styles: ["brands"], - label: "Yandex International" + styles: ['brands'], + label: 'Yandex International' }, { - name: "yarn", + name: 'yarn', search: [], - styles: ["brands"], - label: "Yarn" + styles: ['brands'], + label: 'Yarn' }, { - name: "yelp", + name: 'yelp', search: [], - styles: ["brands"], - label: "Yelp" + styles: ['brands'], + label: 'Yelp' }, { - name: "yen-sign", - search: ["currency", "jpy", "money"], - styles: ["solid"], - label: "Yen Sign" + name: 'yen-sign', + search: ['currency', 'jpy', 'money'], + styles: ['solid'], + label: 'Yen Sign' }, { - name: "yin-yang", - search: ["daoism", "opposites", "taoism"], - styles: ["solid"], - label: "Yin Yang" + name: 'yin-yang', + search: ['daoism', 'opposites', 'taoism'], + styles: ['solid'], + label: 'Yin Yang' }, { - name: "yoast", + name: 'yoast', search: [], - styles: ["brands"], - label: "Yoast" + styles: ['brands'], + label: 'Yoast' }, { - name: "youtube", - search: ["film", "video", "youtube-play", "youtube-square"], - styles: ["brands"], - label: "YouTube" + name: 'youtube', + search: ['film', 'video', 'youtube-play', 'youtube-square'], + styles: ['brands'], + label: 'YouTube' }, { - name: "youtube-square", + name: 'youtube-square', search: [], - styles: ["brands"], - label: "YouTube Square" + styles: ['brands'], + label: 'YouTube Square' }, { - name: "zhihu", + name: 'zhihu', search: [], - styles: ["brands"], - label: "Zhihu" + styles: ['brands'], + label: 'Zhihu' }]; diff --git a/src/component/form/feedback/index.js b/src/component/form/feedback/index.js index 86f091ea..fa3329c2 100644 --- a/src/component/form/feedback/index.js +++ b/src/component/form/feedback/index.js @@ -20,7 +20,7 @@ export const feedback = ({ }); feedback.appendChild(feedbackText); - }; + } return feedback; diff --git a/src/component/form/fieldset/index.js b/src/component/form/fieldset/index.js index 66142dd3..e607f614 100644 --- a/src/component/form/fieldset/index.js +++ b/src/component/form/fieldset/index.js @@ -2,7 +2,7 @@ import { node } from '../../../utility/node'; import './index.css'; -export const fieldset = function({ +export const fieldset = function ({ children = false } = {}) { diff --git a/src/component/form/group/index.js b/src/component/form/group/index.js index 45195e6b..d3741f5f 100644 --- a/src/component/form/group/index.js +++ b/src/component/form/group/index.js @@ -2,7 +2,7 @@ import { node } from '../../../utility/node'; import './index.css'; -export const group = function({ +export const group = function ({ direction = 'horizontal', reverse = false, block = false, @@ -21,19 +21,19 @@ export const group = function({ case 'vertical': group.classList.add('form-group-vertical'); break; - }; + } if (reverse) { group.classList.add('form-group-reverse'); - }; + } if (block) { group.classList.add('form-group-block'); - }; + } if (border) { group.classList.add('form-group-border'); - }; + } switch (justify) { @@ -49,7 +49,7 @@ export const group = function({ group.classList.add('form-group-justify-space-between'); break; - }; + } return group; diff --git a/src/component/form/groupText/index.js b/src/component/form/groupText/index.js index 73b1a42f..e5e9ae6f 100644 --- a/src/component/form/groupText/index.js +++ b/src/component/form/groupText/index.js @@ -11,15 +11,15 @@ export const groupText = ({ if (text) { textElement.textContent = text; - }; + } if (classList.length > 0) { - classList.forEach((item, i) => { + classList.forEach((item) => { textElement.classList.add(item); }); - }; + } return textElement; diff --git a/src/component/form/helper/index.js b/src/component/form/helper/index.js index 5143a578..bccc5a4b 100644 --- a/src/component/form/helper/index.js +++ b/src/component/form/helper/index.js @@ -1,9 +1,8 @@ import { node } from '../../../utility/node'; -import { complexNode } from '../../../utility/complexNode'; import './index.css'; -export const helper = function({ +export const helper = function ({ text = 'text', complexText = false, classList = [] @@ -23,17 +22,17 @@ export const helper = function({ helper.appendChild(textNode); - }; + } - }; + } if (classList.length > 0) { - classList.forEach((item, i) => { + classList.forEach((item) => { helper.classList.add(item); }); - }; + } return helper; diff --git a/src/component/form/inline/index.js b/src/component/form/inline/index.js index da922183..47eebd03 100644 --- a/src/component/form/inline/index.js +++ b/src/component/form/inline/index.js @@ -2,7 +2,7 @@ import { node } from '../../../utility/node'; import './index.css'; -export const inline = function({ +export const inline = function ({ direction = 'horizontal', reverse = false, block = false, @@ -23,7 +23,7 @@ export const inline = function({ case 'vertical': inline.classList.add('form-inline-vertical'); break; - }; + } switch (gap) { @@ -39,11 +39,11 @@ export const inline = function({ inline.classList.add('form-inline-gap-large'); break; - }; + } if (equalGap) { inline.classList.add('form-inline-gap-equal'); - }; + } switch (justify) { @@ -59,19 +59,19 @@ export const inline = function({ inline.classList.add('form-inline-justify-right'); break; - }; + } if (reverse) { inline.classList.add('form-inline-reverse'); - }; + } if (block) { inline.classList.add('form-inline-block'); - }; + } if (wrap) { inline.classList.add('form-inline-wrap'); - }; + } return inline; diff --git a/src/component/form/input/checkbox/index.js b/src/component/form/input/checkbox/index.js index 4b7dff7f..b26cec74 100644 --- a/src/component/form/input/checkbox/index.js +++ b/src/component/form/input/checkbox/index.js @@ -14,31 +14,31 @@ export const checkbox = ({ if (id) { input.setAttribute('id', id); - }; + } if (value) { input.setAttribute('value', value); - }; + } if (checked) { input.setAttribute('checked', ''); - }; + } if (classList.length > 0) { - classList.forEach((item, i) => { + classList.forEach((item) => { input.classList.add(item); }); - }; + } if (func) { - input.addEventListener('change', (event) => { + input.addEventListener('change', () => { func(); }); - }; + } return input; diff --git a/src/component/form/input/color/index.js b/src/component/form/input/color/index.js index 0ca0ef08..44a7ed8e 100644 --- a/src/component/form/input/color/index.js +++ b/src/component/form/input/color/index.js @@ -2,7 +2,7 @@ import { node } from '../../../../utility/node'; import './index.css'; -export const color = function({ +export const color = function ({ id = false, value = '#000000', classList = [], @@ -13,23 +13,23 @@ export const color = function({ if (id) { input.setAttribute('id', id); - }; + } if (classList.length > 0) { - classList.forEach((item, i) => { + classList.forEach((item) => { input.classList.add(item); }); - }; + } if (func) { - input.addEventListener('change', (event) => { + input.addEventListener('change', () => { func(); }); - }; + } return input; diff --git a/src/component/form/input/file/index.js b/src/component/form/input/file/index.js index 7337500b..957328c7 100644 --- a/src/component/form/input/file/index.js +++ b/src/component/form/input/file/index.js @@ -12,23 +12,23 @@ export const file = ({ if (id) { input.setAttribute('id', id); - }; + } if (classList.length > 0) { - classList.forEach((item, i) => { + classList.forEach((item) => { input.classList.add(item); }); - }; + } if (func) { - input.addEventListener('change', (event) => { + input.addEventListener('change', () => { func(); }); - }; + } return input; diff --git a/src/component/form/input/inputButton/index.js b/src/component/form/input/inputButton/index.js index 22d93d45..6c1bf95f 100644 --- a/src/component/form/input/inputButton/index.js +++ b/src/component/form/input/inputButton/index.js @@ -2,7 +2,7 @@ import { node } from '../../../../utility/node'; import './index.css'; -export const inputButton = function({ +export const inputButton = function ({ children = false, inputHide = false, srOnly = false, @@ -12,7 +12,7 @@ export const inputButton = function({ const inputButtonElement = node('div|class:form-input-button', children); if (style.length > 0) { - style.forEach((item, i) => { + style.forEach((item) => { switch (item) { case 'link': inputButtonElement.classList.add('form-input-button-link'); @@ -30,17 +30,17 @@ export const inputButton = function({ inputButtonElement.classList.add('input-color-dot'); break; - }; + } }); - }; + } if (inputHide) { inputButtonElement.classList.add('form-input-hide'); - }; + } if (srOnly) { inputButtonElement.classList.add('form-input-button-sr-only'); - }; + } return inputButtonElement; diff --git a/src/component/form/input/number/index.js b/src/component/form/input/number/index.js index 3c5310ad..9b3a437d 100644 --- a/src/component/form/input/number/index.js +++ b/src/component/form/input/number/index.js @@ -15,35 +15,33 @@ export const number = ({ const input = node('input|type:number,min:' + min + ',max:' + max + ',step:' + step + ',tabindex:1'); - let delayUpdate = null; - if (id) { input.setAttribute('id', id); - }; + } if (value || (typeof value === 'number' && value === 0)) { input.setAttribute('value', value); - }; + } if (placeholder) { input.setAttribute('placeholder', placeholder); - }; + } if (classList.length > 0) { - classList.forEach((item, i) => { + classList.forEach((item) => { input.classList.add(item); }); - }; + } if (func) { - input.addEventListener('input', (event) => { + input.addEventListener('input', () => { func(); }); - }; + } return input; diff --git a/src/component/form/input/radio/index.js b/src/component/form/input/radio/index.js index 4f23b7f5..3177b9ff 100644 --- a/src/component/form/input/radio/index.js +++ b/src/component/form/input/radio/index.js @@ -2,7 +2,7 @@ import { node } from '../../../../utility/node'; import './index.css'; -export const radio = function({ +export const radio = function ({ id = false, radioGroup = false, value = false, @@ -15,33 +15,33 @@ export const radio = function({ if (id) { input.setAttribute('id', id); - }; + } if (radioGroup) { input.setAttribute('name', radioGroup); - }; + } if (value) { input.setAttribute('value', value); - }; + } if (checked) { input.setAttribute('checked', ''); - }; + } if (classList.length > 0) { - classList.forEach((item, i) => { + classList.forEach((item) => { input.classList.add(item); }); - }; + } if (func) { - input.addEventListener('change', (event) => { + input.addEventListener('change', () => { func(); }); - }; + } return input; diff --git a/src/component/form/input/range/index.js b/src/component/form/input/range/index.js index c9a6800a..4a08b74f 100644 --- a/src/component/form/input/range/index.js +++ b/src/component/form/input/range/index.js @@ -20,55 +20,55 @@ export const range = ({ if (id) { input.setAttribute('id', id); - }; + } if (classList.length > 0) { - classList.forEach((item, i) => { + classList.forEach((item) => { input.classList.add(item); }); - }; + } if (func) { - input.addEventListener('input', (event) => { + input.addEventListener('input', () => { func(); }); - }; + } if (focusFunc) { - input.addEventListener('focus', (event) => { + input.addEventListener('focus', () => { focusFunc(); }); - }; + } if (blurFunc) { - input.addEventListener('blur', (event) => { + input.addEventListener('blur', () => { blurFunc(); }); - }; + } if (mouseDownFunc) { - input.addEventListener('mousedown', (event) => { + input.addEventListener('mousedown', () => { mouseDownFunc(); }); - }; + } if (mouseUpFunc) { - input.addEventListener('mouseup', (event) => { + input.addEventListener('mouseup', () => { mouseUpFunc(); }); - }; + } return input; diff --git a/src/component/form/input/select/index.js b/src/component/form/input/select/index.js index 8aa9afb5..ebac9a04 100644 --- a/src/component/form/input/select/index.js +++ b/src/component/form/input/select/index.js @@ -4,7 +4,7 @@ import { trimString } from '../../../../utility/trimString'; import './index.css'; -export const select = function({ +export const select = function ({ id = false, classList = [], option = [], @@ -16,27 +16,27 @@ export const select = function({ if (id) { select.setAttribute('id', id); - }; + } if (classList.length > 0) { - classList.forEach((item, i) => { + classList.forEach((item) => { select.classList.add(item); }); - }; + } if (func) { - select.addEventListener('change', (event) => { + select.addEventListener('change', () => { func(); }); - }; + } if (option.length > 0) { - option.forEach((item, i) => { + option.forEach((item) => { select.appendChild( complexNode({ @@ -53,7 +53,7 @@ export const select = function({ select.selectedIndex = selected; - }; + } return select; diff --git a/src/component/form/input/text/index.js b/src/component/form/input/text/index.js index 3d3ca463..5d062871 100644 --- a/src/component/form/input/text/index.js +++ b/src/component/form/input/text/index.js @@ -16,39 +16,39 @@ export const text = ({ if (id) { input.setAttribute('id', id); - }; + } if (value) { input.setAttribute('value', value); - }; + } if (typeof min === 'number') { input.setAttribute('minlength', min); - }; + } if (typeof max === 'number') { input.setAttribute('maxlength', max); - }; + } if (placeholder) { input.setAttribute('placeholder', placeholder); - }; + } if (classList.length > 0) { - classList.forEach((item, i) => { + classList.forEach((item) => { input.classList.add(item); }); - }; + } if (func) { - input.addEventListener('input', (event) => { + input.addEventListener('input', () => { func(); }); - }; + } return input; diff --git a/src/component/form/input/textarea/index.js b/src/component/form/input/textarea/index.js index 2f724825..978d4ea5 100644 --- a/src/component/form/input/textarea/index.js +++ b/src/component/form/input/textarea/index.js @@ -2,7 +2,7 @@ import { node } from '../../../../utility/node'; import './index.css'; -export const textarea = function({ +export const textarea = function ({ id = false, value = false, placeholder = false, @@ -14,31 +14,31 @@ export const textarea = function({ if (id) { textarea.setAttribute('id', id); - }; + } if (value) { textarea.setAttribute('value', value); - }; + } if (placeholder) { textarea.setAttribute('placeholder', placeholder); - }; + } if (classList.length > 0) { - classList.forEach((item, i) => { + classList.forEach((item) => { textarea.classList.add(item); }); - }; + } if (func) { - textarea.addEventListener('input', (event) => { + textarea.addEventListener('input', () => { func(); }); - }; + } return textarea; diff --git a/src/component/form/label/index.js b/src/component/form/label/index.js index 03a99bfc..993a9b67 100644 --- a/src/component/form/label/index.js +++ b/src/component/form/label/index.js @@ -18,11 +18,11 @@ export const label = ({ label = node('label|for:' + forInput); } else { label = node('label'); - }; + } if (noPadding) { label.classList.add('label-no-padding'); - }; + } const labelBlock = node('span|class:label-block'); @@ -31,17 +31,17 @@ export const label = ({ labelBlock.classList.add('sr-only'); } else { label.classList.add('sr-only'); - }; - }; + } + } if (text) { labelBlock.appendChild(node('span:' + text + '|class:label-block-item')); - }; + } if (description) { if (Array.isArray(description)) { - description.forEach((item, i) => { + description.forEach((item) => { labelBlock.appendChild(node('span:' + item + '|class:label-block-item small muted')); }); @@ -49,24 +49,24 @@ export const label = ({ labelBlock.appendChild(node('span:' + description + '|class:label-block-item small muted')); - }; - }; + } + } if (text || description) { label.appendChild(labelBlock); - }; + } if (icon) { label.prepend(node('span|class:label-icon')); - }; + } if (classList.length > 0) { - classList.forEach((item, i) => { + classList.forEach((item) => { label.classList.add(item); }); - }; + } return label; diff --git a/src/component/form/sticky/index.js b/src/component/form/sticky/index.js index d271ae39..42c6b1ea 100644 --- a/src/component/form/sticky/index.js +++ b/src/component/form/sticky/index.js @@ -2,7 +2,7 @@ import { node } from '../../../utility/node'; import './index.css'; -export const sticky = function({ +export const sticky = function ({ children = false } = {}) { diff --git a/src/component/greeting/index.js b/src/component/greeting/index.js index d79c3f7a..5cbda3af 100644 --- a/src/component/greeting/index.js +++ b/src/component/greeting/index.js @@ -3,13 +3,12 @@ import { state } from '../state'; import { node } from '../../utility/node'; import { trimString } from '../../utility/trimString'; import { isValidString } from '../../utility/isValidString'; -import { complexNode } from '../../utility/complexNode'; import moment from 'moment'; import './index.css'; -export const Greeting = function({} = {}) { +export const Greeting = function () { this.now; @@ -22,7 +21,7 @@ export const Greeting = function({} = {}) { if (state.get.current().header.greeting.show) { this.element.greeting.appendChild(this.element.text); - }; + } }; @@ -70,11 +69,11 @@ export const Greeting = function({} = {}) { value = this.message[Math.floor(this.now.hours() / 6)]; - }; + } break; - }; + } if (isValidString(state.get.current().header.greeting.name)) { @@ -86,9 +85,9 @@ export const Greeting = function({} = {}) { value = value + ', ' + trimString(state.get.current().header.greeting.name); - }; + } - }; + } this.element.text.innerHTML = value; diff --git a/src/component/group/index.js b/src/component/group/index.js index 4cce662d..bbdd492a 100644 --- a/src/component/group/index.js +++ b/src/component/group/index.js @@ -3,21 +3,16 @@ import { data } from '../data'; import { layout } from '../layout'; import { bookmark } from '../bookmark'; import { header } from '../header'; -import { groupDefault } from '../groupDefault'; import { groupAndBookmark } from '../groupAndBookmark'; import { GroupArea } from '../groupArea'; -import { GroupEmpty } from '../groupEmpty'; import { StagedGroup } from '../stagedGroup'; import { GroupForm } from '../groupForm'; import { Modal } from '../modal'; import { SearchEmpty } from '../searchEmpty'; import { BookmarkEmpty } from '../bookmarkEmpty'; -import { node } from '../../utility/node'; import { clearChildNode } from '../../utility/clearChildNode'; -import { isValidString } from '../../utility/isValidString'; -import { trimString } from '../../utility/trimString'; import { applyCSSVar } from '../../utility/applyCSSVar'; import { applyCSSClass } from '../../utility/applyCSSClass'; import { applyCSSState } from '../../utility/applyCSSState'; @@ -69,13 +64,13 @@ group.item = { bookmark.element.group.appendChild(groupArea.group()); - }; + } } else { bookmark.element.group.appendChild(groupArea.group()); - }; + } }; @@ -115,7 +110,7 @@ group.item = { addSearchEmpty(); - }; + } } else { @@ -129,7 +124,7 @@ group.item = { }); - }; + } } else { @@ -145,9 +140,9 @@ group.item = { addBookmarkEmpty(); - }; + } - }; + } }, clear: () => { @@ -180,7 +175,7 @@ group.edit = { group.edit.close(); } else { group.edit.open(); - }; + } }, render: () => { @@ -189,17 +184,17 @@ group.edit = { if (group.area.current.length > 0) { - group.area.current.forEach((item, i) => { + group.area.current.forEach((item) => { if (state.get.current().group.edit) { item.control.enable(); } else { item.control.disable(); - }; + } }); - }; + } } }; diff --git a/src/component/groupAndBookmark/index.js b/src/component/groupAndBookmark/index.js index 4f41a30e..9ee427b7 100644 --- a/src/component/groupAndBookmark/index.js +++ b/src/component/groupAndBookmark/index.js @@ -1,4 +1,3 @@ -import { data } from '../data'; import { state } from '../state'; import { bookmark } from '../bookmark'; import { group } from '../group'; @@ -21,17 +20,17 @@ groupAndBookmark.render = () => { group.sort.sortable.option('disabled', true); - }; + } if (bookmark.sort.sortable.length > 0) { - bookmark.sort.sortable.forEach((item, i) => { + bookmark.sort.sortable.forEach((item) => { item.option('disabled', true); }); - }; + } } else { @@ -40,7 +39,7 @@ groupAndBookmark.render = () => { bookmark.sort.bind(); - }; + } }; diff --git a/src/component/groupArea/index.js b/src/component/groupArea/index.js index 4da5df1a..f5b46020 100644 --- a/src/component/groupArea/index.js +++ b/src/component/groupArea/index.js @@ -1,6 +1,5 @@ import { state } from '../state'; import { data } from '../data'; -import { theme } from '../theme'; import { group } from '../group'; import { layout } from '../layout'; import { bookmark } from '../bookmark'; @@ -12,12 +11,10 @@ import { GroupForm } from '../groupForm'; import { StagedGroup } from '../stagedGroup'; import { node } from '../../utility/node'; -import { complexNode } from '../../utility/complexNode'; import { isValidString } from '../../utility/isValidString'; -import { trimString } from '../../utility/trimString'; import { clearChildNode } from '../../utility/clearChildNode'; -export const GroupArea = function({ +export const GroupArea = function ({ groupData = {} } = {}) { @@ -57,7 +54,7 @@ export const GroupArea = function({ if (groupData.position.destination < 0) { groupData.position.destination = 0; - }; + } group.item.mod.move(groupData); @@ -88,7 +85,7 @@ export const GroupArea = function({ if (groupData.position.destination > bookmark.all.length - 1) { groupData.position.destination = bookmark.all.length - 1; - }; + } group.item.mod.move(groupData); @@ -188,7 +185,7 @@ export const GroupArea = function({ if (state.get.current().bookmark.newTab) { - groupData.group.items.forEach((item, i) => { + groupData.group.items.forEach((item) => { chrome.tabs.create({ url: item.url }); }); @@ -196,15 +193,15 @@ export const GroupArea = function({ const first = groupData.group.items.shift(); - groupData.group.items.forEach((item, i) => { + groupData.group.items.forEach((item) => { chrome.tabs.create({ url: item.url }); }); window.location.href = first.url; - }; + } - }; + } } }; @@ -230,12 +227,12 @@ export const GroupArea = function({ groupData.group.collapse = false; } else { groupData.group.collapse = true; - }; + } }, video: () => { - bookmark.tile.current.forEach((item, i) => { + bookmark.tile.current.forEach((item) => { if (item.data.position.origin.group === groupData.position.origin) { if (item.video) { @@ -243,9 +240,9 @@ export const GroupArea = function({ item.video.pause(); } else { item.video.play(); - }; - }; - }; + } + } + } }); @@ -256,11 +253,11 @@ export const GroupArea = function({ if (groupData.group.name.show && isValidString(groupData.group.name.text)) { this.element.group.classList.add('is-group-header'); - }; + } if (groupData.group.toolbar.collapse.show || (groupData.group.toolbar.openAll.show && groupData.group.items.length > 0)) { this.element.group.classList.add('is-group-toolbar'); - }; + } }; @@ -268,7 +265,7 @@ export const GroupArea = function({ for (var key in this.control.button) { this.control.button[key].disable(); - }; + } this.control.searchState(); @@ -278,7 +275,7 @@ export const GroupArea = function({ for (var key in this.control.button) { this.control.button[key].enable(); - }; + } this.control.searchState(); @@ -294,7 +291,7 @@ export const GroupArea = function({ this.control.button.up.enable(); this.control.button.down.enable(); this.control.button.sort.enable(); - }; + } }; @@ -320,15 +317,15 @@ export const GroupArea = function({ if (groupData.group.name.show && isValidString(groupData.group.name.text)) { this.element.header.appendChild(this.element.name.name); - }; + } if (groupData.group.toolbar.collapse.show) { this.element.toolbar.group.appendChild(this.collapse.button.button); - }; + } if (groupData.group.toolbar.openAll.show && groupData.group.items.length > 0) { this.element.toolbar.group.appendChild(this.openAll.button.button); - }; + } if (groupData.group.toolbar.collapse.show || (groupData.group.toolbar.openAll.show && groupData.group.items.length > 0)) { @@ -336,7 +333,7 @@ export const GroupArea = function({ this.element.header.appendChild(this.element.toolbar.toolbar); - }; + } this.element.group.appendChild(this.element.header); @@ -348,7 +345,7 @@ export const GroupArea = function({ this.control.enable(); } else { this.control.disable(); - }; + } }; @@ -386,7 +383,7 @@ export const GroupArea = function({ this.collapse.button.style.update(['line']); - }; + } if (groupData.group.collapse) { @@ -396,7 +393,7 @@ export const GroupArea = function({ this.element.group.classList.remove('is-group-collapse'); - }; + } }; diff --git a/src/component/groupEmpty/index.js b/src/component/groupEmpty/index.js index 14e08505..91bfc32a 100644 --- a/src/component/groupEmpty/index.js +++ b/src/component/groupEmpty/index.js @@ -1,4 +1,3 @@ -import { state } from '../state'; import { bookmark } from '../bookmark'; import { Button } from '../button'; @@ -7,7 +6,7 @@ import { node } from '../../utility/node'; import './index.css'; -export const GroupEmpty = function({ +export const GroupEmpty = function ({ groupIndex = false } = {}) { diff --git a/src/component/groupForm/index.js b/src/component/groupForm/index.js index 006065f6..6bb08bd8 100644 --- a/src/component/groupForm/index.js +++ b/src/component/groupForm/index.js @@ -1,40 +1,21 @@ -import { state } from '../state'; -import { data } from '../data'; -import { theme } from '../theme'; import { bookmark } from '../bookmark'; -import { groupDefault } from '../groupDefault'; import * as form from '../form'; import { Button } from '../button'; -import { Suggest } from '../suggest'; -import { Collapse } from '../collapse'; -import { Tab } from '../tab'; -import { Control_helperText } from '../control/helperText'; -import { Control_inputButton } from '../control/inputButton'; -import { Control_groupText } from '../control/groupText'; -import { Control_radio } from '../control/radio'; -import { Control_radioGrid } from '../control/radioGrid'; import { Control_checkbox } from '../control/checkbox'; -import { Control_slider } from '../control/slider'; -import { Control_sliderSlim } from '../control/sliderSlim'; -import { Control_colorMixer } from '../control/colorMixer'; -import { Control_color } from '../control/color'; import { Control_text } from '../control/text'; import { Control_select } from '../control/select'; import { node } from '../../utility/node'; -import { complexNode } from '../../utility/complexNode'; -import { isValidString } from '../../utility/isValidString'; -import { trimString } from '../../utility/trimString'; import { ordinalNumber } from '../../utility/ordinalNumber'; import { randomString } from '../../utility/randomString'; import { randomNumber } from '../../utility/randomNumber'; import './index.css'; -export const GroupForm = function({ +export const GroupForm = function ({ groupData = false } = {}) { @@ -55,19 +36,19 @@ export const GroupForm = function({ if (groupData.type.new) { count++; - }; + } for (var i = 1; i <= count; i++) { option.push(ordinalNumber(i)); - }; + } } else { option.push(ordinalNumber(1)); - }; + } return option; @@ -141,7 +122,7 @@ export const GroupForm = function({ } else { this.control.group.name.text.disable(); this.control.group.name.random.disable(); - }; + } }; @@ -247,7 +228,7 @@ export const GroupForm = function({ this.element.form.addEventListener('keydown', (event) => { - if (event.keyCode == 13) { event.preventDefault(); return false; }; + if (event.keyCode == 13) { event.preventDefault(); return false; } }); diff --git a/src/component/header/index.js b/src/component/header/index.js index acf4c948..e48e9fd3 100644 --- a/src/component/header/index.js +++ b/src/component/header/index.js @@ -1,5 +1,5 @@ -import { state } from '../state'; import { data } from '../data'; +import { state } from '../state'; import { layout } from '../layout'; import { toolbar } from '../toolbar'; @@ -50,7 +50,7 @@ header.item.mod = { const headerItems = ['greeting', 'transitional', 'clock', 'date', 'search', 'toolbar']; - headerItems.reverse().forEach((item, i) => { + headerItems.reverse().forEach((item) => { switch (item) { @@ -79,19 +79,19 @@ header.item.mod = { position = state.get.current().header.order.indexOf('greeting') + 1; - }; + } state.get.current().header.order.splice(position, 0, item); - }; + } } else { if (state.get.current().header.order.includes(item)) { state.get.current().header.order.splice(state.get.current().header.order.indexOf(item), 1); - }; + } - }; + } break; @@ -120,19 +120,19 @@ header.item.mod = { position = state.get.current().header.order.indexOf('greeting') + 1; - }; + } state.get.current().header.order.splice(position, 0, item); - }; + } } else { if (state.get.current().header.order.includes(item)) { state.get.current().header.order.splice(state.get.current().header.order.indexOf(item), 1); - }; + } - }; + } break; @@ -157,19 +157,19 @@ header.item.mod = { position = state.get.current().header.order.indexOf('date'); - }; + } state.get.current().header.order.splice(position, 0, item); - }; + } } else { if (state.get.current().header.order.includes(item)) { state.get.current().header.order.splice(state.get.current().header.order.indexOf(item), 1); - }; + } - }; + } break; @@ -181,15 +181,15 @@ header.item.mod = { state.get.current().header.order.unshift(item); - }; + } } else { if (state.get.current().header.order.includes(item)) { state.get.current().header.order.splice(state.get.current().header.order.indexOf(item), 1); - }; + } - }; + } break; @@ -213,19 +213,19 @@ header.item.mod = { position = state.get.current().header.order.length; - }; + } state.get.current().header.order.splice(position, 0, item); - }; + } } else { if (state.get.current().header.order.includes(item)) { state.get.current().header.order.splice(state.get.current().header.order.indexOf(item), 1); - }; + } - }; + } break; @@ -237,7 +237,7 @@ header.item.mod = { if (state.get.current().header.order.includes(item)) { state.get.current().header.order.splice(state.get.current().header.order.indexOf(item), 1); - }; + } break; @@ -245,15 +245,15 @@ header.item.mod = { if (!state.get.current().header.order.includes(item)) { state.get.current().header.order.push(item); - }; + } break; - }; + } break; - }; + } }); @@ -276,7 +276,7 @@ header.item.render = () => { header.element.search = new Search(); - order.forEach((item, i) => { + order.forEach((item) => { switch (item) { @@ -295,7 +295,7 @@ header.item.render = () => { header.element.header.appendChild(headerItem.item()); - }; + } break; @@ -312,7 +312,7 @@ header.item.render = () => { header.element.header.appendChild(headerItem.item()); - }; + } break; @@ -329,7 +329,7 @@ header.item.render = () => { header.element.header.appendChild(headerItem.item()); - }; + } break; @@ -357,7 +357,7 @@ header.item.render = () => { header.element.header.appendChild(headerItem.item()); - }; + } break; @@ -374,7 +374,7 @@ header.item.render = () => { header.element.header.appendChild(headerItem.item()); - }; + } break; @@ -382,8 +382,7 @@ header.item.render = () => { switch (state.get.current().toolbar.location) { - case 'header': - + case 'header': { const headerItem = new HeaderItem({ name: item, child: toolbar.current.toolbar() @@ -394,18 +393,19 @@ header.item.render = () => { header.element.header.appendChild(headerItem.item()); break; + } - }; + } break; - }; + } }); layout.element.header.appendChild(header.element.area); - const sortable = Sortable.create(header.element.header, { + Sortable.create(header.element.header, { handle: '.header-control-sort', ghostClass: 'header-sort-placeholder', animation: 500, @@ -429,7 +429,7 @@ header.item.render = () => { html.classList.add('is-header-show'); } else { html.classList.remove('is-header-show'); - }; + } }; @@ -468,7 +468,7 @@ header.edit = { header.edit.close(); } else { header.edit.open(); - }; + } }, render: () => { @@ -476,16 +476,16 @@ header.edit = { applyCSSState('header.edit'); if (header.item.current.length > 0) { - header.item.current.forEach((item, i) => { + header.item.current.forEach((item) => { if (state.get.current().header.edit) { item.control.enable(); } else { item.control.disable(); - }; + } }); - }; + } } }; diff --git a/src/component/headerItem/index.js b/src/component/headerItem/index.js index 8e5e1320..0f714b01 100644 --- a/src/component/headerItem/index.js +++ b/src/component/headerItem/index.js @@ -1,6 +1,4 @@ import { state } from '../state'; -import { data } from '../data'; -import { header } from '../header'; import { Button } from '../button'; @@ -8,9 +6,8 @@ import { node } from '../../utility/node'; import './index.css'; -export const HeaderItem = function({ +export const HeaderItem = function ({ name = false, - index = false, child = false } = {}) { @@ -40,13 +37,13 @@ export const HeaderItem = function({ this.control.disable = () => { for (var key in this.control.button) { this.control.button[key].disable(); - }; + } }; this.control.enable = () => { for (var key in this.control.button) { this.control.button[key].enable(); - }; + } }; this.assemble = () => { @@ -62,7 +59,7 @@ export const HeaderItem = function({ this.element.content.appendChild(this.element.body); - }; + } this.element.item.appendChild(this.element.content); @@ -76,7 +73,7 @@ export const HeaderItem = function({ this.control.enable(); } else { this.control.disable(); - }; + } return this.element.item; diff --git a/src/component/icon/index.js b/src/component/icon/index.js index 89b19e73..1530a4d1 100644 --- a/src/component/icon/index.js +++ b/src/component/icon/index.js @@ -126,11 +126,11 @@ icon.render = (name) => { if (icon.all[name].fill) { svg.setAttribute('clip-rule', icon.all[name].clip); - }; + } if (icon.all[name].fill) { svg.setAttribute('fill-rule', icon.all[name].fill); - }; + } const path = document.createElementNS('http://www.w3.org/2000/svg', 'path'); diff --git a/src/component/importForm/index.js b/src/component/importForm/index.js index 7c99dc9f..5613e043 100644 --- a/src/component/importForm/index.js +++ b/src/component/importForm/index.js @@ -1,28 +1,14 @@ -import { state } from '../state'; -import { data } from '../data'; -import { bookmark } from '../bookmark'; import * as form from '../form'; -import { Button } from '../button'; -import { Control_helperText } from '../control/helperText'; -import { Control_inputButton } from '../control/inputButton'; -import { Control_groupText } from '../control/groupText'; import { Control_radio } from '../control/radio'; -import { Control_radioGrid } from '../control/radioGrid'; import { Control_checkbox } from '../control/checkbox'; -import { Control_slider } from '../control/slider'; -import { Control_sliderSlim } from '../control/sliderSlim'; -import { Control_colorMixer } from '../control/colorMixer'; -import { Control_color } from '../control/color'; -import { Control_text } from '../control/text'; -import { Control_select } from '../control/select'; import { node } from '../../utility/node'; import { complexNode } from '../../utility/complexNode'; -export const ImportForm = function({ +export const ImportForm = function ({ dataToImport = false, state = false } = {}) { @@ -41,7 +27,7 @@ export const ImportForm = function({ let count = 0; - dataToImport.bookmark.forEach((item, i) => { count = count + item.items.length }); + dataToImport.bookmark.forEach((item) => { count = count + item.items.length; }); return count; @@ -56,7 +42,7 @@ export const ImportForm = function({ path: 'bookmark.include', id: 'bookmark-include', labelText: 'Bookmarks', - description: [`This includes ${this.count.bookmark()} ${this.count.bookmark() > 1 ? `Bookmarks` : `Bookmark`} in ${dataToImport.bookmark.length} ${dataToImport.bookmark.length > 1 ? `Groups` : `Group`}.`, 'Bookmarks will keep any custom Colours, Accents and Borders when imported.'], + description: [`This includes ${this.count.bookmark()} ${this.count.bookmark() > 1 ? 'Bookmarks' : 'Bookmark'} in ${dataToImport.bookmark.length} ${dataToImport.bookmark.length > 1 ? 'Groups' : 'Group'}.`, 'Bookmarks will keep any custom Colours, Accents and Borders when imported.'], action: () => { this.disable(); } @@ -98,7 +84,7 @@ export const ImportForm = function({ this.control.import.bookmark.type.enable(); } else { this.control.import.bookmark.type.disable(); - }; + } }; diff --git a/src/component/index.js b/src/component/index.js index 415e197f..ed80aed8 100644 --- a/src/component/index.js +++ b/src/component/index.js @@ -1,31 +1,5 @@ -import { reset } from './reset'; +import '../style/reset.css'; -import { Button } from './button'; -import { Collapse } from './collapse'; -import { Dropdown } from './dropdown'; -import { Edge } from './edge'; -import { KeyboardShortcut } from './keyboardShortcut'; -import { Modal } from './modal'; -import { Shade } from './shade'; -import { Suggest } from './suggest'; -import { Tab } from './tab'; -import { ToolbarControl } from './toolbarControl'; -import { Link } from './link'; - -import { Control_checkbox } from './control/checkbox'; -import { Control_color } from './control/color'; -import { Control_colorMixer } from './control/colorMixer'; -import { Control_groupText } from './control/groupText'; -import { Control_helperText } from './control/helperText'; -import { Control_inputButton } from './control/inputButton'; -import { Control_radio } from './control/radio'; -import { Control_radioGrid } from './control/radioGrid'; -import { Control_slider } from './control/slider'; -import { Control_sliderSlim } from './control/sliderSlim'; -import { Control_text } from './control/text'; -import { Control_select } from './control/select'; - -import { appName } from './appName'; import { base } from './base'; import { state } from './state'; import { data } from './data'; @@ -48,7 +22,6 @@ import { groupAndBookmark } from './groupAndBookmark'; import * as form from './form'; export const component = { - appName, base, state, data, diff --git a/src/component/keyboard/index.js b/src/component/keyboard/index.js index 3cd80a83..344464cb 100644 --- a/src/component/keyboard/index.js +++ b/src/component/keyboard/index.js @@ -22,7 +22,7 @@ keyboard.esc = new KeyboardShortcut({ group.edit.close(); header.edit.close(); toolbar.current.update.edit(); - }; + } data.save(); } }); @@ -35,7 +35,7 @@ keyboard.ctrAltD = new KeyboardShortcut({ theme.style.toggle(); if (themeSetting.control.style.update) { themeSetting.control.style.update(); - }; + } data.save(); } }); @@ -47,7 +47,7 @@ keyboard.ctrAltA = new KeyboardShortcut({ action: () => { if (!state.get.current().bookmark.add) { bookmark.add.render(); - }; + } } }); @@ -71,7 +71,7 @@ keyboard.ctrAltG = new KeyboardShortcut({ action: () => { if (!state.get.current().group.add) { group.add.render(); - }; + } data.save(); } }); @@ -94,7 +94,7 @@ keyboard.ctrAltR = new KeyboardShortcut({ toolbar.current.update.accent(); if (themeSetting.control.accent.color) { themeSetting.control.accent.color.update(); - }; + } applyCSSVar([ 'theme.accent.rgb.r', 'theme.accent.rgb.g', diff --git a/src/component/keyboardShortcut/index.js b/src/component/keyboardShortcut/index.js index 97386651..98ba3df4 100644 --- a/src/component/keyboardShortcut/index.js +++ b/src/component/keyboardShortcut/index.js @@ -1,4 +1,4 @@ -export const KeyboardShortcut = function({ +export const KeyboardShortcut = function ({ keycode = false, ctrl = false, alt = false, @@ -13,10 +13,10 @@ export const KeyboardShortcut = function({ if (action) { action(); - }; + } - }; - }; + } + } }; this.add = () => { window.addEventListener('keydown', this.action); }; diff --git a/src/component/layout/index.js b/src/component/layout/index.js index c2dea2ef..3cd99b8e 100644 --- a/src/component/layout/index.js +++ b/src/component/layout/index.js @@ -1,10 +1,6 @@ import { state } from '../state'; -import { data } from '../data'; -import { bookmark } from '../bookmark'; import { node } from '../../utility/node'; -import { get } from '../../utility/get'; -import { set } from '../../utility/set'; import { clearChildNode } from '../../utility/clearChildNode'; import { applyCSSVar } from '../../utility/applyCSSVar'; import { applyCSSClass } from '../../utility/applyCSSClass'; @@ -14,7 +10,7 @@ import { isValidString } from '../../utility/isValidString'; import './index.css'; -const layout = {} +const layout = {}; layout.element = { layout: node('div|class:layout'), @@ -38,7 +34,7 @@ layout.area = { let breakpoint; - entries.forEach(function(entry) { + entries.forEach(function (entry) { if (entry.contentRect.width <= size.sm) { breakpoint = 'xs'; @@ -52,7 +48,7 @@ layout.area = { breakpoint = 'xl'; } else if (entry.contentRect.width > size.xxl) { breakpoint = 'xxl'; - }; + } }); @@ -88,9 +84,9 @@ layout.area = { layout.element.layout.removeChild(layout.element.header); - }; + } - }; + } if (state.get.current().theme.layout.divider.size > 0) { @@ -102,9 +98,9 @@ layout.area = { layout.element.layout.removeChild(layout.element.divider); - }; + } - }; + } if (state.get.current().bookmark.show) { @@ -116,9 +112,9 @@ layout.area = { layout.element.layout.removeChild(layout.element.bookmark); - }; + } - }; + } }, clear: () => { @@ -145,7 +141,7 @@ layout.breakpoint = { const size = ['xs', 'sm', 'md', 'lg', 'xl', 'xxl']; - size.forEach((item, i) => { + size.forEach((item) => { html.classList.remove('is-layout-breakpoint-' + item); }); @@ -174,7 +170,7 @@ layout.breakpoint = { html.classList.add('is-layout-breakpoint-xxl'); break; - }; + } } }; @@ -191,7 +187,7 @@ layout.title = { title.textContent = 'New Tab'; - }; + } } }; @@ -209,7 +205,7 @@ layout.favicon = { favicon.href = 'icon/favicon.svg'; - }; + } } }; diff --git a/src/component/link/index.js b/src/component/link/index.js index d8566a16..a1d0e493 100644 --- a/src/component/link/index.js +++ b/src/component/link/index.js @@ -1,15 +1,13 @@ import { icon } from '../icon'; -import { form } from '../form'; import { node } from '../../utility/node'; import { complexNode } from '../../utility/complexNode'; -export const Link = function({ +export const Link = function ({ text = 'Link', href = '#', iconName = false, iconPosition = 'right', - image = false, linkButton = false, style = [], title = false, @@ -32,7 +30,7 @@ export const Link = function({ this.element.link.classList.add('button'); if (style.length > 0) { - style.forEach((item, i) => { + style.forEach((item) => { switch (item) { @@ -48,18 +46,18 @@ export const Link = function({ this.element.link.classList.add('button-ring'); break; - }; + } }); - }; + } - }; + } const linkText = node('span:' + text); if (linkButton) { linkText.classList.add('button-text'); - }; + } this.element.link.appendChild(linkText); @@ -75,33 +73,33 @@ export const Link = function({ this.element.link.append(icon.render(iconName)); break; - }; + } - }; + } if (openNew) { this.element.link.setAttribute('target', '_blank'); - }; + } if (title) { this.element.link.setAttribute('title', title); - }; + } if (classList.length > 0) { - classList.forEach((item, i) => { + classList.forEach((item) => { this.element.link.classList.add(item); }); - }; + } }; this.bind = () => { if (action) { - this.element.link.addEventListener('click', (event) => { + this.element.link.addEventListener('click', () => { action(); }); - }; + } }; diff --git a/src/component/menu/index.js b/src/component/menu/index.js index 0b42fde9..2a6738c8 100644 --- a/src/component/menu/index.js +++ b/src/component/menu/index.js @@ -1,17 +1,8 @@ import { state } from '../state'; -import { data } from '../data'; -import { form } from '../form'; -import { bookmark } from '../bookmark'; -import { theme } from '../theme'; -import { appName } from '../appName'; +import { APP_NAME } from '../../constant'; -import { Button } from '../button'; import { MenuFrame } from '../menuFrame'; -import { MenuNav } from '../menuNav'; -import { Shade } from '../shade'; -import { node } from '../../utility/node'; -import { clearChildNode } from '../../utility/clearChildNode'; const menu = {}; @@ -26,7 +17,7 @@ menu.navData = [ { name: 'Data', active: false, overscroll: true, sub: ['Restore', 'Backup', 'Clear'] }, { name: 'Support', active: false, overscroll: false }, { name: 'Coffee', active: false, overscroll: false }, - { name: appName, active: false, overscroll: false } + { name: APP_NAME, active: false, overscroll: false } ]; menu.mod = {}; @@ -45,7 +36,7 @@ menu.open = (name) => { menu.element.frame.menuNav.state.toggle(name); - }; + } menu.element.frame.open(); @@ -55,7 +46,7 @@ menu.close = () => { if (menu.element.frame) { menu.element.frame.close(); - }; + } }; @@ -65,7 +56,7 @@ menu.toggle = () => { menu.close(); } else { menu.open(); - }; + } }; diff --git a/src/component/menuClose/index.js b/src/component/menuClose/index.js index 724dfc98..99c8483b 100644 --- a/src/component/menuClose/index.js +++ b/src/component/menuClose/index.js @@ -6,7 +6,7 @@ import { node } from '../../utility/node'; import './index.css'; -export const MenuClose = function() { +export const MenuClose = function () { this.element = { close: node('div|class:menu-close') diff --git a/src/component/menuContent/appSetting/index.js b/src/component/menuContent/appSetting/index.js index 66553e23..35bf58b2 100644 --- a/src/component/menuContent/appSetting/index.js +++ b/src/component/menuContent/appSetting/index.js @@ -1,54 +1,22 @@ -import { state } from '../../state'; -import { data } from '../../data'; -import { header } from '../../header'; -import { bookmark } from '../../bookmark'; -import { theme } from '../../theme'; import { version } from '../../version'; -import { menu } from '../../menu'; -import { icon } from '../../icon'; import { logo } from '../../logo'; -import { layout } from '../../layout'; -import { toolbar } from '../../toolbar'; -import { appName } from '../../appName'; +import { APP_NAME } from '../../../constant'; -import * as form from '../../form'; -import { Button } from '../../button'; -import { Collapse } from '../../collapse'; -import { Edge } from '../../edge'; -import { Alert } from '../../alert'; import { Link } from '../../link'; -import { Control_helperText } from '../../control/helperText'; -import { Control_inputButton } from '../../control/inputButton'; -import { Control_groupText } from '../../control/groupText'; -import { Control_radio } from '../../control/radio'; -import { Control_radioGrid } from '../../control/radioGrid'; -import { Control_checkbox } from '../../control/checkbox'; -import { Control_slider } from '../../control/slider'; -import { Control_sliderSlim } from '../../control/sliderSlim'; -import { Control_sliderDouble } from '../../control/sliderDouble'; -import { Control_colorMixer } from '../../control/colorMixer'; -import { Control_color } from '../../control/color'; -import { Control_text } from '../../control/text'; -import { Control_textReset } from '../../control/textReset'; -import { Control_textarea } from '../../control/textarea'; import { node } from '../../../utility/node'; -import { complexNode } from '../../../utility/complexNode'; -import { applyCSSVar } from '../../../utility/applyCSSVar'; -import { applyCSSClass } from '../../../utility/applyCSSClass'; -import { applyCSSState } from '../../../utility/applyCSSState'; const appSetting = {}; -appSetting[appName.toLowerCase()] = (parent) => { +appSetting[APP_NAME.toLowerCase()] = (parent) => { - const githubLink = new Link({ text: 'GitHub.', href: 'https://github.com/zombieFox/' + appName, openNew: true }); + const githubLink = new Link({ text: 'GitHub.', href: 'https://github.com/zombieFox/' + APP_NAME, openNew: true }); - const redditLink = new Link({ text: `Reddit ${appName} community.`, href: 'https://www.reddit.com/r/' + appName, openNew: true }); + const redditLink = new Link({ text: `Reddit ${APP_NAME} community.`, href: 'https://www.reddit.com/r/' + APP_NAME, openNew: true }); - const licenseLink = new Link({ text: 'GNU General Public License v3.0', href: 'https://github.com/zombieFox/' + appName + '/blob/master/license', openNew: true }); + const licenseLink = new Link({ text: 'GNU General Public License v3.0', href: 'https://github.com/zombieFox/' + APP_NAME + '/blob/master/license', openNew: true }); const para1 = node('p'); @@ -60,14 +28,14 @@ appSetting[appName.toLowerCase()] = (parent) => { const para3 = node('p'); - para3.innerHTML = `${appName} uses the ${licenseLink.link().outerHTML}`; + para3.innerHTML = `${APP_NAME} uses the ${licenseLink.link().outerHTML}`; parent.appendChild( node('div', [ node('div|class:version', [ logo.render(), node('div|class:version-details', [ - node('h1:' + appName + '|class:version-app-name'), + node('h1:' + APP_NAME + '|class:version-app-name'), node('p:Version ' + version.number + '|class:version-number'), node('p:' + version.name + '|class:version-name small') ]) @@ -81,4 +49,4 @@ appSetting[appName.toLowerCase()] = (parent) => { }; -export { appSetting } +export { appSetting }; diff --git a/src/component/menuContent/bookmarkSetting/index.js b/src/component/menuContent/bookmarkSetting/index.js index b0fca5aa..0a785678 100644 --- a/src/component/menuContent/bookmarkSetting/index.js +++ b/src/component/menuContent/bookmarkSetting/index.js @@ -1,14 +1,7 @@ import { state } from '../../state'; import { data } from '../../data'; -import { header } from '../../header'; import { bookmark } from '../../bookmark'; -import { theme } from '../../theme'; -import { version } from '../../version'; -import { menu } from '../../menu'; -import { icon } from '../../icon'; -import { logo } from '../../logo'; import { layout } from '../../layout'; -import { toolbar } from '../../toolbar'; import { groupAndBookmark } from '../../groupAndBookmark'; import * as form from '../../form'; @@ -16,26 +9,13 @@ import * as form from '../../form'; import { Button } from '../../button'; import { Collapse } from '../../collapse'; import { Edge } from '../../edge'; -import { Alert } from '../../alert'; -import { Link } from '../../link'; import { Control_helperText } from '../../control/helperText'; -import { Control_inputButton } from '../../control/inputButton'; -import { Control_groupText } from '../../control/groupText'; import { Control_radio } from '../../control/radio'; -import { Control_radioGrid } from '../../control/radioGrid'; import { Control_checkbox } from '../../control/checkbox'; import { Control_slider } from '../../control/slider'; -import { Control_sliderSlim } from '../../control/sliderSlim'; -import { Control_sliderDouble } from '../../control/sliderDouble'; -import { Control_colorMixer } from '../../control/colorMixer'; -import { Control_color } from '../../control/color'; -import { Control_text } from '../../control/text'; -import { Control_textReset } from '../../control/textReset'; -import { Control_textarea } from '../../control/textarea'; import { node } from '../../../utility/node'; -import { complexNode } from '../../../utility/complexNode'; import { applyCSSVar } from '../../../utility/applyCSSVar'; import { applyCSSClass } from '../../../utility/applyCSSClass'; import { applyCSSState } from '../../../utility/applyCSSState'; @@ -77,7 +57,7 @@ bookmarkSetting.disable = () => { bookmarkSetting.control.sort.letter.disable(); bookmarkSetting.control.sort.icon.disable(); bookmarkSetting.control.sort.name.disable(); - }; + } }; @@ -91,7 +71,7 @@ bookmarkSetting.general = (parent) => { bookmarkSetting.edge.general.size = new Edge({ primary: bookmark.tile.current[0].tile(), secondary: [bookmark.element.area] }); - }; + } bookmarkSetting.control.general.show = new Control_checkbox({ object: state.get.current(), @@ -112,13 +92,13 @@ bookmarkSetting.general = (parent) => { bookmarkSetting.edge.general.size.update.primary(bookmark.tile.current[0].tile()); - }; + } } else { bookmarkSetting.edge.general.size = new Edge({ primary: bookmark.tile.current[0].tile(), secondary: [bookmark.element.area] }); - }; + } bookmarkSetting.control.general.collapse.update(); @@ -187,13 +167,13 @@ bookmarkSetting.general = (parent) => { bookmarkSetting.edge.general.size.update.primary(bookmark.tile.current[0].tile()); - }; + } } else { bookmarkSetting.edge.general.size = new Edge({ primary: bookmark.tile.current[0].tile(), secondary: [bookmark.element.area] }); - }; + } data.save(); @@ -211,14 +191,14 @@ bookmarkSetting.general = (parent) => { max: state.get.minMax().bookmark.size.max, action: () => { applyCSSVar('bookmark.size'); - if (state.get.current().bookmark.show && bookmark.tile.current.length > 0 && bookmarkSetting.edge.general.size) { bookmarkSetting.edge.general.size.track(); }; + if (state.get.current().bookmark.show && bookmark.tile.current.length > 0 && bookmarkSetting.edge.general.size) { bookmarkSetting.edge.general.size.track(); } data.save(); }, mouseDownAction: () => { - if (state.get.current().bookmark.show && bookmark.tile.current.length > 0 && bookmarkSetting.edge.general.size) { bookmarkSetting.edge.general.size.show(); }; + if (state.get.current().bookmark.show && bookmark.tile.current.length > 0 && bookmarkSetting.edge.general.size) { bookmarkSetting.edge.general.size.show(); } }, mouseUpAction: () => { - if (state.get.current().bookmark.show && bookmark.tile.current.length > 0 && bookmarkSetting.edge.general.size) { bookmarkSetting.edge.general.size.hide(); }; + if (state.get.current().bookmark.show && bookmark.tile.current.length > 0 && bookmarkSetting.edge.general.size) { bookmarkSetting.edge.general.size.hide(); } } }); @@ -278,7 +258,7 @@ bookmarkSetting.style = (parent) => { bookmark.direction.mod.horizontal(); break; - }; + } applyCSSClass('bookmark.style'); @@ -290,13 +270,13 @@ bookmarkSetting.style = (parent) => { bookmarkSetting.edge.general.size.update.primary(bookmark.tile.current[0].tile()); - }; + } } else { bookmarkSetting.edge.general.size = new Edge({ primary: bookmark.tile.current[0].tile(), secondary: [bookmark.element.area] }); - }; + } data.save(); @@ -331,13 +311,13 @@ bookmarkSetting.orientation = (parent) => { bookmarkSetting.edge.general.size.update.primary(bookmark.tile.current[0].tile()); - }; + } } else { bookmarkSetting.edge.general.size = new Edge({ primary: bookmark.tile.current[0].tile(), secondary: [bookmark.element.area] }); - }; + } data.save(); @@ -374,13 +354,13 @@ bookmarkSetting.sort = (parent) => { bookmarkSetting.edge.general.size.update.primary(bookmark.tile.current[0].tile()); - }; + } } else { bookmarkSetting.edge.general.size = new Edge({ primary: bookmark.tile.current[0].tile(), secondary: [bookmark.element.area] }); - }; + } data.save(); @@ -402,13 +382,13 @@ bookmarkSetting.sort = (parent) => { bookmarkSetting.edge.general.size.update.primary(bookmark.tile.current[0].tile()); - }; + } } else { bookmarkSetting.edge.general.size = new Edge({ primary: bookmark.tile.current[0].tile(), secondary: [bookmark.element.area] }); - }; + } data.save(); @@ -430,13 +410,13 @@ bookmarkSetting.sort = (parent) => { bookmarkSetting.edge.general.size.update.primary(bookmark.tile.current[0].tile()); - }; + } } else { bookmarkSetting.edge.general.size = new Edge({ primary: bookmark.tile.current[0].tile(), secondary: [bookmark.element.area] }); - }; + } data.save(); @@ -464,4 +444,4 @@ bookmarkSetting.sort = (parent) => { }; -export { bookmarkSetting } +export { bookmarkSetting }; diff --git a/src/component/menuContent/coffeeSetting/index.js b/src/component/menuContent/coffeeSetting/index.js index 147f3ae4..bb1278e5 100644 --- a/src/component/menuContent/coffeeSetting/index.js +++ b/src/component/menuContent/coffeeSetting/index.js @@ -1,44 +1,12 @@ -import { state } from '../../state'; -import { data } from '../../data'; -import { header } from '../../header'; -import { bookmark } from '../../bookmark'; -import { theme } from '../../theme'; -import { version } from '../../version'; -import { menu } from '../../menu'; -import { icon } from '../../icon'; -import { logo } from '../../logo'; -import { layout } from '../../layout'; -import { toolbar } from '../../toolbar'; -import { appName } from '../../appName'; +import { APP_NAME } from '../../../constant'; import * as form from '../../form'; -import { Button } from '../../button'; -import { Collapse } from '../../collapse'; -import { Edge } from '../../edge'; -import { Alert } from '../../alert'; import { Link } from '../../link'; -import { Control_helperText } from '../../control/helperText'; -import { Control_inputButton } from '../../control/inputButton'; -import { Control_groupText } from '../../control/groupText'; -import { Control_radio } from '../../control/radio'; -import { Control_radioGrid } from '../../control/radioGrid'; -import { Control_checkbox } from '../../control/checkbox'; -import { Control_slider } from '../../control/slider'; -import { Control_sliderSlim } from '../../control/sliderSlim'; -import { Control_sliderDouble } from '../../control/sliderDouble'; -import { Control_colorMixer } from '../../control/colorMixer'; -import { Control_color } from '../../control/color'; -import { Control_text } from '../../control/text'; -import { Control_textReset } from '../../control/textReset'; -import { Control_textarea } from '../../control/textarea'; import { node } from '../../../utility/node'; import { complexNode } from '../../../utility/complexNode'; -import { applyCSSVar } from '../../../utility/applyCSSVar'; -import { applyCSSClass } from '../../../utility/applyCSSClass'; -import { applyCSSState } from '../../../utility/applyCSSState'; const coffeeSetting = {}; @@ -48,7 +16,7 @@ coffeeSetting.coffee = (parent) => { node('div', [ complexNode({ tag: 'p', - text: appName + ' is free, appreciation is welcome in the form of coffee!' + text: APP_NAME + ' is free, appreciation is welcome in the form of coffee!' }), form.wrap({ children: [(new Link({ @@ -67,4 +35,4 @@ coffeeSetting.coffee = (parent) => { }; -export { coffeeSetting } +export { coffeeSetting }; diff --git a/src/component/menuContent/dataSetting/index.js b/src/component/menuContent/dataSetting/index.js index 4569ca17..cfbb6245 100644 --- a/src/component/menuContent/dataSetting/index.js +++ b/src/component/menuContent/dataSetting/index.js @@ -1,45 +1,18 @@ -import { state } from '../../state'; import { data } from '../../data'; -import { header } from '../../header'; -import { bookmark } from '../../bookmark'; -import { theme } from '../../theme'; -import { version } from '../../version'; import { menu } from '../../menu'; -import { icon } from '../../icon'; -import { logo } from '../../logo'; -import { layout } from '../../layout'; -import { toolbar } from '../../toolbar'; -import { appName } from '../../appName'; +import { APP_NAME } from '../../../constant'; import * as form from '../../form'; import { Button } from '../../button'; -import { Collapse } from '../../collapse'; -import { Edge } from '../../edge'; import { Alert } from '../../alert'; import { DropFile } from '../../dropFile'; import { Link } from '../../link'; import { Control_helperText } from '../../control/helperText'; import { Control_inputButton } from '../../control/inputButton'; -import { Control_groupText } from '../../control/groupText'; -import { Control_radio } from '../../control/radio'; -import { Control_radioGrid } from '../../control/radioGrid'; -import { Control_checkbox } from '../../control/checkbox'; -import { Control_slider } from '../../control/slider'; -import { Control_sliderSlim } from '../../control/sliderSlim'; -import { Control_sliderDouble } from '../../control/sliderDouble'; -import { Control_colorMixer } from '../../control/colorMixer'; -import { Control_color } from '../../control/color'; -import { Control_text } from '../../control/text'; -import { Control_textReset } from '../../control/textReset'; -import { Control_textarea } from '../../control/textarea'; import { node } from '../../../utility/node'; -import { complexNode } from '../../../utility/complexNode'; -import { applyCSSVar } from '../../../utility/applyCSSVar'; -import { applyCSSClass } from '../../../utility/applyCSSClass'; -import { applyCSSState } from '../../../utility/applyCSSState'; const dataSetting = {}; @@ -77,7 +50,7 @@ dataSetting.restore = (parent) => { }); dataSetting.control.restore.restoreHelper = new Control_helperText({ - text: ['Restore a previously exported ' + appName + ' backup.'] + text: ['Restore a previously exported ' + APP_NAME + ' backup.'] }); dataSetting.control.restore.feedback = form.feedback(); @@ -85,7 +58,7 @@ dataSetting.restore = (parent) => { data.feedback.empty.render(dataSetting.control.restore.feedback); dataSetting.control.restore.drop = new DropFile({ - heading: 'Or drop a ' + appName + ' backup file here.', + heading: 'Or drop a ' + APP_NAME + ' backup file here.', dropAaction: () => { data.import.drop({ fileList: dataSetting.control.restore.drop.files, @@ -131,7 +104,7 @@ dataSetting.backup = (parent) => { }); dataSetting.control.backup.exportHelper = new Control_helperText({ - text: ['Download a backup of your ' + appName + ' Bookmarks and Settings.', 'This file can later be imported on this or another deivce.'] + text: ['Download a backup of your ' + APP_NAME + ' Bookmarks and Settings.', 'This file can later be imported on this or another deivce.'] }); parent.appendChild( @@ -179,12 +152,12 @@ dataSetting.clear = (parent) => { iconName: 'warning', children: [ node('p:You will lose Bookmarks by clearing all data.|class:small'), - node(`p:Have you ${(new Link({ text:'backed up your data?', href: '#menu-content-item-backup'})).link().outerHTML}|class:small`) + node(`p:Have you ${(new Link({ text: 'backed up your data?', href: '#menu-content-item-backup' })).link().outerHTML}|class:small`) ] }); dataSetting.control.clear.helper = new Control_helperText({ - text: ['Clear all data to reset ' + appName + ' to the default state.', 'Alternatively, it is possible to wipe all settings but keep the current Bookmarks and Groups.'] + text: ['Clear all data to reset ' + APP_NAME + ' to the default state.', 'Alternatively, it is possible to wipe all settings but keep the current Bookmarks and Groups.'] }); parent.appendChild( @@ -209,4 +182,4 @@ dataSetting.clear = (parent) => { }; -export { dataSetting } +export { dataSetting }; diff --git a/src/component/menuContent/debugSetting/index.js b/src/component/menuContent/debugSetting/index.js index 4ff34b8d..9838df84 100644 --- a/src/component/menuContent/debugSetting/index.js +++ b/src/component/menuContent/debugSetting/index.js @@ -1,48 +1,22 @@ -import { state } from '../../state'; import { data } from '../../data'; -import { header } from '../../header'; import { bookmark } from '../../bookmark'; import { group } from '../../group'; -import { theme } from '../../theme'; -import { version } from '../../version'; -import { menu } from '../../menu'; import { icon } from '../../icon'; -import { logo } from '../../logo'; import { layout } from '../../layout'; -import { toolbar } from '../../toolbar'; import { groupAndBookmark } from '../../groupAndBookmark'; import { fontawesome } from '../../fontawesome'; import * as form from '../../form'; import { Button } from '../../button'; -import { Collapse } from '../../collapse'; -import { Edge } from '../../edge'; -import { Alert } from '../../alert'; -import { Link } from '../../link'; import { StagedGroup } from '../../stagedGroup'; import { StagedBookmark } from '../../stagedBookmark'; -import { Control_helperText } from '../../control/helperText'; -import { Control_inputButton } from '../../control/inputButton'; -import { Control_groupText } from '../../control/groupText'; import { Control_radio } from '../../control/radio'; import { Control_radioGrid } from '../../control/radioGrid'; import { Control_checkbox } from '../../control/checkbox'; -import { Control_slider } from '../../control/slider'; -import { Control_sliderSlim } from '../../control/sliderSlim'; -import { Control_sliderDouble } from '../../control/sliderDouble'; -import { Control_colorMixer } from '../../control/colorMixer'; -import { Control_color } from '../../control/color'; -import { Control_text } from '../../control/text'; -import { Control_textReset } from '../../control/textReset'; -import { Control_textarea } from '../../control/textarea'; import { node } from '../../../utility/node'; -import { complexNode } from '../../../utility/complexNode'; -import { applyCSSVar } from '../../../utility/applyCSSVar'; -import { applyCSSClass } from '../../../utility/applyCSSClass'; -import { applyCSSState } from '../../../utility/applyCSSState'; import { randomNumber } from '../../../utility/randomNumber'; import { randomString } from '../../../utility/randomString'; @@ -407,7 +381,7 @@ debugSetting.bookmark = (parent) => { newBookmarkData.link.display.visual.icon.prefix = 'fas'; } else if (randomIcon.styles.includes('brands')) { newBookmarkData.link.display.visual.icon.prefix = 'fab'; - }; + } newBookmarkData.link.display.name.text = randomString({ adjectivesCount: 1 }); @@ -415,7 +389,7 @@ debugSetting.bookmark = (parent) => { bookmark.item.mod.add(newBookmarkData); - }; + } groupAndBookmark.render(); @@ -464,8 +438,8 @@ debugSetting.icon = (parent) => { ]) ] }) - ) - }; + ); + } parent.appendChild( node('div', [ diff --git a/src/component/menuContent/groupSetting/index.js b/src/component/menuContent/groupSetting/index.js index 2f62746d..0ba3b8d4 100644 --- a/src/component/menuContent/groupSetting/index.js +++ b/src/component/menuContent/groupSetting/index.js @@ -1,45 +1,22 @@ import { state } from '../../state'; import { data } from '../../data'; -import { header } from '../../header'; import { bookmark } from '../../bookmark'; import { group } from '../../group'; -import { theme } from '../../theme'; -import { version } from '../../version'; -import { menu } from '../../menu'; -import { icon } from '../../icon'; -import { logo } from '../../logo'; -import { layout } from '../../layout'; -import { toolbar } from '../../toolbar'; import { groupAndBookmark } from '../../groupAndBookmark'; import * as form from '../../form'; import { Button } from '../../button'; -import { Collapse } from '../../collapse'; import { Edge } from '../../edge'; -import { Alert } from '../../alert'; -import { Link } from '../../link'; import { Control_helperText } from '../../control/helperText'; -import { Control_inputButton } from '../../control/inputButton'; -import { Control_groupText } from '../../control/groupText'; import { Control_radio } from '../../control/radio'; import { Control_radioGrid } from '../../control/radioGrid'; -import { Control_checkbox } from '../../control/checkbox'; import { Control_slider } from '../../control/slider'; -import { Control_sliderSlim } from '../../control/sliderSlim'; -import { Control_sliderDouble } from '../../control/sliderDouble'; -import { Control_colorMixer } from '../../control/colorMixer'; -import { Control_color } from '../../control/color'; -import { Control_text } from '../../control/text'; -import { Control_textReset } from '../../control/textReset'; -import { Control_textarea } from '../../control/textarea'; import { node } from '../../../utility/node'; -import { complexNode } from '../../../utility/complexNode'; import { applyCSSVar } from '../../../utility/applyCSSVar'; import { applyCSSClass } from '../../../utility/applyCSSClass'; -import { applyCSSState } from '../../../utility/applyCSSState'; const groupSetting = {}; @@ -78,7 +55,7 @@ groupSetting.disable = () => { groupSetting.control.toolbar.openAll.hide.disable(); groupSetting.control.toolbar.openAll.show.disable(); groupSetting.control.toolbar.openAll.helper.disable(); - }; + } }; @@ -131,7 +108,7 @@ groupSetting.name = (parent) => { groupSetting.edge.name.size = new Edge({ primary: group.area.current[0].element.name.name, secondary: [group.area.current[0].element.header] }); - }; + } groupSetting.control.name.size = new Control_slider({ object: state.get.current(), @@ -144,14 +121,14 @@ groupSetting.name = (parent) => { max: state.get.minMax().group.name.size.max, action: () => { applyCSSVar('group.name.size'); - if (state.get.current().bookmark.show && group.area.current.length > 0 && bookmark.all[0].name.show && groupSetting.edge.name.size) { groupSetting.edge.name.size.track(); }; + if (state.get.current().bookmark.show && group.area.current.length > 0 && bookmark.all[0].name.show && groupSetting.edge.name.size) { groupSetting.edge.name.size.track(); } data.save(); }, mouseDownAction: () => { - if (state.get.current().bookmark.show && group.area.current.length > 0 && bookmark.all[0].name.show && groupSetting.edge.name.size) { groupSetting.edge.name.size.show(); }; + if (state.get.current().bookmark.show && group.area.current.length > 0 && bookmark.all[0].name.show && groupSetting.edge.name.size) { groupSetting.edge.name.size.show(); } }, mouseUpAction: () => { - if (state.get.current().bookmark.show && group.area.current.length > 0 && bookmark.all[0].name.show && groupSetting.edge.name.size) { groupSetting.edge.name.size.hide(); }; + if (state.get.current().bookmark.show && group.area.current.length > 0 && bookmark.all[0].name.show && groupSetting.edge.name.size) { groupSetting.edge.name.size.hide(); } } }); @@ -172,13 +149,13 @@ groupSetting.name = (parent) => { groupSetting.edge.name.size.update.secondary([group.area.current[0].element.header]); - }; + } } else { groupSetting.edge.name.size = new Edge({ primary: group.area.current[0].element.name.name, secondary: [group.area.current[0].element.header] }); - }; + } if (groupSetting.edge.toolbar.size) { @@ -188,13 +165,13 @@ groupSetting.name = (parent) => { groupSetting.edge.toolbar.size.update.secondary([group.area.current[0].element.header]); - }; + } } else { groupSetting.edge.toolbar.size = new Edge({ primary: group.area.current[0].element.toolbar.toolbar, secondary: [group.area.current[0].element.header] }); - }; + } data.save(); @@ -218,13 +195,13 @@ groupSetting.name = (parent) => { groupSetting.edge.name.size.update.secondary([group.area.current[0].element.header]); - }; + } } else { groupSetting.edge.name.size = new Edge({ primary: group.area.current[0].element.name.name, secondary: [group.area.current[0].element.header] }); - }; + } if (groupSetting.edge.toolbar.size) { @@ -234,13 +211,13 @@ groupSetting.name = (parent) => { groupSetting.edge.toolbar.size.update.secondary([group.area.current[0].element.header]); - }; + } } else { groupSetting.edge.toolbar.size = new Edge({ primary: group.area.current[0].element.toolbar.toolbar, secondary: [group.area.current[0].element.header] }); - }; + } data.save(); @@ -275,7 +252,7 @@ groupSetting.toolbar = (parent) => { groupSetting.edge.toolbar.size = new Edge({ primary: group.area.current[0].element.toolbar.toolbar, secondary: [group.area.current[0].element.header] }); - }; + } groupSetting.control.toolbar.size = new Control_slider({ object: state.get.current(), @@ -288,14 +265,14 @@ groupSetting.toolbar = (parent) => { max: state.get.minMax().group.toolbar.size.max, action: () => { applyCSSVar('group.toolbar.size'); - if (state.get.current().bookmark.show && (bookmark.all[0].toolbar.collapse.show || (bookmark.all[0].toolbar.openAll.show && bookmark.all[0].items.length > 0))) { groupSetting.edge.toolbar.size.track(); }; + if (state.get.current().bookmark.show && (bookmark.all[0].toolbar.collapse.show || (bookmark.all[0].toolbar.openAll.show && bookmark.all[0].items.length > 0))) { groupSetting.edge.toolbar.size.track(); } data.save(); }, mouseDownAction: () => { - if (state.get.current().bookmark.show && (bookmark.all[0].toolbar.collapse.show || (bookmark.all[0].toolbar.openAll.show && bookmark.all[0].items.length > 0))) { groupSetting.edge.toolbar.size.show(); }; + if (state.get.current().bookmark.show && (bookmark.all[0].toolbar.collapse.show || (bookmark.all[0].toolbar.openAll.show && bookmark.all[0].items.length > 0))) { groupSetting.edge.toolbar.size.show(); } }, mouseUpAction: () => { - if (state.get.current().bookmark.show && (bookmark.all[0].toolbar.collapse.show || (bookmark.all[0].toolbar.openAll.show && bookmark.all[0].items.length > 0))) { groupSetting.edge.toolbar.size.hide(); }; + if (state.get.current().bookmark.show && (bookmark.all[0].toolbar.collapse.show || (bookmark.all[0].toolbar.openAll.show && bookmark.all[0].items.length > 0))) { groupSetting.edge.toolbar.size.hide(); } } }); @@ -317,13 +294,13 @@ groupSetting.toolbar = (parent) => { groupSetting.edge.name.size.update.secondary([group.area.current[0].element.header]); - }; + } } else { groupSetting.edge.name.size = new Edge({ primary: group.area.current[0].element.name.name, secondary: [group.area.current[0].element.header] }); - }; + } if (groupSetting.edge.toolbar.size) { @@ -333,13 +310,13 @@ groupSetting.toolbar = (parent) => { groupSetting.edge.toolbar.size.update.secondary([group.area.current[0].element.header]); - }; + } } else { groupSetting.edge.toolbar.size = new Edge({ primary: group.area.current[0].element.toolbar.toolbar, secondary: [group.area.current[0].element.header] }); - }; + } data.save(); @@ -362,13 +339,13 @@ groupSetting.toolbar = (parent) => { groupSetting.edge.name.size.update.secondary([group.area.current[0].element.header]); - }; + } } else { groupSetting.edge.name.size = new Edge({ primary: group.area.current[0].element.name.name, secondary: [group.area.current[0].element.header] }); - }; + } if (groupSetting.edge.toolbar.size) { @@ -378,13 +355,13 @@ groupSetting.toolbar = (parent) => { groupSetting.edge.toolbar.size.update.secondary([group.area.current[0].element.header]); - }; + } } else { groupSetting.edge.toolbar.size = new Edge({ primary: group.area.current[0].element.toolbar.toolbar, secondary: [group.area.current[0].element.header] }); - }; + } data.save(); @@ -413,13 +390,13 @@ groupSetting.toolbar = (parent) => { groupSetting.edge.name.size.update.secondary([group.area.current[0].element.header]); - }; + } } else { groupSetting.edge.name.size = new Edge({ primary: group.area.current[0].element.name.name, secondary: [group.area.current[0].element.header] }); - }; + } if (groupSetting.edge.toolbar.size) { @@ -429,13 +406,13 @@ groupSetting.toolbar = (parent) => { groupSetting.edge.toolbar.size.update.secondary([group.area.current[0].element.header]); - }; + } } else { groupSetting.edge.toolbar.size = new Edge({ primary: group.area.current[0].element.toolbar.toolbar, secondary: [group.area.current[0].element.header] }); - }; + } data.save(); @@ -458,13 +435,13 @@ groupSetting.toolbar = (parent) => { groupSetting.edge.name.size.update.secondary([group.area.current[0].element.header]); - }; + } } else { groupSetting.edge.name.size = new Edge({ primary: group.area.current[0].element.name.name, secondary: [group.area.current[0].element.header] }); - }; + } if (groupSetting.edge.toolbar.size) { @@ -474,13 +451,13 @@ groupSetting.toolbar = (parent) => { groupSetting.edge.toolbar.size.update.secondary([group.area.current[0].element.header]); - }; + } } else { groupSetting.edge.toolbar.size = new Edge({ primary: group.area.current[0].element.toolbar.toolbar, secondary: [group.area.current[0].element.header] }); - }; + } data.save(); @@ -523,4 +500,4 @@ groupSetting.toolbar = (parent) => { }; -export { groupSetting } +export { groupSetting }; diff --git a/src/component/menuContent/headerSetting/index.js b/src/component/menuContent/headerSetting/index.js index 5c95632d..fa5151c3 100644 --- a/src/component/menuContent/headerSetting/index.js +++ b/src/component/menuContent/headerSetting/index.js @@ -1,42 +1,25 @@ import { state } from '../../state'; import { data } from '../../data'; import { header } from '../../header'; -import { bookmark } from '../../bookmark'; -import { theme } from '../../theme'; -import { version } from '../../version'; -import { menu } from '../../menu'; -import { icon } from '../../icon'; -import { logo } from '../../logo'; import { layout } from '../../layout'; -import { toolbar } from '../../toolbar'; import { searchEnginePreset } from '../../searchEnginePreset'; -import { appName } from '../../appName'; +import { APP_NAME } from '../../../constant'; import * as form from '../../form'; -import { Button } from '../../button'; import { Collapse } from '../../collapse'; import { Edge } from '../../edge'; -import { Alert } from '../../alert'; import { Link } from '../../link'; import { Control_helperText } from '../../control/helperText'; -import { Control_inputButton } from '../../control/inputButton'; -import { Control_groupText } from '../../control/groupText'; import { Control_radio } from '../../control/radio'; import { Control_radioGrid } from '../../control/radioGrid'; import { Control_checkbox } from '../../control/checkbox'; -import { Control_slider } from '../../control/slider'; import { Control_sliderSlim } from '../../control/sliderSlim'; -import { Control_sliderDouble } from '../../control/sliderDouble'; -import { Control_colorMixer } from '../../control/colorMixer'; -import { Control_color } from '../../control/color'; import { Control_text } from '../../control/text'; import { Control_textReset } from '../../control/textReset'; -import { Control_textarea } from '../../control/textarea'; import { node } from '../../../utility/node'; -import { complexNode } from '../../../utility/complexNode'; import { applyCSSVar } from '../../../utility/applyCSSVar'; import { applyCSSClass } from '../../../utility/applyCSSClass'; import { applyCSSState } from '../../../utility/applyCSSState'; @@ -64,7 +47,7 @@ headerSetting.disable = () => { headerSetting.control.greeting.newLine.disable(); headerSetting.control.greeting.type.disable(); headerSetting.control.greeting.name.disable(); - }; + } if (state.get.current().header.greeting.show) { @@ -80,13 +63,13 @@ headerSetting.disable = () => { headerSetting.control.greeting.custom.text.enable(); break; - }; + } } else { headerSetting.control.greeting.custom.text.disable(); - }; + } if (state.get.current().header.clock.second.show || state.get.current().header.clock.minute.show || @@ -100,25 +83,25 @@ headerSetting.disable = () => { headerSetting.control.clock.second.display.enable(); } else { headerSetting.control.clock.second.display.disable(); - }; + } if (state.get.current().header.clock.hour.show) { headerSetting.control.clock.hour.display.enable(); } else { headerSetting.control.clock.hour.display.disable(); - }; + } if (state.get.current().header.clock.second.show) { headerSetting.control.clock.second.display.enable(); } else { headerSetting.control.clock.second.display.disable(); - }; + } if (state.get.current().header.clock.hour24.show) { headerSetting.control.clock.meridiem.show.disable(); } else { headerSetting.control.clock.meridiem.show.enable(); - }; + } } else { @@ -127,7 +110,7 @@ headerSetting.disable = () => { headerSetting.control.clock.size.disable(); headerSetting.control.clock.newLine.disable(); - }; + } if ([state.get.current().header.clock.second.show, state.get.current().header.clock.minute.show, state.get.current().header.clock.hour.show].filter(Boolean).length > 1) { @@ -137,7 +120,7 @@ headerSetting.disable = () => { headerSetting.control.clock.separator.show.disable(); - }; + } if ( [state.get.current().header.clock.second.show, state.get.current().header.clock.minute.show, state.get.current().header.clock.hour.show].filter(Boolean).length > 1 && @@ -150,7 +133,7 @@ headerSetting.disable = () => { headerSetting.control.clock.separator.text.disable(); - }; + } if ( (state.get.current().header.clock.second.show && state.get.current().header.clock.minute.show) || @@ -164,7 +147,7 @@ headerSetting.disable = () => { headerSetting.control.clock.separator.show.disable(); - }; + } if ( ((state.get.current().header.clock.second.show && state.get.current().header.clock.minute.show) || @@ -179,7 +162,7 @@ headerSetting.disable = () => { headerSetting.control.clock.separator.text.disable(); - }; + } if (state.get.current().header.date.day.show || state.get.current().header.date.date.show || @@ -194,7 +177,7 @@ headerSetting.disable = () => { headerSetting.control.date.size.disable(); headerSetting.control.date.newLine.disable(); - }; + } if (state.get.current().header.date.date.show && state.get.current().header.date.month.show) { @@ -204,7 +187,7 @@ headerSetting.disable = () => { headerSetting.control.date.format.disable(); - }; + } if (state.get.current().header.date.day.show) { @@ -222,7 +205,7 @@ headerSetting.disable = () => { headerSetting.control.date.day.weekStart.enable(); break; - }; + } } else { @@ -230,7 +213,7 @@ headerSetting.disable = () => { headerSetting.control.date.day.length.disable(); headerSetting.control.date.day.weekStart.disable(); - }; + } if (state.get.current().header.date.date.show) { @@ -242,7 +225,7 @@ headerSetting.disable = () => { headerSetting.control.date.date.display.disable(); headerSetting.control.date.date.ordinal.disable(); - }; + } if (state.get.current().header.date.month.show) { @@ -258,7 +241,7 @@ headerSetting.disable = () => { headerSetting.control.date.month.length.disable(); break; - }; + } headerSetting.control.date.month.display.enable(); @@ -268,7 +251,7 @@ headerSetting.disable = () => { headerSetting.control.date.month.ordinal.disable(); headerSetting.control.date.month.length.disable(); - }; + } if (state.get.current().header.date.year.show) { @@ -278,7 +261,7 @@ headerSetting.disable = () => { headerSetting.control.date.year.display.disable(); - }; + } if ([state.get.current().header.date.day.show, state.get.current().header.date.date.show, state.get.current().header.date.month.show, state.get.current().header.date.year.show].filter(Boolean).length > 1) { @@ -288,7 +271,7 @@ headerSetting.disable = () => { headerSetting.control.date.separator.show.disable(); - }; + } if ( [state.get.current().header.date.day.show, state.get.current().header.date.date.show, state.get.current().header.date.month.show, state.get.current().header.date.year.show].filter(Boolean).length > 1 && @@ -301,7 +284,7 @@ headerSetting.disable = () => { headerSetting.control.date.separator.text.disable(); - }; + } if ( state.get.current().header.clock.second.show || @@ -317,17 +300,17 @@ headerSetting.disable = () => { } else { headerSetting.control.transitional.show.disable(); headerSetting.control.transitional.newLine.disable(); - }; + } if (( - state.get.current().header.clock.second.show || - state.get.current().header.clock.minute.show || - state.get.current().header.clock.hour.show || - state.get.current().header.date.day.show || - state.get.current().header.date.date.show || - state.get.current().header.date.month.show || - state.get.current().header.date.year.show - ) && + state.get.current().header.clock.second.show || + state.get.current().header.clock.minute.show || + state.get.current().header.clock.hour.show || + state.get.current().header.date.day.show || + state.get.current().header.date.date.show || + state.get.current().header.date.month.show || + state.get.current().header.date.year.show + ) && state.get.current().header.transitional.show) { headerSetting.control.transitional.type.enable(); headerSetting.control.transitional.size.enable(); @@ -336,7 +319,7 @@ headerSetting.disable = () => { headerSetting.control.transitional.type.disable(); headerSetting.control.transitional.size.disable(); headerSetting.control.transitional.newLine.disable(); - }; + } if (state.get.current().header.search.show) { headerSetting.control.search.width.by.enable(); @@ -348,7 +331,7 @@ headerSetting.disable = () => { headerSetting.control.search.newTab.disable(); headerSetting.control.search.size.disable(); headerSetting.control.search.newLine.disable(); - }; + } if (state.get.current().header.search.show) { @@ -363,13 +346,13 @@ headerSetting.disable = () => { headerSetting.control.search.width.size.enable(); break; - }; + } } else { headerSetting.control.search.width.size.disable(); - }; + } switch (state.get.current().header.search.engine.selected) { @@ -389,7 +372,7 @@ headerSetting.disable = () => { headerSetting.control.search.engine.custom.queryNameHelper.disable(); break; - }; + } }; @@ -406,11 +389,11 @@ headerSetting.update = () => { for (let key in headerSetting.control) { - headerSetting.control[key].forEach((item, i) => { + headerSetting.control[key].forEach((item) => { item.update(); }); - }; + } }; @@ -435,7 +418,7 @@ headerSetting.alignment = (parent) => { headerSetting.alignment.alignmentHelper = new Control_helperText({ complexText: true, - text: [`Effects may not be visible if the ${(new Link({ text:'Search box size', href: '#menu-content-item-search'})).link().outerHTML} size is set to Auto and grows to fill available space.`] + text: [`Effects may not be visible if the ${(new Link({ text: 'Search box size', href: '#menu-content-item-search' })).link().outerHTML} size is set to Auto and grows to fill available space.`] }); parent.appendChild( @@ -456,7 +439,7 @@ headerSetting.greeting = (parent) => { path: 'header.greeting.show', id: 'header-greeting-show', labelText: 'Show Greeting', - action: function() { + action: function () { header.item.mod.order(); header.item.clear(); header.item.render(); @@ -500,7 +483,7 @@ headerSetting.greeting = (parent) => { id: 'header-greeting-newLine', labelText: 'New line', description: 'Force on to a new line and seperate from other Header items.', - action: function() { + action: function () { applyCSSState('header.greeting.newLine'); data.save(); } @@ -669,7 +652,7 @@ headerSetting.transitional = (parent) => { id: 'header-transitional-newLine', labelText: 'New line', description: 'Force on to a new line and seperate from other Header items.', - action: function() { + action: function () { applyCSSState('header.transitional.newLine'); data.save(); } @@ -885,7 +868,7 @@ headerSetting.clock = (parent) => { path: 'header.clock.hour24.show', id: 'header-clock-hour24-show', labelText: '24 hours', - action: function() { + action: function () { header.element.clock.update(); headerSetting.disable(); data.save(); @@ -899,7 +882,7 @@ headerSetting.clock = (parent) => { path: 'header.clock.meridiem.show', id: 'header-clock-meridiem-show', labelText: 'AM / PM', - action: function() { + action: function () { header.element.clock.update(); data.save(); } @@ -934,7 +917,7 @@ headerSetting.clock = (parent) => { id: 'header-clock-newLine', labelText: 'New line', description: 'Force on to a new line and seperate from other Header items.', - action: function() { + action: function () { applyCSSState('header.clock.newLine'); data.save(); } @@ -1483,7 +1466,7 @@ headerSetting.date = (parent) => { id: 'header-date-newLine', labelText: 'New line', description: 'Force on to a new line and seperate from other Header items.', - action: function() { + action: function () { applyCSSState('header.date.newLine'); data.save(); } @@ -1593,7 +1576,7 @@ headerSetting.search = (parent) => { path: 'header.search.newTab', id: 'header-search-newTab', labelText: 'Open Search results in a new tab', - action: function() { + action: function () { header.item.mod.order(); header.item.clear(); header.item.render(); @@ -1613,7 +1596,7 @@ headerSetting.search = (parent) => { id: 'header-search-newLine', labelText: 'New line', description: 'Force on to a new line and seperate from other Header items.', - action: function() { + action: function () { applyCSSState('header.search.newLine'); data.save(); } @@ -1625,9 +1608,9 @@ headerSetting.search = (parent) => { searchEngineList.push({ id: `header-search-engine-selected-${key}`, labelText: searchEnginePreset[key].name, value: key }); - }; + } - searchEngineList.push({ id: 'header-search-engine-selected-custom', labelText: 'Custom', value: 'custom' }) + searchEngineList.push({ id: 'header-search-engine-selected-custom', labelText: 'Custom', value: 'custom' }); headerSetting.control.search.engine = { selected: new Control_radio({ @@ -1693,7 +1676,7 @@ headerSetting.search = (parent) => { } }), urlHelper: new Control_helperText({ - text: ['Enter a web address with the search parameters, eg: "https://vimeo.com/search?q="', appName + ' will add the search term entered into the Search box at the end of the above URL.'] + text: ['Enter a web address with the search parameters, eg: "https://vimeo.com/search?q="', APP_NAME + ' will add the search term entered into the Search box at the end of the above URL.'] }), queryName: new Control_text({ object: state.get.current(), @@ -1867,4 +1850,4 @@ headerSetting.search = (parent) => { }; -export { headerSetting } +export { headerSetting }; diff --git a/src/component/menuContent/index.js b/src/component/menuContent/index.js index dfe91b1c..04da0b4f 100644 --- a/src/component/menuContent/index.js +++ b/src/component/menuContent/index.js @@ -1,6 +1,5 @@ -import { data } from '../data'; import { debugSetting } from './debugSetting'; -import { appName } from '../appName'; +import { APP_NAME } from '../../constant'; import { layoutSetting } from './layoutSetting'; import { groupSetting } from './groupSetting'; import { bookmarkSetting } from './bookmarkSetting'; @@ -13,11 +12,10 @@ import { coffeeSetting } from './coffeeSetting'; import { appSetting } from './appSetting'; import { node } from '../../utility/node'; -import { clearChildNode } from '../../utility/clearChildNode'; import './index.css'; -export const MenuContent = function({ +export const MenuContent = function ({ activeNavData = {}, container = false } = {}) { @@ -37,7 +35,7 @@ export const MenuContent = function({ if (indent) { formElement.classList.add('menu-item-form-indent'); - }; + } return formElement; } @@ -47,7 +45,7 @@ export const MenuContent = function({ if (activeNavData.sub && activeNavData.sub.length > 0) { - activeNavData.sub.forEach((item, i) => { + activeNavData.sub.forEach((item) => { const menuContentItem = this.element.content(item); @@ -89,7 +87,7 @@ export const MenuContent = function({ debugSetting[this.makeId(item)](formElement); break; - }; + } menuContentItem.appendChild(formElement); @@ -123,7 +121,7 @@ export const MenuContent = function({ themeSetting.disable(); break; - }; + } } else { @@ -153,7 +151,7 @@ export const MenuContent = function({ break; - case this.makeId(appName): + case this.makeId(APP_NAME): formElement = this.element.form(); @@ -161,13 +159,13 @@ export const MenuContent = function({ break; - }; + } menuContentItem.appendChild(formElement); container.appendChild(menuContentItem); - }; + } }; diff --git a/src/component/menuContent/layoutSetting/index.js b/src/component/menuContent/layoutSetting/index.js index 1b0401e4..c1e141c8 100644 --- a/src/component/menuContent/layoutSetting/index.js +++ b/src/component/menuContent/layoutSetting/index.js @@ -2,39 +2,21 @@ import { state } from '../../state'; import { data } from '../../data'; import { header } from '../../header'; import { bookmark } from '../../bookmark'; -import { theme } from '../../theme'; -import { version } from '../../version'; -import { menu } from '../../menu'; -import { icon } from '../../icon'; -import { logo } from '../../logo'; import { layout } from '../../layout'; -import { toolbar } from '../../toolbar'; import * as form from '../../form'; -import { Button } from '../../button'; -import { Collapse } from '../../collapse'; import { Edge } from '../../edge'; -import { Alert } from '../../alert'; import { Link } from '../../link'; import { Control_helperText } from '../../control/helperText'; -import { Control_inputButton } from '../../control/inputButton'; -import { Control_groupText } from '../../control/groupText'; import { Control_radio } from '../../control/radio'; import { Control_radioGrid } from '../../control/radioGrid'; import { Control_checkbox } from '../../control/checkbox'; import { Control_slider } from '../../control/slider'; -import { Control_sliderSlim } from '../../control/sliderSlim'; -import { Control_sliderDouble } from '../../control/sliderDouble'; -import { Control_colorMixer } from '../../control/colorMixer'; -import { Control_color } from '../../control/color'; -import { Control_text } from '../../control/text'; import { Control_textReset } from '../../control/textReset'; -import { Control_textarea } from '../../control/textarea'; import { node } from '../../../utility/node'; -import { complexNode } from '../../../utility/complexNode'; import { applyCSSVar } from '../../../utility/applyCSSVar'; import { applyCSSClass } from '../../../utility/applyCSSClass'; import { applyCSSState } from '../../../utility/applyCSSState'; @@ -64,7 +46,7 @@ layoutSetting.disable = () => { layoutSetting.control.area.bookmark.justify.disable(); layoutSetting.control.area.bookmark.justifyHelper1.disable(); - }; + } if (state.get.current().header.order.length > 0) { @@ -78,7 +60,7 @@ layoutSetting.disable = () => { layoutSetting.control.area.header.justify.disable(); layoutSetting.control.area.header.justifyHelper1.disable(); - }; + } if (state.get.current().bookmark.show) { @@ -98,9 +80,9 @@ layoutSetting.disable = () => { layoutSetting.control.area.bookmark.justifyHelper1.disable(); break; - }; + } - }; + } }; @@ -219,7 +201,7 @@ layoutSetting.area = (parent) => { }), justifyHelper2: new Control_helperText({ complexText: true, - text: [`Only available when ${(new Link({ text:'Layout Direction', href: '#menu-content-item-alignment'})).link().outerHTML} is Vertical and Header items are shown.`] + text: [`Only available when ${(new Link({ text: 'Layout Direction', href: '#menu-content-item-alignment' })).link().outerHTML} is Vertical and Header items are shown.`] }) }; @@ -266,7 +248,7 @@ layoutSetting.area = (parent) => { }), justifyHelper2: new Control_helperText({ complexText: true, - text: [`Only available when ${(new Link({ text:'Layout Direction', href: '#menu-content-item-alignment'})).link().outerHTML} is Vertical and Header items are shown.`] + text: [`Only available when ${(new Link({ text: 'Layout Direction', href: '#menu-content-item-alignment' })).link().outerHTML} is Vertical and Header items are shown.`] }) }; @@ -511,4 +493,4 @@ layoutSetting.page = (parent) => { }; -export { layoutSetting } +export { layoutSetting }; diff --git a/src/component/menuContent/supportSetting/index.js b/src/component/menuContent/supportSetting/index.js index 0863ff83..64d96606 100644 --- a/src/component/menuContent/supportSetting/index.js +++ b/src/component/menuContent/supportSetting/index.js @@ -1,49 +1,16 @@ -import { state } from '../../state'; -import { data } from '../../data'; -import { header } from '../../header'; -import { bookmark } from '../../bookmark'; -import { theme } from '../../theme'; -import { version } from '../../version'; -import { menu } from '../../menu'; -import { icon } from '../../icon'; -import { logo } from '../../logo'; -import { layout } from '../../layout'; -import { toolbar } from '../../toolbar'; -import { appName } from '../../appName'; +import { APP_NAME } from '../../../constant'; import * as form from '../../form'; -import { Button } from '../../button'; -import { Collapse } from '../../collapse'; -import { Edge } from '../../edge'; -import { Alert } from '../../alert'; import { Link } from '../../link'; -import { Control_helperText } from '../../control/helperText'; -import { Control_inputButton } from '../../control/inputButton'; -import { Control_groupText } from '../../control/groupText'; -import { Control_radio } from '../../control/radio'; -import { Control_radioGrid } from '../../control/radioGrid'; -import { Control_checkbox } from '../../control/checkbox'; -import { Control_slider } from '../../control/slider'; -import { Control_sliderSlim } from '../../control/sliderSlim'; -import { Control_sliderDouble } from '../../control/sliderDouble'; -import { Control_colorMixer } from '../../control/colorMixer'; -import { Control_color } from '../../control/color'; -import { Control_text } from '../../control/text'; -import { Control_textReset } from '../../control/textReset'; -import { Control_textarea } from '../../control/textarea'; import { node } from '../../../utility/node'; -import { complexNode } from '../../../utility/complexNode'; -import { applyCSSVar } from '../../../utility/applyCSSVar'; -import { applyCSSClass } from '../../../utility/applyCSSClass'; -import { applyCSSState } from '../../../utility/applyCSSState'; const supportSetting = {}; supportSetting.link = { - url: 'https://github.com/zombieFox/' + appName + '/wiki/', + url: 'https://github.com/zombieFox/' + APP_NAME + '/wiki/', page: { applyToAll: 'Applying-bookmark-settings-to-all', browser: 'Browser-support', @@ -55,7 +22,7 @@ supportSetting.link = { resetting: 'Resetting-when-opening-the-browser', privacy: 'Respecting-your-privacy', backgroundImageVideo: 'Setting-a-background-video-or-image', - firefox: 'Setting-' + appName + '-as-your-Firefox-homepage' + firefox: 'Setting-' + APP_NAME + '-as-your-Firefox-homepage' } }; @@ -77,7 +44,7 @@ supportSetting.support = (parent) => { list.appendChild(node('li', [supportLink.link()])); - }; + } wrap.appendChild(list); @@ -87,7 +54,7 @@ supportSetting.support = (parent) => { const para = node('p'); - para.innerHTML = `For more support or feedback, submit an ${(new Link({ text:'Issue', href: `https://github.com/zombieFox/${appName}/issues`, openNew: true })).link().outerHTML} or check the ${(new Link({ text:'Wiki', href: `https://github.com/zombieFox/${appName}/wiki`, openNew: true })).link().outerHTML}.`; + para.innerHTML = `For more support or feedback, submit an ${(new Link({ text: 'Issue', href: `https://github.com/zombieFox/${APP_NAME}/issues`, openNew: true })).link().outerHTML} or check the ${(new Link({ text: 'Wiki', href: `https://github.com/zombieFox/${APP_NAME}/wiki`, openNew: true })).link().outerHTML}.`; parent.appendChild( node('div', [ @@ -99,4 +66,4 @@ supportSetting.support = (parent) => { }; -export { supportSetting } +export { supportSetting }; diff --git a/src/component/menuContent/themeSetting/index.js b/src/component/menuContent/themeSetting/index.js index c6d02b24..ed5eed88 100644 --- a/src/component/menuContent/themeSetting/index.js +++ b/src/component/menuContent/themeSetting/index.js @@ -4,10 +4,7 @@ import { header } from '../../header'; import { bookmark } from '../../bookmark'; import { group } from '../../group'; import { theme } from '../../theme'; -import { version } from '../../version'; import { menu } from '../../menu'; -import { icon } from '../../icon'; -import { logo } from '../../logo'; import { layout } from '../../layout'; import { toolbar } from '../../toolbar'; import { themePreset } from '../../themePreset'; @@ -21,24 +18,18 @@ import * as form from '../../form'; import { Button } from '../../button'; import { Collapse } from '../../collapse'; -import { Edge } from '../../edge'; import { PresetThemeTile } from '../../presetThemeTile'; import { AccentPresetButton } from '../../accentPresetButton'; import { Alert } from '../../alert'; import { Link } from '../../link'; import { Control_helperText } from '../../control/helperText'; -import { Control_inputButton } from '../../control/inputButton'; -import { Control_groupText } from '../../control/groupText'; import { Control_radio } from '../../control/radio'; -import { Control_radioGrid } from '../../control/radioGrid'; import { Control_checkbox } from '../../control/checkbox'; import { Control_slider } from '../../control/slider'; import { Control_sliderSlim } from '../../control/sliderSlim'; import { Control_sliderDouble } from '../../control/sliderDouble'; import { Control_colorMixer } from '../../control/colorMixer'; -import { Control_color } from '../../control/color'; -import { Control_text } from '../../control/text'; import { Control_textReset } from '../../control/textReset'; import { Control_textarea } from '../../control/textarea'; @@ -47,7 +38,6 @@ import { complexNode } from '../../../utility/complexNode'; import { applyCSSVar } from '../../../utility/applyCSSVar'; import { applyCSSClass } from '../../../utility/applyCSSClass'; import { applyCSSState } from '../../../utility/applyCSSState'; -import { convertColor } from '../../../utility/convertColor'; const themeSetting = {}; @@ -76,7 +66,7 @@ themeSetting.disable = () => { } else { themeSetting.control.accent.random.style.disable(); themeSetting.control.accent.randomiseNow.disable(); - }; + } if (state.get.current().theme.accent.cycle.active) { themeSetting.control.accent.cycle.speed.enable(); @@ -86,7 +76,7 @@ themeSetting.disable = () => { themeSetting.control.accent.cycle.speed.disable(); themeSetting.control.accent.cycle.step.disable(); themeSetting.control.accent.cycle.stepHelper.disable(); - }; + } switch (state.get.current().theme.header.by) { @@ -100,7 +90,7 @@ themeSetting.disable = () => { themeSetting.control.header.color.opacity.enable(); break; - }; + } switch (state.get.current().theme.background.type) { @@ -230,7 +220,7 @@ themeSetting.disable = () => { themeSetting.control.background.video.vignette.range.enable(); break; - }; + } switch (state.get.current().theme.layout.color.by) { @@ -248,7 +238,7 @@ themeSetting.disable = () => { themeSetting.control.layout.color.blurHelper.enable(); break; - }; + } switch (state.get.current().theme.header.color.by) { @@ -262,7 +252,7 @@ themeSetting.disable = () => { themeSetting.control.header.color.opacity.enable(); break; - }; + } switch (state.get.current().theme.bookmark.color.by) { @@ -276,7 +266,7 @@ themeSetting.disable = () => { themeSetting.control.bookmark.color.opacity.enable(); break; - }; + } }; @@ -290,7 +280,7 @@ themeSetting.preset = (parent) => { const themePresetElement = node('div|class:theme-preset'); - themePreset.get().forEach((item, i) => { + themePreset.get().forEach((item) => { const presetTheme = new PresetThemeTile({ presetThemeData: item @@ -385,7 +375,7 @@ themeSetting.saved = (parent) => { ]) ); - }; + } }; @@ -433,14 +423,14 @@ themeSetting.colour = (parent) => { if (count < 10) { count = '0' + count; - }; + } formGroup.appendChild( node('div|class:form-group-text form-group-text-borderless', [ node('div|class:theme-color-box theme-color-shade-' + count + '') ]) ); - }; + } formSticky.appendChild(formGroup); @@ -554,7 +544,7 @@ themeSetting.accent = (parent) => { const themeAccentPreset = node('div|class:theme-accent-preset'); - allPreset.forEach((item, i) => { + allPreset.forEach((item) => { const presetButton = new AccentPresetButton({ presetData: item @@ -781,7 +771,7 @@ themeSetting.font = (parent) => { nameHelper: new Control_helperText({ complexText: true, text: [ - `Use a ${(new Link({ text:'Google Font', href: `https://fonts.google.com/`, openNew: true })).link().outerHTML} to customise the Clock, Date, Group names and Bookmark Letters.`, + `Use a ${(new Link({ text: 'Google Font', href: 'https://fonts.google.com/', openNew: true })).link().outerHTML} to customise the Clock, Date, Group names and Bookmark Letters.`, 'Add a font name as it appears on Google Fonts, including capital letters and spaces, eg: enter "Fredoka One" or "Kanit"', 'Clear the field to use the default font "Fjalla One".' ] @@ -869,7 +859,7 @@ themeSetting.font = (parent) => { nameHelper: new Control_helperText({ complexText: true, text: [ - `Use a ${(new Link({ text:'Google Font', href: `https://fonts.google.com/`, openNew: true })).link().outerHTML} to customise the Bookmark name, URL and form elements.`, + `Use a ${(new Link({ text: 'Google Font', href: 'https://fonts.google.com/', openNew: true })).link().outerHTML} to customise the Bookmark name, URL and form elements.`, 'Add a font name as it appears on Google Fonts, including capital letters and spaces, eg: enter "Roboto", "Source Sans Pro" or "Noto Sans"', 'Clear the field to use the default font "Open Sans".' ] @@ -1224,11 +1214,11 @@ themeSetting.opacity = (parent) => { if (group.area.current.length > 0) { - group.area.current.forEach((item, i) => { + group.area.current.forEach((item) => { item.update.style(); }); - }; + } data.save(); @@ -1266,8 +1256,8 @@ themeSetting.background = (parent) => { theme.background.element.video.play(); } else { theme.background.element.video.pause(); - }; - }; + } + } }; @@ -2132,4 +2122,4 @@ themeSetting.bookmark = (parent) => { }; -export { themeSetting } +export { themeSetting }; diff --git a/src/component/menuContent/toolbarSetting/index.js b/src/component/menuContent/toolbarSetting/index.js index 4d3ae5c7..9f76375d 100644 --- a/src/component/menuContent/toolbarSetting/index.js +++ b/src/component/menuContent/toolbarSetting/index.js @@ -1,42 +1,20 @@ import { state } from '../../state'; import { data } from '../../data'; import { header } from '../../header'; -import { bookmark } from '../../bookmark'; -import { theme } from '../../theme'; -import { version } from '../../version'; -import { menu } from '../../menu'; -import { icon } from '../../icon'; -import { logo } from '../../logo'; import { layout } from '../../layout'; import { toolbar } from '../../toolbar'; -import * as form from '../../form'; -import { Button } from '../../button'; -import { Collapse } from '../../collapse'; import { Edge } from '../../edge'; -import { Alert } from '../../alert'; -import { Link } from '../../link'; import { Control_helperText } from '../../control/helperText'; -import { Control_inputButton } from '../../control/inputButton'; -import { Control_groupText } from '../../control/groupText'; import { Control_radio } from '../../control/radio'; import { Control_radioGrid } from '../../control/radioGrid'; import { Control_checkbox } from '../../control/checkbox'; import { Control_slider } from '../../control/slider'; -import { Control_sliderSlim } from '../../control/sliderSlim'; -import { Control_sliderDouble } from '../../control/sliderDouble'; -import { Control_colorMixer } from '../../control/colorMixer'; -import { Control_color } from '../../control/color'; -import { Control_text } from '../../control/text'; -import { Control_textReset } from '../../control/textReset'; -import { Control_textarea } from '../../control/textarea'; import { node } from '../../../utility/node'; -import { complexNode } from '../../../utility/complexNode'; import { applyCSSVar } from '../../../utility/applyCSSVar'; -import { applyCSSClass } from '../../../utility/applyCSSClass'; import { applyCSSState } from '../../../utility/applyCSSState'; const toolbarSetting = {}; @@ -65,7 +43,7 @@ toolbarSetting.disable = () => { toolbarSetting.control.location.newLine.enable(); break; - }; + } }; @@ -85,7 +63,7 @@ toolbarSetting.size = (parent) => { toolbarSetting.edge.size = new Edge({ primary: toolbar.current.element.toolbar }); break; - }; + } toolbarSetting.control.size = new Control_slider({ object: state.get.current(), @@ -148,7 +126,7 @@ toolbarSetting.location = (parent) => { toolbarSetting.edge.size = new Edge({ primary: toolbar.current.element.toolbar }); break; - }; + } data.save(); } @@ -164,7 +142,7 @@ toolbarSetting.location = (parent) => { id: 'header-newLine', labelText: 'New line', description: 'Force on to a new line and seperate from other Header items.', - action: function() { + action: function () { applyCSSState('toolbar.newLine'); data.save(); } @@ -271,4 +249,4 @@ toolbarSetting.controls = (parent) => { }; -export { toolbarSetting } +export { toolbarSetting }; diff --git a/src/component/menuFrame/index.js b/src/component/menuFrame/index.js index 523fb5ab..96ef5f7d 100644 --- a/src/component/menuFrame/index.js +++ b/src/component/menuFrame/index.js @@ -1,9 +1,7 @@ import { state } from '../state'; import { data } from '../data'; -import { menu } from '../menu'; import { pageLock } from '../pageLock'; -import { Button } from '../button'; import { Shade } from '../shade'; import { MenuNav } from '../menuNav'; import { MenuClose } from '../menuClose'; @@ -15,7 +13,7 @@ import { clearChildNode } from '../../utility/clearChildNode'; import './index.css'; -export const MenuFrame = function({ +export const MenuFrame = function ({ navData = [] } = {}) { @@ -45,7 +43,7 @@ export const MenuFrame = function({ html.classList.add('is-menu-open'); } else { html.classList.remove('is-menu-open'); - }; + } }; @@ -65,7 +63,7 @@ export const MenuFrame = function({ body.removeChild(this.element.menu); - }; + } }); @@ -122,8 +120,8 @@ export const MenuFrame = function({ const body = document.querySelector('body'); if (body.contains(this.element.menu)) { - body.removeChild(this.element.menu) - }; + body.removeChild(this.element.menu); + } }, 6000); @@ -137,7 +135,7 @@ export const MenuFrame = function({ if ('pushState' in history) { history.pushState('', document.title, location.origin + location.pathname + location.search); - }; + } }; @@ -201,7 +199,7 @@ export const MenuFrame = function({ if (!path.includes(this.element.menu)) { this.close(); - }; + } }; @@ -239,9 +237,9 @@ export const MenuFrame = function({ event.preventDefault(); } - }; + } - }; + } } }; @@ -262,7 +260,7 @@ export const MenuFrame = function({ clearChildNode(this.element.content); - navData.forEach((item, i) => { + navData.forEach((item) => { if (item.active) { @@ -270,7 +268,7 @@ export const MenuFrame = function({ this.element.content.classList.add('menu-content-overscroll'); } else { this.element.content.classList.remove('menu-content-overscroll'); - }; + } const menuContent = new MenuContent({ activeNavData: item, @@ -279,7 +277,7 @@ export const MenuFrame = function({ menuContent.content(); - }; + } }); diff --git a/src/component/menuNav/index.js b/src/component/menuNav/index.js index 07de0602..f15286ae 100644 --- a/src/component/menuNav/index.js +++ b/src/component/menuNav/index.js @@ -1,4 +1,3 @@ -import { menu } from '../menu'; import { Button } from '../button'; @@ -6,7 +5,7 @@ import { node } from '../../utility/node'; import './index.css'; -export const MenuNav = function({ +export const MenuNav = function ({ navData = {}, action = false } = {}) { @@ -15,7 +14,7 @@ export const MenuNav = function({ current: {}, set: () => { - navData.forEach((item, i) => { + navData.forEach((item) => { this.state.current[this.makeId(item.name)] = item.active; @@ -26,17 +25,17 @@ export const MenuNav = function({ for (let key in this.state.current) { this.state.current[key] = false; - }; + } this.state.current[this.makeId(name)] = true; - navData.forEach((item, i) => { + navData.forEach((item) => { item.active = false; if (item.name === name || item.name.toLowerCase() === name) { item.active = true; - }; + } }); @@ -54,12 +53,12 @@ export const MenuNav = function({ this.init = () => { - this.element.item.forEach((item, i) => { + this.element.item.forEach((item) => { if (item.subLevel) { item.subLevel.classList.add('active'); item.subLevel.setAttribute('style', '--menu-subnav-height: ' + item.subLevel.getBoundingClientRect().height + 'px;'); item.subLevel.classList.remove('active'); - }; + } }); this.update(); @@ -78,13 +77,13 @@ export const MenuNav = function({ if (item.sub) { this.element.item[i].subLevel.classList.add('active'); - }; + } if (this.element.item[i].subLevelItem.length > 0) { - this.element.item[i].subLevelItem.forEach((item, i) => { + this.element.item[i].subLevelItem.forEach((item) => { item.tabIndex = 1; }); - }; + } } else { @@ -94,15 +93,15 @@ export const MenuNav = function({ if (item.sub) { this.element.item[i].subLevel.classList.remove('active'); - }; + } if (this.element.item[i].subLevelItem.length > 0) { - this.element.item[i].subLevelItem.forEach((item, i) => { + this.element.item[i].subLevelItem.forEach((item) => { item.tabIndex = -1; }); - }; + } - }; + } }); @@ -116,7 +115,7 @@ export const MenuNav = function({ this.assemble = () => { - navData.forEach((item, i) => { + navData.forEach((item) => { const navItem = { topLevel: false, @@ -137,7 +136,7 @@ export const MenuNav = function({ if (action) { action(); - }; + } } }); @@ -148,7 +147,7 @@ export const MenuNav = function({ const subNav = node('div|class:menu-subnav'); - item.sub.forEach((item, i) => { + item.sub.forEach((item) => { const subLevelLink = node('a:' + item + '|href:#menu-content-item-' + this.makeId(item) + ',class:menu-nav-sub button button-link button-small,tabindex:1'); @@ -160,13 +159,13 @@ export const MenuNav = function({ navItem.subLevel = subNav; - }; + } this.element.item.push(navItem); }); - this.element.item.forEach((item, i) => { + this.element.item.forEach((item) => { item.menuNavItem = node('div|class:menu-nav-item'); @@ -174,7 +173,7 @@ export const MenuNav = function({ if (item.subLevel) { item.menuNavItem.appendChild(item.subLevel); - }; + } this.element.nav.appendChild(item.menuNavItem); diff --git a/src/component/modal/index.js b/src/component/modal/index.js index bfe6047e..6692af61 100644 --- a/src/component/modal/index.js +++ b/src/component/modal/index.js @@ -1,5 +1,4 @@ import { state } from '../state'; -import { data } from '../data'; import { pageLock } from '../pageLock'; import { Button } from '../button'; @@ -13,7 +12,7 @@ import { isValidString } from '../../utility/isValidString'; import './index.css'; -export const Modal = function({ +export const Modal = function ({ heading = false, content = false, openAction = false, @@ -56,7 +55,7 @@ export const Modal = function({ body.removeChild(this.element.modal); - }; + } }); @@ -80,7 +79,7 @@ export const Modal = function({ if (openAction) { openAction(); - }; + } pageLock.render(); @@ -100,7 +99,7 @@ export const Modal = function({ if (closeAction) { closeAction(); - }; + } clearTimeout(this.delayedForceRemove); @@ -109,8 +108,8 @@ export const Modal = function({ const body = document.querySelector('body'); if (body.contains(this.element.modal)) { - body.removeChild(this.element.modal) - }; + body.removeChild(this.element.modal); + } }, 6000); @@ -169,7 +168,7 @@ export const Modal = function({ if (!path.includes(this.element.modal) && !path.includes(suggest)) { this.close(); - }; + } }; @@ -203,9 +202,9 @@ export const Modal = function({ event.preventDefault(); } - }; + } - }; + } } @@ -232,9 +231,9 @@ export const Modal = function({ this.element.modal.style.setProperty('--modal-width', 70); break; - }; + } - }; + } }; this.successButton = new Button({ @@ -246,7 +245,7 @@ export const Modal = function({ if (successAction) { successAction(); - }; + } this.close(); @@ -262,7 +261,7 @@ export const Modal = function({ if (cancelAction) { cancelAction(); - }; + } this.close(); @@ -277,7 +276,7 @@ export const Modal = function({ if (headingString.length > maxHeadingLength) { headingString = trimString(headingString.substring(0, maxHeadingLength)) + '...'; - }; + } this.element.heading.text.innerHTML = headingString; @@ -285,7 +284,7 @@ export const Modal = function({ this.element.content.content.appendChild(this.element.heading.heading); - }; + } if (content) { if (typeof content == 'string') { @@ -298,8 +297,8 @@ export const Modal = function({ this.element.content.content.appendChild(content); - }; - }; + } + } this.element.content.wrapper.appendChild(this.element.content.content); @@ -313,7 +312,7 @@ export const Modal = function({ if (maxHeight) { this.element.modal.classList.add('modal-max-height'); - }; + } }; diff --git a/src/component/pageLock/index.js b/src/component/pageLock/index.js index 41e77f71..0cc0b494 100644 --- a/src/component/pageLock/index.js +++ b/src/component/pageLock/index.js @@ -10,7 +10,7 @@ pageLock.render = () => { html.classList.add('is-scroll-disabled'); } else { html.classList.remove('is-scroll-disabled'); - }; + } }; diff --git a/src/component/presetThemeTile/index.js b/src/component/presetThemeTile/index.js index b46bbc9c..6880de04 100644 --- a/src/component/presetThemeTile/index.js +++ b/src/component/presetThemeTile/index.js @@ -1,12 +1,10 @@ import { state } from '../state'; import { data } from '../data'; import { theme } from '../theme'; -import { menu } from '../menu'; import { toolbar } from '../toolbar'; import { layout } from '../layout'; import { header } from '../header'; import { bookmark } from '../bookmark'; -import { group } from '../group'; import { groupAndBookmark } from '../groupAndBookmark'; import { themeSetting } from '../menuContent/themeSetting'; @@ -15,14 +13,13 @@ import { Button } from '../button'; import { node } from '../../utility/node'; import { convertColor } from '../../utility/convertColor'; import { isValidString } from '../../utility/isValidString'; -import { complexNode } from '../../utility/complexNode'; import { applyCSSVar } from '../../utility/applyCSSVar'; import { applyCSSClass } from '../../utility/applyCSSClass'; import { applyCSSState } from '../../utility/applyCSSState'; import './index.css'; -export const PresetThemeTile = function({ +export const PresetThemeTile = function ({ presetThemeData = false } = {}) { @@ -347,13 +344,13 @@ export const PresetThemeTile = function({ darken(); } else if (window.matchMedia('(prefers-color-scheme:light)').matches) { lighten(); - }; + } - }; + } - if (hsl.l < 0) { hsl.l = 0; }; + if (hsl.l < 0) { hsl.l = 0; } - if (hsl.l > 100) { hsl.l = 100; }; + if (hsl.l > 100) { hsl.l = 100; } let rgb = convertColor.hsl.rgb(hsl); @@ -368,7 +365,7 @@ export const PresetThemeTile = function({ this.element.preview.appendChild(node('span|class:theme-preset-background-0' + i)); - }; + } this.element.tile.style.setProperty('--theme-preset-text', '0, 0%, calc(((((var(--theme-preset-background-01-rgb-r) * var(--theme-t-r)) + (var(--theme-preset-background-01-rgb-g) * var(--theme-t-g)) + (var(--theme-preset-background-01-rgb-b) * var(--theme-t-b))) / 255) - var(--theme-t)) * -10000000%)'); @@ -380,7 +377,7 @@ export const PresetThemeTile = function({ this.element.preview.appendChild(node('span|class:theme-preset-accent')); - return node('div|class:theme-preset-tile') + return node('div|class:theme-preset-tile'); }; @@ -396,7 +393,7 @@ export const PresetThemeTile = function({ this.element.preset.button.appendChild(this.element.name); - }; + } this.element.front.appendChild(this.element.preset.button); diff --git a/src/component/reset/index.js b/src/component/reset/index.js deleted file mode 100644 index b406c35c..00000000 --- a/src/component/reset/index.js +++ /dev/null @@ -1,3 +0,0 @@ -import './index.css'; - -export const reset = {}; diff --git a/src/component/search/index.js b/src/component/search/index.js index 4d2c44e6..d3859789 100644 --- a/src/component/search/index.js +++ b/src/component/search/index.js @@ -1,11 +1,9 @@ import { data } from '../data'; import { state } from '../state'; -import { group } from '../group'; import { bookmark } from '../bookmark'; import { groupAndBookmark } from '../groupAndBookmark'; import { searchEnginePreset } from '../searchEnginePreset'; -import * as form from '../form'; import { Button } from '../button'; import { Control_text } from '../control/text'; @@ -13,11 +11,10 @@ import { Control_text } from '../control/text'; import { node } from '../../utility/node'; import { trimString } from '../../utility/trimString'; import { isValidString } from '../../utility/isValidString'; -import { complexNode } from '../../utility/complexNode'; import './index.css'; -export const Search = function() { +export const Search = function () { this.element = { search: node('div|class:search'), @@ -62,7 +59,7 @@ export const Search = function() { state.get.current().search = false; - }; + } data.save(); @@ -76,7 +73,7 @@ export const Search = function() { placeholder = 'Find bookmarks or search'; } else { placeholder = 'Search'; - }; + } switch (state.get.current().header.search.engine.selected) { @@ -86,7 +83,7 @@ export const Search = function() { placeholder = placeholder + ' ' + state.get.current().header.search.engine.custom.name; - }; + } break; @@ -96,7 +93,7 @@ export const Search = function() { break; - }; + } this.element.input.text.placeholder = placeholder; @@ -122,7 +119,7 @@ export const Search = function() { this.element.form.setAttribute('action', ''); - }; + } break; @@ -134,11 +131,11 @@ export const Search = function() { break; - }; + } if (state.get.current().header.search.newTab) { - this.element.form.setAttribute("target", "_blank"); - }; + this.element.form.setAttribute('target', '_blank'); + } }; @@ -156,9 +153,9 @@ export const Search = function() { const searchString = trimString(this.element.input.text.value).toLowerCase(); - bookmark.all.forEach((item, i) => { + bookmark.all.forEach((item) => { - item.items.forEach((item, i) => { + item.items.forEach((item) => { item.searchMatch = false; @@ -168,7 +165,7 @@ export const Search = function() { if (matchUrl || matchName) { item.searchMatch = true; - }; + } }); @@ -180,7 +177,7 @@ export const Search = function() { this.clearSearch(); - }; + } groupAndBookmark.render(); @@ -188,9 +185,9 @@ export const Search = function() { this.clearSearch = () => { - bookmark.all.forEach((item, i) => { + bookmark.all.forEach((item) => { - item.items.forEach((item, i) => { + item.items.forEach((item) => { delete item.searchMatch; @@ -231,13 +228,13 @@ export const Search = function() { count.group.push({ bookmarkCount: item.items.length, searchMatch: 0 - }) + }); const groupIndex = i; - item.items.forEach((item, i) => { + item.items.forEach((item) => { - if (item.searchMatch) { count.group[groupIndex].searchMatch++ }; + if (item.searchMatch) { count.group[groupIndex].searchMatch++; } }); @@ -263,7 +260,7 @@ export const Search = function() { html.classList.remove('is-header-search-opacity-low'); - }; + } }; diff --git a/src/component/searchEmpty/index.js b/src/component/searchEmpty/index.js index 42d77eb9..9fe80616 100644 --- a/src/component/searchEmpty/index.js +++ b/src/component/searchEmpty/index.js @@ -9,7 +9,7 @@ import { isValidString } from '../../utility/isValidString'; import './index.css'; -export const SearchEmpty = function() { +export const SearchEmpty = function () { this.element = { empty: node('div|class:search-empty'), @@ -34,7 +34,7 @@ export const SearchEmpty = function() { this.element.helper.textContent = 'Press "Enter" to Search ' + state.get.current().header.search.engine.custom.name; - }; + } break; @@ -44,7 +44,7 @@ export const SearchEmpty = function() { break; - }; + } this.element.empty.appendChild(this.element.description); diff --git a/src/component/shade/index.js b/src/component/shade/index.js index 426676cf..af7460d4 100644 --- a/src/component/shade/index.js +++ b/src/component/shade/index.js @@ -2,7 +2,7 @@ import { node } from '../../utility/node'; import './index.css'; -export const Shade = function() { +export const Shade = function () { this.element = { shade: node('div|class:shade') @@ -16,7 +16,7 @@ export const Shade = function() { this.element.shade.addEventListener('transitionend', (event) => { if (event.propertyName === 'opacity' && getComputedStyle(this.element.shade).opacity == 0) { body.removeChild(this.element.shade); - }; + } }); body.appendChild(this.element.shade); @@ -41,8 +41,8 @@ export const Shade = function() { const body = document.querySelector('body'); if (body.contains(this.element.shade)) { - body.removeChild(this.element.shade) - }; + body.removeChild(this.element.shade); + } }, 6000); diff --git a/src/component/stagedBookmark/index.js b/src/component/stagedBookmark/index.js index 59428f24..dea1ec15 100644 --- a/src/component/stagedBookmark/index.js +++ b/src/component/stagedBookmark/index.js @@ -1,6 +1,6 @@ import { bookmarkDefault } from '../bookmarkDefault'; -export const StagedBookmark = function(bookmarkData) { +export const StagedBookmark = function (bookmarkData) { this.link = bookmarkData || JSON.parse(JSON.stringify(bookmarkDefault)); diff --git a/src/component/stagedCustomTheme/index.js b/src/component/stagedCustomTheme/index.js index 742db3cb..009d295c 100644 --- a/src/component/stagedCustomTheme/index.js +++ b/src/component/stagedCustomTheme/index.js @@ -1,6 +1,6 @@ import { customThemeDefault } from '../customThemeDefault'; -export const StagedCustomTheme = function(customThemeData) { +export const StagedCustomTheme = function (customThemeData) { this.theme = customThemeData || JSON.parse(JSON.stringify(customThemeDefault())); diff --git a/src/component/stagedGroup/index.js b/src/component/stagedGroup/index.js index 1b60c35d..4844a11d 100644 --- a/src/component/stagedGroup/index.js +++ b/src/component/stagedGroup/index.js @@ -3,7 +3,7 @@ import { groupDefault } from '../groupDefault'; import { isValidString } from '../../utility/isValidString'; import { trimString } from '../../utility/trimString'; -export const StagedGroup = function(groupData) { +export const StagedGroup = function (groupData) { this.group = groupData || JSON.parse(JSON.stringify(groupDefault)); @@ -17,7 +17,7 @@ export const StagedGroup = function(groupData) { if (name && isValidString(name)) { this.group.name.text = trimString(name); - }; + } this.position.destination = bookmark.all.length; diff --git a/src/component/state/index.js b/src/component/state/index.js index 2c32c3ba..49f4a0bd 100644 --- a/src/component/state/index.js +++ b/src/component/state/index.js @@ -156,8 +156,7 @@ state.minMax = { general: { min: 0, max: 100 }, toolbar: { min: 0, max: 100 }, bookmark: { min: 0, max: 100 }, - search: { min: 0, max: 100 }, - toolbar: { min: 0, max: 100 } + search: { min: 0, max: 100 } }, layout: { color: { @@ -259,11 +258,11 @@ state.option = { }; state.get = { - current: () => { return state.current }, - default: () => { return JSON.parse(JSON.stringify(state.default)) }, - minMax: () => { return JSON.parse(JSON.stringify(state.minMax)) }, - step: () => { return JSON.parse(JSON.stringify(state.step)) }, - option: () => { return JSON.parse(JSON.stringify(state.option)) } + current: () => { return state.current; }, + default: () => { return JSON.parse(JSON.stringify(state.default)); }, + minMax: () => { return JSON.parse(JSON.stringify(state.minMax)); }, + step: () => { return JSON.parse(JSON.stringify(state.step)); }, + option: () => { return JSON.parse(JSON.stringify(state.option)); } }; state.set = { diff --git a/src/component/suggest/index.js b/src/component/suggest/index.js index 09c8128b..8c13c1d1 100644 --- a/src/component/suggest/index.js +++ b/src/component/suggest/index.js @@ -1,4 +1,3 @@ -import { state } from '../state'; import { fontawesome } from '../fontawesome'; import { Button } from '../button'; @@ -10,7 +9,7 @@ import { clearChildNode } from '../../utility/clearChildNode'; import './index.css'; -export const Suggest = function({ +export const Suggest = function ({ input = false, widthElement = false, type = false, @@ -66,13 +65,13 @@ export const Suggest = function({ this.state.open = true; - }; + } } else { this.close(); - }; + } }; @@ -138,7 +137,7 @@ export const Suggest = function({ box.left = widthElementRect.left; - }; + } this.element.suggest.style.setProperty('--suggest-top', box.top); @@ -164,7 +163,7 @@ export const Suggest = function({ this.state.open = false; - }; + } }); @@ -184,15 +183,15 @@ export const Suggest = function({ if (action) { action(suggestData); - }; + } if (postFocus) { postFocus.focus(); - }; + } }; - results.forEach((item, i) => { + results.forEach((item) => { let li = node('li|class:suggest-list-item'); @@ -211,7 +210,7 @@ export const Suggest = function({ icon.classList.add('fas'); } else if (item.styles.includes('brands')) { icon.classList.add('fab'); - }; + } let text = node('span:' + item.label + '|class:suggest-icon-text'); @@ -243,18 +242,18 @@ export const Suggest = function({ if (item.name.toLowerCase().includes(string) || item.label.toLowerCase().includes(string)) { match = true; - }; + } - item.search.forEach((item, i) => { + item.search.forEach((item) => { if (item.toLowerCase().includes(string)) { match = true; - }; + } }); - item.styles.forEach((item, i) => { + item.styles.forEach((item) => { if (item.toLowerCase().includes(string)) { match = true; - }; + } }); return match; @@ -262,7 +261,7 @@ export const Suggest = function({ } else { return fontawesome; - }; + } } }; @@ -285,9 +284,9 @@ export const Suggest = function({ if (allSuggestItems[i] == document.activeElement) { focusIndex = i; - }; + } - }; + } }; @@ -303,9 +302,9 @@ export const Suggest = function({ elementToFocus = allSuggestItems[focusIndex - columnCount]; } else { elementToFocus = input; - }; - }; - }; + } + } + } // down if (event.keyCode == 40) { @@ -317,9 +316,9 @@ export const Suggest = function({ elementToFocus = allSuggestItems[focusIndex + columnCount]; } else { elementToFocus = input; - }; - }; - }; + } + } + } // right if (event.keyCode == 39 && document.activeElement != input) { @@ -331,9 +330,9 @@ export const Suggest = function({ elementToFocus = allSuggestItems[focusIndex + 1]; } else { elementToFocus = input; - }; - }; - }; + } + } + } // left if (event.keyCode == 37 && document.activeElement != input) { @@ -345,29 +344,29 @@ export const Suggest = function({ elementToFocus = allSuggestItems[focusIndex - 1]; } else { elementToFocus = input; - }; - }; - }; + } + } + } // tab if (!event.shiftKey && event.keyCode == 9 && document.activeElement == input) { event.preventDefault(); elementToFocus = allSuggestItems[0]; - }; + } if (!event.shiftKey && event.keyCode == 9 && document.activeElement == allSuggestItems[allSuggestItems.length - 1]) { event.preventDefault(); elementToFocus = postFocus; this.close(); - }; + } // shift tab if (event.shiftKey && event.keyCode == 9 && document.activeElement == allSuggestItems[0]) { event.preventDefault(); elementToFocus = input; - }; + } if (event.shiftKey && event.keyCode == 9 && document.activeElement == input) { this.close(); - }; + } }; @@ -377,7 +376,7 @@ export const Suggest = function({ if (elementToFocus) { elementToFocus.focus(); - }; + } }; this.clickOut = (event) => { @@ -386,7 +385,7 @@ export const Suggest = function({ if (!path.includes(this.element.suggest) && !path.includes(this.element.input)) { this.close(); - }; + } }; @@ -398,7 +397,7 @@ export const Suggest = function({ this.close(); - }; + } }; diff --git a/src/component/tab/index.js b/src/component/tab/index.js index 7917f396..6dc62e4d 100644 --- a/src/component/tab/index.js +++ b/src/component/tab/index.js @@ -1,13 +1,11 @@ -import { form } from '../form'; import { Button } from '../button'; import { node } from '../../utility/node'; -import { complexNode } from '../../utility/complexNode'; import './index.css'; -export const Tab = function({ +export const Tab = function ({ group = [] } = {}) { @@ -29,7 +27,7 @@ export const Tab = function({ this.element.tab.appendChild(this.element.content); - group.forEach((item, i) => { + group.forEach((item) => { item.toggle = new Button({ text: item.tabText, @@ -58,7 +56,7 @@ export const Tab = function({ }; this.deactive = () => { - group.forEach((item, i) => { + group.forEach((item) => { item.active = false; }); }; @@ -68,7 +66,7 @@ export const Tab = function({ const navBox = this.element.tab.getBoundingClientRect(); - group.forEach((item, i) => { + group.forEach((item) => { if (item.active) { @@ -80,31 +78,31 @@ export const Tab = function({ this.element.tab.style.setProperty('--tab-indicator-height', Math.round(itemBox.height)); - }; + } }); }, bind: () => { - this.element.indicator.addEventListener('animationend', (event) => { + this.element.indicator.addEventListener('animationend', () => { this.element.tab.classList.add('tab-nav-indicator-active'); }); - this.element.indicator.addEventListener('transitionend', (event) => {}); + this.element.indicator.addEventListener('transitionend', () => { }); } }; this.content = { render: () => { - group.forEach((item, i) => { + group.forEach((item) => { if (item.active) { item.area.classList.remove('is-hidden'); } else { item.area.classList.add('is-hidden'); - }; + } }); } @@ -113,13 +111,13 @@ export const Tab = function({ this.nav = { render: () => { - group.forEach((item, i) => { + group.forEach((item) => { if (item.active) { item.toggle.active(); } else { item.toggle.deactive(); - }; + } }); diff --git a/src/component/theme/index.js b/src/component/theme/index.js index 4eee0bc0..7b9c6a27 100644 --- a/src/component/theme/index.js +++ b/src/component/theme/index.js @@ -1,6 +1,5 @@ import { state } from '../state'; -import { data } from '../data'; -import { appName } from '../appName'; +import { APP_NAME } from '../../constant'; import { toolbar } from '../toolbar'; import { bookmark } from '../bookmark'; import { bookmarkDefault } from '../bookmarkDefault'; @@ -47,7 +46,7 @@ theme.font.display = { google: { families: [trimString(displayFont) + ':100,100i,200,200i,300,300i,400,400i,500,500i,600,600i,700,700i,800,800i,900,900i'] } }); - }; + } theme.font.display.render(); @@ -64,7 +63,7 @@ theme.font.display = { html.style.removeProperty('--theme-font-display-name'); - }; + } } }; @@ -89,7 +88,7 @@ theme.font.ui = { google: { families: [trimString(uiFont) + ':100,100i,200,200i,300,300i,400,400i,500,500i,600,600i,700,700i,800,800i,900,900i'] } }); - }; + } theme.font.ui.render(); @@ -106,18 +105,15 @@ theme.font.ui = { html.style.removeProperty('--theme-font-ui-name'); - }; + } } }; theme.color = { render: () => { - const html = document.querySelector('html'); - const head = document.querySelector('head'); - let shades = (state.get.current().theme.color.contrast.end - state.get.current().theme.color.contrast.start) / (state.get.current().theme.color.shades - 1); for (var type in state.get.current().theme.color.range) { @@ -130,21 +126,21 @@ theme.color = { let rgb = convertColor.hsl.rgb(hsl); - for (var key in rgb) { + for (let key in rgb) { html.style.setProperty(`--theme-${type}-${i + 1}-${key}`, rgb[key]); - }; + } - for (var key in hsl) { + for (let key in hsl) { html.style.setProperty(`--theme-${type}-${i + 1}-${key}`, hsl[key]); - }; + } - }; + } - }; + } for (let i = 1; i <= state.get.current().theme.color.shades; i++) { html.style.setProperty(`--theme-primary-${i}`, `var(--theme-primary-${i}-h), calc(var(--theme-primary-${i}-s) * 1%), calc(var(--theme-primary-${i}-l) * 1%)`); - }; + } } }; @@ -172,7 +168,7 @@ theme.accent.random = { state.get.current().theme.accent.hsl = hsl; - }; + } } }; @@ -184,11 +180,11 @@ theme.accent.rainbow = { let degree = 0; - bookmark.all.forEach((item, i) => { + bookmark.all.forEach((item) => { - item.items.forEach((item, i) => { + item.items.forEach((item) => { - item.accent.by = "custom"; + item.accent.by = 'custom'; item.accent.hsl = { h: Math.round(degree), s: 100, l: 50 }; @@ -205,9 +201,9 @@ theme.accent.rainbow = { }, clear: () => { - bookmark.all.forEach((item, i) => { + bookmark.all.forEach((item) => { - item.items.forEach((item, i) => { + item.items.forEach((item) => { item.accent = JSON.parse(JSON.stringify(bookmarkDefault.accent)); @@ -234,11 +230,11 @@ theme.accent.cycle = { if (state.get.current().menu) { themeSetting.control.accent.color.update(); - }; + } if (state.get.current().toolbar.accent.show) { toolbar.current.update.accent(); - }; + } }, state.get.current().theme.accent.cycle.speed); @@ -248,14 +244,14 @@ theme.accent.cycle = { theme.accent.cycle.timer = false; - }; + } }, render: () => { let newValue = state.get.current().theme.accent.hsl.h + state.get.current().theme.accent.cycle.step; - if (newValue > 359) { newValue = 0; }; + if (newValue > 359) { newValue = 0; } state.get.current().theme.accent.hsl.h = newValue; @@ -275,7 +271,7 @@ theme.accent.cycle = { theme.style = { bind: () => { - window.matchMedia('(prefers-color-scheme: dark)').addEventListener('change', (event) => { + window.matchMedia('(prefers-color-scheme: dark)').addEventListener('change', () => { theme.style.initial(); }); }, @@ -285,19 +281,19 @@ theme.style = { case 'dark': case 'light': - localStorage.setItem(appName + 'Style', state.get.current().theme.style); + localStorage.setItem(APP_NAME + 'Style', state.get.current().theme.style); break; case 'system': if (window.matchMedia('(prefers-color-scheme:dark)').matches) { - localStorage.setItem(appName + 'Style', 'dark'); + localStorage.setItem(APP_NAME + 'Style', 'dark'); } else if (window.matchMedia('(prefers-color-scheme:light)').matches) { - localStorage.setItem(appName + 'Style', 'light'); - }; + localStorage.setItem(APP_NAME + 'Style', 'light'); + } break; - }; + } }, dark: () => { state.get.current().theme.style = 'dark'; @@ -320,7 +316,7 @@ theme.style = { theme.style.dark(); break; - }; + } } }; @@ -351,10 +347,7 @@ theme.background = { theme.background.area = { render: () => { - - const backgroundElement = node('div|class:background'); - - state.get.option().theme.background.type.forEach((item, i) => { + state.get.option().theme.background.type.forEach((item) => { switch (item) { @@ -380,7 +373,7 @@ theme.background.area = { theme.background.element.background.appendChild(theme.background.element.type[item]); - }; + } }); @@ -404,7 +397,7 @@ theme.background.image = { html.style.removeProperty('--theme-background-image'); - }; + } } }; @@ -426,7 +419,7 @@ theme.background.video = { theme.background.video.clear(); - }; + } }, clear: () => { @@ -437,7 +430,7 @@ theme.background.video = { clearChildNode(theme.background.element.type.video.wrap); - }; + } } }; diff --git a/src/component/themePreset/app/index.js b/src/component/themePreset/app/index.js index 0f333a37..ebc06ce2 100644 --- a/src/component/themePreset/app/index.js +++ b/src/component/themePreset/app/index.js @@ -1,8 +1,8 @@ import { state } from '../../state'; -import { appName } from '../../appName'; +import { APP_NAME } from '../../../constant'; export const app = { - name: appName + ' (default)', + name: APP_NAME + ' (default)', color: state.get.default().theme.color, accent: { hsl: state.get.default().theme.accent.hsl, rgb: state.get.default().theme.accent.rgb }, font: state.get.default().theme.font, diff --git a/src/component/themePreset/index.js b/src/component/themePreset/index.js index 4eeffb1c..fd360d36 100644 --- a/src/component/themePreset/index.js +++ b/src/component/themePreset/index.js @@ -1,4 +1,3 @@ -import { state } from '../state'; import { acrid } from './acrid'; import { aerial } from './aerial'; diff --git a/src/component/themePreset/umbra/index.js b/src/component/themePreset/umbra/index.js index 85184dd7..2e01c131 100644 --- a/src/component/themePreset/umbra/index.js +++ b/src/component/themePreset/umbra/index.js @@ -24,4 +24,4 @@ export const umbra = { bookmark: { color: { by: 'theme', opacity: 10, hsl: { h: 0, s: 0, l: 0 }, rgb: { r: 0, g: 0, b: 0 } }, item: { border: 0, opacity: 70 } }, group: { toolbar: { opacity: 0 } }, toolbar: { opacity: 0 } -} +}; diff --git a/src/component/toolbar/index.js b/src/component/toolbar/index.js index f5eff113..b95bd427 100644 --- a/src/component/toolbar/index.js +++ b/src/component/toolbar/index.js @@ -22,7 +22,7 @@ toolbar.bar.render = () => { break; - }; + } }; @@ -31,4 +31,4 @@ toolbar.init = () => { toolbar.current.update.edit(); }; -export { toolbar } +export { toolbar }; diff --git a/src/component/toolbarControl/index.js b/src/component/toolbarControl/index.js index d7530f73..bfdfd4ac 100644 --- a/src/component/toolbarControl/index.js +++ b/src/component/toolbarControl/index.js @@ -4,7 +4,6 @@ import { data } from '../data'; import { bookmark } from '../bookmark'; import { group } from '../group'; import { header } from '../header'; -import { theme } from '../theme'; import * as form from '../form'; @@ -20,7 +19,7 @@ import { applyCSSState } from '../../utility/applyCSSState'; import './index.css'; -export const ToolbarControl = function() { +export const ToolbarControl = function () { this.element = { toolbar: node('div|class:toolbar'), @@ -108,7 +107,7 @@ export const ToolbarControl = function() { this.element.group.classList.add('form-group-reverse'); break; - }; + } break; @@ -116,7 +115,7 @@ export const ToolbarControl = function() { this.element.group.classList.remove('form-group-reverse'); break; - }; + } if (state.get.current().toolbar.accent.show) { @@ -126,9 +125,9 @@ export const ToolbarControl = function() { if (this.element.group.contains(this.control.button.accent.button)) { this.element.group.removeChild(this.control.button.accent.button); - }; + } - }; + } if (state.get.current().toolbar.add.show) { @@ -138,9 +137,9 @@ export const ToolbarControl = function() { if (this.element.group.contains(this.control.button.add.toggle)) { this.element.group.removeChild(this.control.button.add.toggle); - }; + } - }; + } if (state.get.current().toolbar.edit.show) { @@ -150,9 +149,9 @@ export const ToolbarControl = function() { if (this.element.group.contains(this.control.button.edit.button)) { this.element.group.removeChild(this.control.button.edit.button); - }; + } - }; + } this.element.group.appendChild(this.control.button.setting.button); @@ -182,7 +181,7 @@ export const ToolbarControl = function() { html.classList.remove('is-toolbar-opacity-low'); - }; + } const add = (rgb) => { @@ -239,9 +238,7 @@ export const ToolbarControl = function() { case 'gradient': switch (state.get.current().toolbar.location) { - - case 'corner': - + case 'corner': { let angle = state.get.current().theme.background.gradient.angle; switch (state.get.current().toolbar.position) { @@ -256,7 +253,7 @@ export const ToolbarControl = function() { add(state.get.current().theme.background.gradient.start.rgb); } else if (angle >= 270) { add(state.get.current().theme.background.gradient.end.rgb); - }; + } break; case 'bottom-right': @@ -269,12 +266,13 @@ export const ToolbarControl = function() { add(state.get.current().theme.background.gradient.end.rgb); } else if (angle >= 270) { add(state.get.current().theme.background.gradient.start.rgb); - }; + } break; - }; + } break; + } case 'header': @@ -282,11 +280,11 @@ export const ToolbarControl = function() { break; - }; + } break; - }; + } this.control.button.accent.inputButtonStyle.update(['dot', 'link']); this.control.button.edit.style.update(['line', 'link']); @@ -302,7 +300,7 @@ export const ToolbarControl = function() { this.control.button.setting.style.update(['line']); this.control.button.add.buttonStyle.update(['line']); - }; + } }; @@ -316,7 +314,7 @@ export const ToolbarControl = function() { this.control.button.edit.deactive(); - }; + } }; @@ -341,7 +339,7 @@ export const ToolbarControl = function() { this.element.group.classList.add('form-group-reverse'); break; - }; + } applyCSSVar('toolbar.size'); applyCSSClass('toolbar.position'); diff --git a/src/component/transitional/index.js b/src/component/transitional/index.js index 60a317f2..41cb3918 100644 --- a/src/component/transitional/index.js +++ b/src/component/transitional/index.js @@ -1,15 +1,11 @@ import { state } from '../state'; import { node } from '../../utility/node'; -import { trimString } from '../../utility/trimString'; -import { isValidString } from '../../utility/isValidString'; -import { complexNode } from '../../utility/complexNode'; -import moment from 'moment'; import './index.css'; -export const Transitional = function({} = {}) { +export const Transitional = function () { this.element = { transitional: node('div|class:transitional'), @@ -20,7 +16,7 @@ export const Transitional = function({} = {}) { if (state.get.current().header.transitional.show) { this.element.transitional.appendChild(this.element.text); - }; + } }; @@ -32,9 +28,9 @@ export const Transitional = function({} = {}) { case 'time-and-date': if ((state.get.current().header.date.day.show || - state.get.current().header.date.date.show || - state.get.current().header.date.month.show || - state.get.current().header.date.year.show) && (state.get.current().header.clock.second.show || + state.get.current().header.date.date.show || + state.get.current().header.date.month.show || + state.get.current().header.date.year.show) && (state.get.current().header.clock.second.show || state.get.current().header.clock.minute.show || state.get.current().header.clock.hour.show)) { if (state.get.current().header.date.day.show && !state.get.current().header.date.date.show && !state.get.current().header.date.month.show && !state.get.current().header.date.year.show) { @@ -45,7 +41,7 @@ export const Transitional = function({} = {}) { value = 'The time and date is'; - }; + } } else if ( state.get.current().header.date.day.show || state.get.current().header.date.date.show || @@ -92,7 +88,7 @@ export const Transitional = function({} = {}) { value = 'The date is'; - }; + } } else if ( state.get.current().header.clock.second.show || state.get.current().header.clock.minute.show || @@ -101,7 +97,7 @@ export const Transitional = function({} = {}) { value = 'The time is'; - }; + } break; @@ -110,7 +106,7 @@ export const Transitional = function({} = {}) { break; - }; + } this.element.text.innerHTML = value; diff --git a/src/component/update/index.js b/src/component/update/index.js index 447f9d53..59270036 100644 --- a/src/component/update/index.js +++ b/src/component/update/index.js @@ -1,13 +1,12 @@ import { state } from '../state'; import { version } from '../version'; -import { convertColor } from '../../utility/convertColor'; import { updateLegacy } from '../updateLegacy'; const update = {}; update.mod = updateLegacy.get(); -update.mod['7.0.0'] = function(data) { +update.mod['7.0.0'] = function (data) { data.state.header.order.splice(data.state.header.order.indexOf('editAdd'), 1); data.state.header.order.splice(data.state.header.order.indexOf('colorAccent'), 1); @@ -43,7 +42,7 @@ update.mod['7.0.0'] = function(data) { data.state.header.date.format = 'month-date'; break; - }; + } switch (data.state.header.transitional.type) { @@ -51,7 +50,7 @@ update.mod['7.0.0'] = function(data) { data.state.header.transitional.type = 'time-and-date'; break; - }; + } data.state.header.order.push('toolbar'); @@ -93,7 +92,7 @@ update.mod['7.0.0'] = function(data) { if (toolbarSize < state.get.minMax().toolbar.size.min) { toolbarSize = state.get.minMax().toolbar.size.min; - }; + } data.state.toolbar = { location: 'header', @@ -147,7 +146,7 @@ update.mod['7.0.0'] = function(data) { data.state.layout.alignment = 'bottom-right'; break; - }; + } switch (data.state.layout.order) { @@ -159,7 +158,7 @@ update.mod['7.0.0'] = function(data) { data.state.layout.order = 'bookmark-header'; break; - }; + } data.state.theme.opacity = { general: 100 }; @@ -177,7 +176,7 @@ update.mod['7.0.0'] = function(data) { data.state.theme.header.color.by = data.state.header.color.by; - }; + } data.state.theme.header.color.hsl = data.state.header.color.hsl; @@ -213,7 +212,7 @@ update.mod['7.0.0'] = function(data) { case 'video': data.state.theme.background.type = 'video'; break; - }; + } } else { @@ -221,9 +220,9 @@ update.mod['7.0.0'] = function(data) { data.state.theme.background.type = 'color'; } else { data.state.theme.background.type = 'theme'; - }; + } - }; + } delete data.state.theme.background.color.by; @@ -275,7 +274,7 @@ update.mod['7.0.0'] = function(data) { if (data.state.theme.color.contrast.end <= data.state.theme.color.contrast.start) { data.state.theme.color.contrast.end = data.state.theme.color.contrast.start + 10; - }; + } if (data.state.theme.color.contrast.start > state.get.minMax().theme.color.contrast.start.max) { @@ -285,7 +284,7 @@ update.mod['7.0.0'] = function(data) { data.state.theme.color.contrast.start = state.get.minMax().theme.color.contrast.start.min; - }; + } if (data.state.theme.color.contrast.end > state.get.minMax().theme.color.contrast.end.max) { @@ -295,7 +294,7 @@ update.mod['7.0.0'] = function(data) { data.state.theme.color.contrast.end = state.get.minMax().theme.color.contrast.end.min; - }; + } data.state.theme.shade.opacity = data.state.theme.shade.opacity * 100; data.state.theme.shade.blur = 0; @@ -304,7 +303,7 @@ update.mod['7.0.0'] = function(data) { delete data.state.theme.color.rgb; delete data.state.theme.color.generated; - data.state.theme.custom.all.forEach((item, i) => { + data.state.theme.custom.all.forEach((item) => { item.color.range = { primary: { @@ -334,11 +333,11 @@ update.mod['7.0.0'] = function(data) { end: Math.ceil((item.color.contrast.dark) * 16) }; - }; + } if (item.color.contrast.end <= item.color.contrast.start) { item.color.contrast.end = item.color.contrast.start + 1; - }; + } if (item.color.contrast.start > state.get.minMax().theme.color.contrast.start.max) { @@ -348,7 +347,7 @@ update.mod['7.0.0'] = function(data) { item.color.contrast.start = state.get.minMax().theme.color.contrast.start.min; - }; + } if (item.color.contrast.end > state.get.minMax().theme.color.contrast.end.max) { @@ -358,7 +357,7 @@ update.mod['7.0.0'] = function(data) { item.color.contrast.end = state.get.minMax().theme.color.contrast.end.min; - }; + } delete item.color.hsl; delete item.color.rgb; @@ -374,7 +373,7 @@ update.mod['7.0.0'] = function(data) { item.shade = { opacity: 20 }; - }; + } item.shade.blur = 0; @@ -437,7 +436,7 @@ update.mod['7.0.0'] = function(data) { data.state.group.order = 'body-header'; break; - }; + } data.state.group.name.size = data.state.group.name.size * 100; data.state.group.openAll.size = data.state.group.openAll.size * 100; @@ -461,9 +460,9 @@ update.mod['7.0.0'] = function(data) { delete data.bookmarks; - data.bookmark.forEach((item, i) => { + data.bookmark.forEach((item) => { - item.items.forEach((item, i) => { + item.items.forEach((item) => { item.timestamp = item.timeStamp; @@ -486,7 +485,7 @@ update.mod['7.0.0'] = function(data) { item.display.visual.size = item.display.visual.image.size * 10; break; - }; + } delete item.display.visual.letter.size; delete item.display.visual.image.size; @@ -507,7 +506,7 @@ update.mod['7.0.0'] = function(data) { item.display.order = 'name-visual'; break; - }; + } switch (item.display.alignment) { case 'topleft': @@ -546,7 +545,7 @@ update.mod['7.0.0'] = function(data) { item.display.alignment = 'bottom-right'; break; - }; + } item.shape = { wide: item.wide, @@ -573,7 +572,7 @@ update.mod['7.0.0'] = function(data) { return data; }; -update.mod['7.1.0'] = function(data) { +update.mod['7.1.0'] = function (data) { data.state.layout.favicon = ''; @@ -585,7 +584,7 @@ update.mod['7.1.0'] = function(data) { delete data.state.theme.group.openAll; - data.state.theme.custom.all.forEach((item, i) => { + data.state.theme.custom.all.forEach((item) => { item.group.toolbar = { opacity: item.group.openAll.opacity }; @@ -593,7 +592,7 @@ update.mod['7.1.0'] = function(data) { }); - data.bookmark.forEach((item, i) => { + data.bookmark.forEach((item) => { item.toolbar = { openAll: { show: item.openAll.show }, @@ -615,14 +614,14 @@ update.run = (data) => { console.log('\t > running update', key); data = update.mod[key](data); data.version = key; - }; - }; + } + } // if no update is needed version bump if (version.compare(data.version, version.number) == -1) { console.log('\t > no state data to update, version bump to', version.number); data.version = version.number; - }; + } return data; diff --git a/src/component/updateLegacy/index.js b/src/component/updateLegacy/index.js index d38b7e09..8bdd3ab9 100644 --- a/src/component/updateLegacy/index.js +++ b/src/component/updateLegacy/index.js @@ -1,16 +1,14 @@ -import { state } from '../state'; -import { version } from '../version'; import { convertColor } from '../../utility/convertColor'; const updateLegacy = {}; updateLegacy.get = () => { return { - '1.0.0': function(data) { + '1.0.0': function (data) { data.version = '1.0.0'; return data; }, - '2.0.0': function(data) { + '2.0.0': function (data) { // major state overhaul for version 2.0.0 and up data.state = { header: { @@ -99,21 +97,21 @@ updateLegacy.get = () => { data.bookmarks = []; return data; }, - '2.1.0': function(data) { + '2.1.0': function (data) { data.state.layout.theme = { current: data.state.layout.theme.current, random: false }; return data; }, - '2.3.0': function(data) { + '2.3.0': function (data) { data.state.layout.theme.random = { active: data.state.layout.theme.random, style: 'any' }; return data; }, - '2.4.0': function(data) { + '2.4.0': function (data) { data.state.link.show = { active: true, name: true, @@ -135,11 +133,11 @@ updateLegacy.get = () => { }; return data; }, - '2.5.0': function(data) { + '2.5.0': function (data) { data.state.header.search.focus = false; return data; }, - '2.7.0': function(data) { + '2.7.0': function (data) { // update date character length data.state.header.date.character = { length: data.state.header.date.characterLength @@ -190,11 +188,11 @@ updateLegacy.get = () => { data.state.modal = false; return data; }, - '2.8.0': function(data) { + '2.8.0': function (data) { data.state.layout.title = 'New Tab'; return data; }, - '2.9.0': function(data) { + '2.9.0': function (data) { data.state.header.shade = { show: true, padding: 4, @@ -207,7 +205,7 @@ updateLegacy.get = () => { }; return data; }, - '2.10.0': function(data) { + '2.10.0': function (data) { data.state.header.shade = { show: true, padding: 4, @@ -220,7 +218,7 @@ updateLegacy.get = () => { }; return data; }, - '2.11.0': function(data) { + '2.11.0': function (data) { data.state.header.greeting = { show: false, type: 'good', @@ -228,15 +226,7 @@ updateLegacy.get = () => { }; return data; }, - '2.11.0': function(data) { - data.state.header.greeting = { - show: false, - type: 'good', - name: '' - }; - return data; - }, - '2.12.0': function(data) { + '2.12.0': function (data) { data.state.bookmarks.link = { show: data.state.bookmarks.show.link }; @@ -258,11 +248,11 @@ updateLegacy.get = () => { delete data.state.layout.theme; return data; }, - '2.14.0': function(data) { + '2.14.0': function (data) { data.state.layout.width = 72; return data; }, - '2.16.0': function(data) { + '2.16.0': function (data) { data.state.header.shade.padding = { top: data.state.header.shade.padding, bottom: data.state.header.shade.padding @@ -279,13 +269,13 @@ updateLegacy.get = () => { }; return data; }, - '2.17.0': function(data) { + '2.17.0': function (data) { data.state.header.search.engine.google.name = 'Google'; data.state.header.search.engine.duckduckgo.name = 'Duck Duck Go'; data.state.header.search.engine.giphy.name = 'Giphy'; return data; }, - '2.19.0': function(data) { + '2.19.0': function (data) { data.state.header.search.engine.youtube = { url: 'https://www.youtube.com/results?search_query=', name: 'YouTube' @@ -293,7 +283,7 @@ updateLegacy.get = () => { data.state.header.search.engine.custom.name = ''; return data; }, - '2.20.0': function(data) { + '2.20.0': function (data) { data.state.header.search.width = { style: 'auto', custom: 30 @@ -304,7 +294,7 @@ updateLegacy.get = () => { delete data.state.header.search.grow; return data; }, - '2.21.0': function(data) { + '2.21.0': function (data) { data.state.header.clock = { hours: { show: data.state.header.clock.show.hours, @@ -361,8 +351,8 @@ updateLegacy.get = () => { }; return data; }, - '2.22.0': function(data) { - data.bookmarks.forEach(function(arrayItem, index) { + '2.22.0': function (data) { + data.bookmarks.forEach(function (arrayItem) { arrayItem.accent = { override: false, color: { @@ -374,8 +364,8 @@ updateLegacy.get = () => { }); return data; }, - '3.0.0': function(data) { - data.bookmarks.forEach(function(arrayItem, index) { + '3.0.0': function (data) { + data.bookmarks.forEach(function (arrayItem) { arrayItem.display = 'letter'; arrayItem.icon = { name: null, @@ -385,7 +375,7 @@ updateLegacy.get = () => { }); return data; }, - '3.1.0': function(data) { + '3.1.0': function (data) { data.state.header.area = { width: 90, alignment: { @@ -424,7 +414,7 @@ updateLegacy.get = () => { data.state.autoSuggest = false; return data; }, - '3.2.0': function(data) { + '3.2.0': function (data) { data.state.link.display = { show: true, alignment: { @@ -440,14 +430,14 @@ updateLegacy.get = () => { }; return data; }, - '3.4.0': function(data) { + '3.4.0': function (data) { data.state.header.padding = data.state.header.shade.padding; delete data.state.header.shade.padding; data.state.header.border = data.state.header.shade.border; delete data.state.header.shade.border; return data; }, - '3.6.0': function(data) { + '3.6.0': function (data) { data.state.header.item = data.state.header.items; delete data.state.header.items; data.state.link.area.gap = 2; @@ -464,13 +454,13 @@ updateLegacy.get = () => { delete data.state.link.url; return data; }, - '3.7.0': function(data) { + '3.7.0': function (data) { data.state.link.item.line = { show: true }; return data; }, - '3.8.0': function(data) { + '3.8.0': function (data) { data.state.header.clock.size = 1; data.state.header.date.size = 1; data.state.header.greeting.size = 1; @@ -491,7 +481,7 @@ updateLegacy.get = () => { data.state.theme.radius = 0.2; return data; }, - '3.9.0': function(data) { + '3.9.0': function (data) { delete data.state.header.padding; data.state.header.radius = false; data.state.header.border = { @@ -504,32 +494,32 @@ updateLegacy.get = () => { delete data.state.link.area.gap; return data; }, - '3.10.0': function(data) { + '3.10.0': function (data) { data.state.header.button.style = 'box'; return data; }, - '3.11.0': function(data) { + '3.11.0': function (data) { data.state.link.item.line = data.state.link.item.line.show; data.state.link.item.hoverScale = true; return data; }, - '3.15.0': function(data) { + '3.15.0': function (data) { delete data.state.link.sort; return data; }, - '3.18.0': function(data) { + '3.18.0': function (data) { data.nighttab = true; return data; }, - '3.20.0': function(data) { + '3.20.0': function (data) { data.state.link.item.url = data.state.link.item.url.show; return data; }, - '3.21.0': function(data) { + '3.21.0': function (data) { data.state.layout.order = 'headerLink'; return data; }, - '3.27.0': function(data) { + '3.27.0': function (data) { // swicth to single values for alignment controls // no more horizontal or vertical keys in state object data.state.header.area.alignment = data.state.header.area.alignment.horizontal; @@ -541,14 +531,14 @@ updateLegacy.get = () => { data.state.layout.alignment = data.state.layout.alignment.vertical + data.state.layout.alignment.horizontal; return data; }, - '3.28.0': function(data) { + '3.28.0': function (data) { data.state.header.search.engine.bing = { url: 'https://www.bing.com/search?q=', name: 'Bing' }; return data; }, - '3.29.0': function(data) { + '3.29.0': function (data) { // move new tab into link data.state.link.item.newTab = data.state.link.newTab; delete data.state.link.newTab; @@ -565,32 +555,32 @@ updateLegacy.get = () => { data.state.layout.order = data.state.layout.order.toLowerCase(); return data; }, - '3.30.0': function(data) { + '3.30.0': function (data) { data.state.link.item.order = 'displayname'; return data; }, - '3.32.0': function(data) { + '3.32.0': function (data) { if (data.state.background.image.url == '') { data.state.background.image.from = 'file'; } else { data.state.background.image.from = 'url'; - }; + } data.state.background.image.file = { name: '', data: '' }; return data; }, - '3.50.0': function(data) { + '3.50.0': function (data) { data.state.pagelock = false; data.state.shade = false; return data; }, - '3.51.0': function(data) { + '3.51.0': function (data) { data.state.link.add = false; return data; }, - '3.66.0': function(data) { + '3.66.0': function (data) { data.state.background.color = { by: 'theme', custom: { @@ -601,22 +591,22 @@ updateLegacy.get = () => { }; return data; }, - '3.80.0': function(data) { + '3.80.0': function (data) { delete data.state.link.item.newtab; data.state.link.item.border = 0; return data; }, - '3.81.0': function(data) { + '3.81.0': function (data) { data.state.link.orientation = 'bottom'; return data; }, - '3.82.0': function(data) { + '3.82.0': function (data) { data.state.link.item.shadow = { show: true }; return data; }, - '4.0.0': function(data) { + '4.0.0': function (data) { data.bookmarks = [{ name: 'Group 1', items: data.bookmarks @@ -668,28 +658,28 @@ updateLegacy.get = () => { data.state.link.item.display.order = 'letconname'; } else if (data.state.link.item.order == 'namedisplay') { data.state.link.item.display.order = 'nameletcon'; - }; + } delete data.state.link.item.order; if (data.state.link.style == 'block') { data.state.link.item.display.direction = 'vertical'; } else if (data.state.link.style == 'list') { data.state.link.item.display.direction = 'horizontal'; - }; + } delete data.state.link.fit; data.state.header.search.engine.duckduckgo.name = 'DuckDuckGo'; return data; }, - '4.1.0': function(data) { + '4.1.0': function (data) { data.state.link.item.display.gutter = 2; return data; }, - '4.2.0': function(data) { + '4.2.0': function (data) { data.state.edit = false; data.state.link.edit = false; data.state.group.edit = false; return data; }, - '4.3.0': function(data) { + '4.3.0': function (data) { data.state.theme.color = { hsl: { h: 222, @@ -714,20 +704,20 @@ updateLegacy.get = () => { delete data.state.header.button.accent; return data; }, - '4.4.0': function(data) { + '4.4.0': function (data) { data.state.header.button.colorAccent.dot = { show: true }; return data; }, - '4.6.0': function(data) { + '4.6.0': function (data) { data.state.theme.font = { display: '', ui: '' }; return data; }, - '4.7.0': function(data) { + '4.7.0': function (data) { data.state.theme.font.display = { name: data.state.theme.font.display, weight: 400, @@ -740,55 +730,55 @@ updateLegacy.get = () => { }; return data; }, - '4.8.0': function(data) { + '4.8.0': function (data) { data.state.theme.custom = []; return data; }, - '4.9.0': function(data) { + '4.9.0': function (data) { data.state.theme.color.contrast = { light: 4, dark: 4 }; return data; }, - '4.10.0': function(data) { + '4.10.0': function (data) { data.state.theme.shadow = 1; return data; }, - '4.11.0': function(data) { + '4.11.0': function (data) { data.state.theme.custom = { all: data.state.theme.custom, edit: false }; return data; }, - '4.17.0': function(data) { + '4.17.0': function (data) { data.state.theme.shade = { opacity: 0.4 }; return data; }, - '4.18.0': function(data) { + '4.18.0': function (data) { data.state.theme.accent.rgb = data.state.theme.accent.current; delete data.state.theme.accent.current; return data; }, - '4.19.2': function(data) { - data.bookmarks.forEach(function(arrayItem, index) { - arrayItem.items.forEach(function(arrayItem, index) { + '4.19.2': function (data) { + data.bookmarks.forEach(function (arrayItem) { + arrayItem.items.forEach(function (arrayItem) { arrayItem.searchMatch = false; }); }); return data; }, - '4.22.0': function(data) { + '4.22.0': function (data) { data.state.link.item.color.rgb = data.state.link.item.color.custom; delete data.state.link.item.color.custom; data.state.background.color.rgb = data.state.background.color.custom; delete data.state.background.color.custom; return data; }, - '4.23.0': function(data) { + '4.23.0': function (data) { data.state.header.color = data.state.header.shade; delete data.state.header.shade; data.state.header.color.by = 'theme'; @@ -799,11 +789,11 @@ updateLegacy.get = () => { }; return data; }, - '4.33.0': function(data) { + '4.33.0': function (data) { data.state.layout.scrollbars = 'auto'; return data; }, - '4.37.0': function(data) { + '4.37.0': function (data) { data.state.header.order = ['greeting', 'transitional', 'clock', 'date', 'search', 'editAdd', 'colorAccent', 'menu']; data.state.header.menu = { show: true, @@ -841,11 +831,11 @@ updateLegacy.get = () => { delete data.state.header.button; return data; }, - '4.38.0': function(data) { + '4.38.0': function (data) { data.state.theme.color.generated = {}; return data; }, - '4.40.0': function(data) { + '4.40.0': function (data) { data.state.header.area.justify = data.state.header.area.alignment; delete data.state.header.area.alignment; data.state.header.item.justify = data.state.header.item.alignment; @@ -859,11 +849,11 @@ updateLegacy.get = () => { data.state.header.area.align = 'center'; return data; }, - '4.41.0': function(data) { + '4.41.0': function (data) { data.state.header.search.newTab = false; return data; }, - '4.42.0': function(data) { + '4.42.0': function (data) { data.state.group.openAll = { show: true, size: 1, @@ -871,17 +861,17 @@ updateLegacy.get = () => { }; return data; }, - '4.44.0': function(data) { - if (!'newTab' in data.state.link.item && 'newTab' in data.state.link) { + '4.44.0': function (data) { + if (!('newTab' in data.state.link.item) && 'newTab' in data.state.link) { data.state.link.item.newTab = data.state.link.newTab; delete data.state.link.newTab; - }; + } return data; }, - '5.0.0': function(data) { + '5.0.0': function (data) { data.state.layout.direction = 'vertical'; data.state.link.area.direction = 'ltr'; - data.bookmarks.forEach(function(arrayItem, index) { + data.bookmarks.forEach(function (arrayItem) { arrayItem.name = { show: data.state.group.name.show, text: arrayItem.name @@ -901,36 +891,36 @@ updateLegacy.get = () => { data.state.header.date.separator.text = '/'; return data; }, - '5.1.0': function(data) { + '5.1.0': function (data) { data.state.link.item.opacity = 1; return data; }, - '5.2.0': function(data) { + '5.2.0': function (data) { if (data.state.header.search.style == 'box') { data.state.header.search.opacity = 1; } else if (data.state.header.search.style == 'clear') { data.state.header.search.opacity = 0; - }; + } if (data.state.header.editAdd.style == 'box') { data.state.header.editAdd.opacity = 1; } else if (data.state.header.editAdd.style == 'clear') { data.state.header.editAdd.opacity = 0; - }; + } if (data.state.header.colorAccent.style == 'box') { data.state.header.colorAccent.opacity = 1; } else if (data.state.header.colorAccent.style == 'clear') { data.state.header.colorAccent.opacity = 0; - }; + } if (data.state.header.menu.style == 'box') { data.state.header.menu.opacity = 1; } else if (data.state.header.menu.style == 'clear') { data.state.header.menu.opacity = 0; - }; + } if (data.state.group.openAll.style == 'box') { data.state.group.openAll.opacity = 1; } else if (data.state.group.openAll.style == 'clear') { data.state.group.openAll.opacity = 0; - }; + } delete data.state.header.search.style; delete data.state.header.editAdd.style; delete data.state.header.colorAccent.style; @@ -938,9 +928,9 @@ updateLegacy.get = () => { delete data.state.group.openAll.style; return data; }, - '5.3.0': function(data) { + '5.3.0': function (data) { data.state.theme.accent.hsl = convertColor.rgb.hsl(data.state.theme.accent.rgb); - data.state.theme.custom.all.forEach(function(arrayItem, index) { + data.state.theme.custom.all.forEach(function (arrayItem) { arrayItem.accent.rgb = { r: arrayItem.accent.r, g: arrayItem.accent.g, @@ -956,7 +946,7 @@ updateLegacy.get = () => { }); return data; }, - '5.4.0': function(data) { + '5.4.0': function (data) { data.state.background.image.vignette = { opacity: 0, start: 90, @@ -964,21 +954,21 @@ updateLegacy.get = () => { }; return data; }, - '5.37.1': function(data) { - data.bookmarks.forEach(function(arrayItem, index) { - arrayItem.items.forEach(function(arrayItem, index) { + '5.37.1': function (data) { + data.bookmarks.forEach(function (arrayItem) { + arrayItem.items.forEach(function (arrayItem) { if (arrayItem.name == null) { arrayItem.name = ''; - }; + } if (arrayItem.url == null) { arrayItem.url = ''; - }; + } for (var key in arrayItem.accent.color) { if (typeof arrayItem.accent.color[key] != 'number') { arrayItem.accent.color[key] = 0; - }; - }; + } + } arrayItem.accent.rgb = { r: arrayItem.accent.color.r, g: arrayItem.accent.color.g, @@ -994,7 +984,7 @@ updateLegacy.get = () => { arrayItem.accent.by = 'custom'; } else { arrayItem.accent.by = 'theme'; - }; + } delete arrayItem.accent.override; arrayItem.color = { by: 'theme', @@ -1021,16 +1011,16 @@ updateLegacy.get = () => { delete arrayItem.icon; if (arrayItem.visual.letter == null) { arrayItem.visual.letter = ''; - }; + } if (arrayItem.visual.icon.label == null) { arrayItem.visual.icon.label = ''; - }; + } if (arrayItem.visual.icon.name == null) { arrayItem.visual.icon.name = ''; - }; + } if (arrayItem.visual.icon.prefix == null) { arrayItem.visual.icon.prefix = ''; - }; + } }); }); @@ -1072,7 +1062,7 @@ updateLegacy.get = () => { data.state.link.item.display.order = 'visualname'; } else if (data.state.link.item.display.order == 'nameletcon') { data.state.link.item.display.order = 'namevisual'; - }; + } data.state.background.color.hsl = { h: 0, s: 0, @@ -1084,15 +1074,15 @@ updateLegacy.get = () => { }; return data; }, - '5.42.1': function(data) { + '5.42.1': function (data) { if (data.state.link.item.display.order == 'letconname') { data.state.link.item.display.order = 'visualname'; } else if (data.state.link.item.display.order == 'nameletcon') { data.state.link.item.display.order = 'namevisual'; - }; + } return data; }, - '5.44.0': function(data) { + '5.44.0': function (data) { data.state.link.item.color.opacity = data.state.link.item.opacity; delete data.state.link.item.opacity; data.state.link.item.image = { @@ -1100,9 +1090,9 @@ updateLegacy.get = () => { }; return data; }, - '5.46.0': function(data) { - data.bookmarks.forEach(function(arrayItem, index) { - arrayItem.items.forEach(function(arrayItem, index) { + '5.46.0': function (data) { + data.bookmarks.forEach(function (arrayItem) { + arrayItem.items.forEach(function (arrayItem) { arrayItem.wide = false; arrayItem.tall = false; }); @@ -1110,9 +1100,9 @@ updateLegacy.get = () => { data.state.link.breakpoint = 'xs'; return data; }, - '5.50.0': function(data) { - data.bookmarks.forEach(function(group, index) { - group.items.forEach(function(item, index) { + '5.50.0': function (data) { + data.bookmarks.forEach(function (group) { + group.items.forEach(function (item, index) { var bookmarkData = { display: { direction: data.state.link.item.display.direction, @@ -1191,130 +1181,130 @@ updateLegacy.get = () => { if ((bookmarkData.display.direction != 'vertical' && bookmarkData.display.direction != 'horizontal') || bookmarkData.display.direction == undefined) { bookmarkData.display.direction = 'vertical'; - }; + } if ((bookmarkData.display.order != 'visualname' && bookmarkData.display.order != 'namevisual') || bookmarkData.display.order == undefined) { bookmarkData.display.order = 'visualname'; - }; + } if ((bookmarkData.display.alignment != 'topleft' && bookmarkData.display.alignment != 'topcenter' && bookmarkData.display.alignment != 'topright' && bookmarkData.display.alignment != 'centerleft' && bookmarkData.display.alignment != 'centercenter' && bookmarkData.display.alignment != 'centerright' && bookmarkData.display.alignment != 'bottomleft' && bookmarkData.display.alignment != 'bottomcenter' && bookmarkData.display.alignment != 'bottomright') || bookmarkData.display.alignment == undefined) { bookmarkData.display.alignment = 'centercenter'; - }; + } if (typeof bookmarkData.display.gutter != 'number' || bookmarkData.display.gutter == undefined) { bookmarkData.display.gutter = 2; - }; + } if (typeof bookmarkData.display.rotate != 'number' || bookmarkData.display.rotate == undefined) { bookmarkData.display.rotate = 0; - }; + } if (typeof bookmarkData.display.translate.x != 'number' || bookmarkData.display.translate.x == undefined) { bookmarkData.display.translate.x = 0; - }; + } if (typeof bookmarkData.display.translate.y != 'number' || bookmarkData.display.translate.y == undefined) { bookmarkData.display.translate.y = 0; - }; + } if (bookmarkData.display.visual.show == undefined) { bookmarkData.display.visual.show = true; - }; + } if ((bookmarkData.display.visual.type != 'letter' && bookmarkData.display.visual.type != 'icon' && bookmarkData.display.visual.type != 'image') || bookmarkData.display.visual.type == undefined) { bookmarkData.display.visual.type = 'letter'; - }; + } if (typeof bookmarkData.display.visual.letter.size != 'number' || bookmarkData.display.visual.letter.size == undefined) { bookmarkData.display.visual.letter.size = 3; - }; + } if (bookmarkData.display.visual.letter.text == undefined) { bookmarkData.display.visual.letter.text = ''; - }; + } if (typeof bookmarkData.display.visual.image.size != 'number' || bookmarkData.display.visual.image.size == undefined) { bookmarkData.display.visual.image.size = 3; - }; + } if (bookmarkData.display.visual.image.url == undefined) { bookmarkData.display.visual.image.url = ''; - }; + } if (typeof bookmarkData.display.visual.icon.size != 'number' || bookmarkData.display.visual.icon.size == undefined) { bookmarkData.display.visual.icon.size = 3; - }; + } if (bookmarkData.display.visual.icon.name == undefined) { bookmarkData.display.visual.icon.name = ''; - }; + } if (bookmarkData.display.visual.icon.prefix == undefined) { bookmarkData.display.visual.icon.prefix = ''; - }; + } if (bookmarkData.display.visual.icon.label == undefined) { bookmarkData.display.visual.icon.label = ''; - }; + } if (typeof bookmarkData.display.visual.shadow.size != 'number' || bookmarkData.display.visual.shadow.size == undefined) { bookmarkData.display.visual.shadow.size = 0; - }; + } if (bookmarkData.display.name.show == undefined) { bookmarkData.display.name.show = true; - }; + } if (bookmarkData.display.name.text == undefined) { bookmarkData.display.name.text = ''; - }; + } if (typeof bookmarkData.display.name.size != 'number' || bookmarkData.display.name.size == undefined) { bookmarkData.display.name.size = 0.9; - }; + } if (bookmarkData.url == undefined) { bookmarkData.url = ''; - }; + } if ((bookmarkData.accent.by != 'theme' && bookmarkData.accent.by != 'custom') || bookmarkData.accent.by == undefined) { bookmarkData.accent.by = 'theme'; - }; + } if (typeof bookmarkData.accent.hsl.h != 'number' || bookmarkData.accent.hsl.h == undefined) { bookmarkData.accent.hsl.h = 0; - }; + } if (typeof bookmarkData.accent.hsl.s != 'number' || bookmarkData.accent.hsl.s == undefined) { bookmarkData.accent.hsl.s = 0; - }; + } if (typeof bookmarkData.accent.hsl.l != 'number' || bookmarkData.accent.hsl.l == undefined) { bookmarkData.accent.hsl.l = 0; - }; + } if (typeof bookmarkData.accent.rgb.r != 'number' || bookmarkData.accent.rgb.r == undefined) { bookmarkData.accent.rgb.r = 0; - }; + } if (typeof bookmarkData.accent.rgb.g != 'number' || bookmarkData.accent.rgb.g == undefined) { bookmarkData.accent.rgb.g = 0; - }; + } if (typeof bookmarkData.accent.rgb.b != 'number' || bookmarkData.accent.rgb.b == undefined) { bookmarkData.accent.rgb.b = 0; - }; + } if ((bookmarkData.color.by != 'theme' && bookmarkData.color.by != 'custom') || bookmarkData.color.by == undefined) { bookmarkData.color.by = 'theme'; - }; + } if (typeof bookmarkData.color.hsl.h != 'number' || bookmarkData.color.hsl.h == undefined) { bookmarkData.color.hsl.h = 0; - }; + } if (typeof bookmarkData.color.hsl.s != 'number' || bookmarkData.color.hsl.s == undefined) { bookmarkData.color.hsl.s = 0; - }; + } if (typeof bookmarkData.color.hsl.l != 'number' || bookmarkData.color.hsl.l == undefined) { bookmarkData.color.hsl.l = 0; - }; + } if (typeof bookmarkData.color.rgb.r != 'number' || bookmarkData.color.rgb.r == undefined) { bookmarkData.color.rgb.r = 0; - }; + } if (typeof bookmarkData.color.rgb.g != 'number' || bookmarkData.color.rgb.g == undefined) { bookmarkData.color.rgb.g = 0; - }; + } if (typeof bookmarkData.color.rgb.b != 'number' || bookmarkData.color.rgb.b == undefined) { bookmarkData.color.rgb.b = 0; - }; + } if (typeof bookmarkData.color.opacity != 'number' || bookmarkData.color.opacity == undefined) { bookmarkData.color.opacity = 1; - }; + } if (bookmarkData.image.url == undefined) { bookmarkData.image.url = ''; - }; + } if (typeof bookmarkData.image.opacity != 'number' || bookmarkData.image.opacity == undefined) { bookmarkData.image.opacity = 1; - }; + } if (bookmarkData.wide == undefined) { bookmarkData.wide = false; - }; + } if (bookmarkData.tall == undefined) { bookmarkData.tall = false; - }; + } if (bookmarkData.searchMatch == undefined) { bookmarkData.searchMatch = false; - }; + } group.items[index] = bookmarkData; }); @@ -1324,9 +1314,9 @@ updateLegacy.get = () => { delete data.state.link.item.display.visual.show; return data; }, - '5.74.0': function(data) { - data.bookmarks.forEach(function(group, index) { - group.items.forEach(function(item, index) { + '5.74.0': function (data) { + data.bookmarks.forEach(function (group) { + group.items.forEach(function (item) { item.background = { show: false, type: 'image', @@ -1340,7 +1330,7 @@ updateLegacy.get = () => { }; if (item.image.url != '') { item.background.show = true; - }; + } delete item.image; }); }); @@ -1348,7 +1338,7 @@ updateLegacy.get = () => { delete data.state.link.item.image; return data; }, - '5.78.0': function(data) { + '5.78.0': function (data) { var backgroundData = { show: data.state.background.image.show, type: 'video', @@ -1376,12 +1366,12 @@ updateLegacy.get = () => { }; if (data.state.background.image.show) { backgroundData.type = 'image'; - }; + } data.state.background.visual = backgroundData; delete data.state.background.image; return data; }, - '6.5.0': function(data) { + '6.5.0': function (data) { data.state.header.greeting.custom = ''; return data; } diff --git a/src/component/version/index.js b/src/component/version/index.js index 97bea41d..ee591455 100644 --- a/src/component/version/index.js +++ b/src/component/version/index.js @@ -18,21 +18,21 @@ version.compare = (a, b) => { if (na > nb) { return 1; - }; + } if (nb > na) { return -1; - }; + } if (!isNaN(na) && isNaN(nb)) { return 1; - }; + } if (isNaN(na) && !isNaN(nb)) { return -1; - }; + } - }; + } return 0; }; diff --git a/src/component/video/index.js b/src/component/video/index.js index 6d7ed9dd..3f4df0fc 100644 --- a/src/component/video/index.js +++ b/src/component/video/index.js @@ -1,12 +1,8 @@ -import { state } from '../state'; -import { data } from '../data'; import { node } from '../../utility/node'; -import { convertColor } from '../../utility/convertColor'; -import { trimString } from '../../utility/trimString'; import { isValidString } from '../../utility/isValidString'; -export const Video = function({ +export const Video = function ({ url = false } = {}) { @@ -27,7 +23,7 @@ export const Video = function({ playPromise.then(() => { this.video.pause(); }); - }; + } }; this.assemble = () => { @@ -46,13 +42,13 @@ export const Video = function({ this.source.type = 'video/webm'; - }; + } if (isValidString(url)) { this.source.src = url; - }; + } }; diff --git a/src/constant/index.js b/src/constant/index.js new file mode 100644 index 00000000..5de60f65 --- /dev/null +++ b/src/constant/index.js @@ -0,0 +1 @@ +export const APP_NAME = 'nightTab'; diff --git a/src/index.js b/src/index.js index b95b3c84..746b69b4 100644 --- a/src/index.js +++ b/src/index.js @@ -1,6 +1,7 @@ import { component } from './component'; +import { APP_NAME } from './constant'; -console.log(component.appName + ' version:', component.version.number, component.version.name); +console.log(APP_NAME + ' version:', component.version.number, component.version.name); component.data.init(); diff --git a/src/initialBackground.js b/src/initialBackground.js index 0f6bd578..6d52f422 100644 --- a/src/initialBackground.js +++ b/src/initialBackground.js @@ -10,6 +10,6 @@ if (localStorage.getItem('nightTabStyle')) { case 'dark': style.innerHTML = 'html, body {background-color: rgb(0, 0, 0);}'; break; - }; + } document.querySelector('head').appendChild(style); -}; +} diff --git a/src/component/reset/index.css b/src/style/reset.css similarity index 100% rename from src/component/reset/index.css rename to src/style/reset.css diff --git a/src/utility/applyCSSClass.js b/src/utility/applyCSSClass.js index 14f27700..2bddc548 100644 --- a/src/utility/applyCSSClass.js +++ b/src/utility/applyCSSClass.js @@ -10,7 +10,7 @@ export const applyCSSClass = (path) => { get({ object: state.get.option(), path: path - }).forEach((item, i) => { + }).forEach((item) => { html.classList.remove('is-' + path.replace(/\./g, '-').toLowerCase() + '-' + item); @@ -25,12 +25,12 @@ export const applyCSSClass = (path) => { if (Array.isArray(path)) { - path.forEach((item, i) => { apply(item); }); + path.forEach((item) => { apply(item); }); } else { apply(path); - }; + } }; diff --git a/src/utility/applyCSSState.js b/src/utility/applyCSSState.js index 5d1a3cbd..b8f9a01d 100644 --- a/src/utility/applyCSSState.js +++ b/src/utility/applyCSSState.js @@ -1,7 +1,7 @@ import { state } from '../component/state'; import { get } from './get'; -export const applyCSSState = function(path) { +export const applyCSSState = function (path) { const html = document.querySelector('html'); @@ -15,18 +15,18 @@ export const applyCSSState = function(path) { html.classList.remove('is-' + path.replace(/\./g, '-').toLowerCase()); - }; + } }; if (Array.isArray(path)) { - path.forEach((item, i) => { apply(item); }); + path.forEach((item) => { apply(item); }); } else { apply(path); - }; + } }; diff --git a/src/utility/applyCSSVar.js b/src/utility/applyCSSVar.js index 194144db..02afba3d 100644 --- a/src/utility/applyCSSVar.js +++ b/src/utility/applyCSSVar.js @@ -16,12 +16,12 @@ export const applyCSSVar = (path) => { if (Array.isArray(path)) { - path.forEach((item, i) => { apply(item); }); + path.forEach((item) => { apply(item); }); } else { apply(path); - }; + } }; diff --git a/src/utility/clearChildNode.js b/src/utility/clearChildNode.js index bde8b2e1..5ea9b3e3 100644 --- a/src/utility/clearChildNode.js +++ b/src/utility/clearChildNode.js @@ -2,6 +2,6 @@ export const clearChildNode = (element) => { while (element.lastChild) { element.removeChild(element.lastChild); - }; + } }; diff --git a/src/utility/complexNode.js b/src/utility/complexNode.js index 23face01..d52e9b01 100644 --- a/src/utility/complexNode.js +++ b/src/utility/complexNode.js @@ -20,41 +20,41 @@ export const complexNode = ({ element.appendChild(textNode); - }; + } - }; + } if (attr.length > 0) { - attr.forEach((item, i) => { + attr.forEach((item) => { if ('key' in item && 'value' in item) { element.setAttribute(item.key, item.value); } else if ('key' in item) { element.setAttribute(item.key, ''); - }; + } }); - }; + } if (node) { if (typeof node != 'string') { if (node.length > 0) { - node.forEach((item, i) => { + node.forEach((item) => { if (item instanceof HTMLElement) { element.appendChild(item); - }; + } }); } else { if (node instanceof HTMLElement) { element.appendChild(node); - }; + } - }; - }; - }; + } + } + } return element; diff --git a/src/utility/convertColor.js b/src/utility/convertColor.js index 6d087294..32d3c0b4 100644 --- a/src/utility/convertColor.js +++ b/src/utility/convertColor.js @@ -22,13 +22,13 @@ convertColor.rgb.hsl = (rgb) => { h = 2 + (b - r) / delta; } else if (b === max) { h = 4 + (r - g) / delta; - }; + } h = Math.min(h * 60, 360); if (h < 0) { h += 360; - }; + } var l = (min + max) / 2; @@ -38,7 +38,7 @@ convertColor.rgb.hsl = (rgb) => { s = delta / (max + min); } else { s = delta / (2 - max - min); - }; + } return { h: Math.round(h), @@ -72,13 +72,13 @@ convertColor.hsl.rgb = (hsl) => { g: Math.round(val), b: Math.round(val) }; - }; + } if (l < 0.5) { t2 = l * (1 + s); } else { t2 = l + s - l * s; - }; + } var t1 = 2 * l - t2; @@ -89,11 +89,11 @@ convertColor.hsl.rgb = (hsl) => { if (t3 < 0) { t3++; - }; + } if (t3 > 1) { t3--; - }; + } if (6 * t3 < 1) { val = t1 + (t2 - t1) * 6 * t3; @@ -103,10 +103,10 @@ convertColor.hsl.rgb = (hsl) => { val = t1 + (t2 - t1) * (2 / 3 - t3) * 6; } else { val = t1; - }; + } rgb[i] = val * 255; - }; + } return { r: Math.round(rgb[0]), @@ -124,7 +124,7 @@ convertColor.hex.rgb = (args) => { g: 0, b: 0 }; - }; + } var colorString = match[0]; @@ -132,7 +132,7 @@ convertColor.hex.rgb = (args) => { colorString = colorString.split('').map((char) => { return char + char; }).join(''); - }; + } var integer = parseInt(colorString, 16); var r = (integer >> 16) & 0xFF; diff --git a/src/utility/get.js b/src/utility/get.js index 1fbeb1f1..e9858aae 100644 --- a/src/utility/get.js +++ b/src/utility/get.js @@ -21,13 +21,13 @@ export const get = ({ object[currentKey] = {}; } else { object[currentKey] = []; - }; - }; + } + } // drill down the object with the first key object = object[currentKey]; - }; + } let finalKey = address.shift(); @@ -35,7 +35,7 @@ export const get = ({ return ''; } else { return object[finalKey]; - }; + } }; @@ -43,6 +43,6 @@ export const get = ({ return getValue(); } else { return false; - }; + } }; diff --git a/src/utility/isElementVisible.js b/src/utility/isElementVisible.js deleted file mode 100644 index 018e9141..00000000 --- a/src/utility/isElementVisible.js +++ /dev/null @@ -1,31 +0,0 @@ -export const isElementVisible = (element) => { - - var rect = element.getBoundingClientRect(); - - const vWidth = window.innerWidth || doc.documentElement.clientWidth; - - const vHeight = window.innerHeight || doc.documentElement.clientHeight; - - const efp = (x, y) => { - return document.elementFromPoint(x, y) - }; - - // Return false if element is not in the viewport - if ( - rect.right < 0 || - rect.bottom < 0 || - rect.left > vWidth || - rect.top > vHeight - ) { - return false; - }; - - // Return true if any of the element four corners are visible - return ( - element.contains(efp(rect.left, rect.top)) || - element.contains(efp(rect.right, rect.top)) || - element.contains(efp(rect.right, rect.bottom)) || - element.contains(efp(rect.left, rect.bottom)) - ); - -}; diff --git a/src/utility/isJson.js b/src/utility/isJson.js index f2d7bd52..05d85e77 100644 --- a/src/utility/isJson.js +++ b/src/utility/isJson.js @@ -4,7 +4,7 @@ export const isJson = (string) => { JSON.parse(string); } catch (error) { return false; - }; + } return true; diff --git a/src/utility/isValidString.js b/src/utility/isValidString.js index 91a937cc..e9a9abb8 100644 --- a/src/utility/isValidString.js +++ b/src/utility/isValidString.js @@ -5,8 +5,8 @@ export const isValidString = (value) => { value = value.trim().replace(/\s/g, ''); if (value != '') { result = true; - }; - }; + } + } return result; }; diff --git a/src/utility/makePath.js b/src/utility/makePath.js index d231babf..532740b7 100644 --- a/src/utility/makePath.js +++ b/src/utility/makePath.js @@ -11,17 +11,17 @@ export const makePath = (string) => { for (var i = 0; i < array.length; i++) { if (array[i] == '') { array.splice(i, 1); - }; + } if (!isNaN(parseInt(array[i], 10))) { array[i] = parseInt(array[i], 10); - }; - }; + } + } } else { array = string.split('.'); - }; + } return array; @@ -29,6 +29,6 @@ export const makePath = (string) => { return false; - }; + } }; diff --git a/src/utility/minMax.js b/src/utility/minMax.js index d9f03b57..62a70a06 100644 --- a/src/utility/minMax.js +++ b/src/utility/minMax.js @@ -20,6 +20,6 @@ export const minMax = ({ return value; - }; + } }; diff --git a/src/utility/node.js b/src/utility/node.js index a418a227..b90ab524 100644 --- a/src/utility/node.js +++ b/src/utility/node.js @@ -7,7 +7,7 @@ export const node = (string, node) => { tag = string.slice(0, string.indexOf('|')); } else { tag = string; - }; + } let text = false; @@ -19,13 +19,13 @@ export const node = (string, node) => { tag = pair[0]; // replace \: with : text = pair[1].replace('\\', ':'); - }; + } let element = document.createElement(tag); if (text && text != '') { element.innerHTML = text; - }; + } let attributes = string.slice(string.indexOf('|') + 1, string.length).split(','); @@ -50,7 +50,7 @@ export const node = (string, node) => { } }); - attributes.forEach((item, i) => { + attributes.forEach((item) => { if ('key' in item && item.key != undefined && 'value' in item && item.value != undefined) { element.setAttribute(item.key, item.value); } else if ('key' in item && item.key != undefined) { @@ -58,7 +58,7 @@ export const node = (string, node) => { } }); - }; + } if (node) { @@ -66,7 +66,7 @@ export const node = (string, node) => { if (node.length > 0) { - node.forEach((item, i) => { + node.forEach((item) => { if (item instanceof HTMLElement) { @@ -80,7 +80,7 @@ export const node = (string, node) => { element.appendChild(div.firstChild); - }; + } }); @@ -98,13 +98,13 @@ export const node = (string, node) => { element.appendChild(div.firstChild); - }; + } - }; + } - }; + } - }; + } return element; }; diff --git a/src/utility/ordinalNumber.js b/src/utility/ordinalNumber.js index f8528c81..3ff14ecf 100644 --- a/src/utility/ordinalNumber.js +++ b/src/utility/ordinalNumber.js @@ -6,15 +6,15 @@ export const ordinalNumber = (number) => { if (j == 1 && k != 11) { return number + 'st'; - }; + } if (j == 2 && k != 12) { return number + 'nd'; - }; + } if (j == 3 && k != 13) { return number + 'rd'; - }; + } return number + 'th'; diff --git a/src/utility/ordinalWord.js b/src/utility/ordinalWord.js index 4f88a365..889a9e39 100644 --- a/src/utility/ordinalWord.js +++ b/src/utility/ordinalWord.js @@ -37,7 +37,7 @@ export const ordinalWord = (word) => { // Ends with one through twelve } else if (endsWithZeroThroughTwelvePattern.test(word)) { return word.replace(endsWithZeroThroughTwelvePattern, replaceWithOrdinalVariant); - }; + } return word; diff --git a/src/utility/randomString.js b/src/utility/randomString.js index b999c3b8..608a9133 100644 --- a/src/utility/randomString.js +++ b/src/utility/randomString.js @@ -76,18 +76,18 @@ export const randomString = ({ }, long: () => { - const randomAdjective = ''; + let randomAdjective = ''; for (let i = 1; i <= adjectivesCount; i++) { if (adjectives[letter.toLowerCase()].length > 0) { if (randomAdjective.length > 0) { randomAdjective = randomAdjective + ' '; - }; + } randomAdjective = randomAdjective + adjectives[letter.toLowerCase()].splice(Math.floor(Math.random() * adjectives[letter.toLowerCase()].length), 1); - }; + } - }; + } const randomAnimal = animals[letter.toLowerCase()][Math.floor(Math.random() * animals[letter.toLowerCase()].length)]; @@ -120,18 +120,18 @@ export const randomString = ({ if (randomAdjective.length > 0) { randomAdjective = randomAdjective + ' '; - }; + } randomAdjective = randomAdjective + adjectives[adjectiveLetter].splice(Math.floor(Math.random() * adjectives[adjectiveLetter].length), 1); if (adjectives[adjectiveLetter].length == 0) { delete adjectives[adjectiveLetter]; - }; + } - }; - }; + } + } - var randomAnimalArray = animals[alphabet[Math.floor(Math.random() * (alphabet.length - 1))]] + var randomAnimalArray = animals[alphabet[Math.floor(Math.random() * (alphabet.length - 1))]]; var randomAnimal = randomAnimalArray[Math.floor(Math.random() * (randomAnimalArray.length - 1))]; @@ -147,7 +147,7 @@ export const randomString = ({ return action.alliteration.long(); } else { return action.alliteration.short(); - }; + } } else { @@ -155,8 +155,8 @@ export const randomString = ({ return action.mix.long(); } else { return action.mix.short(); - }; + } - }; + } }; diff --git a/src/utility/set.js b/src/utility/set.js index ca0b89b4..370f4300 100644 --- a/src/utility/set.js +++ b/src/utility/set.js @@ -22,13 +22,13 @@ export const set = ({ object[currentKey] = {}; } else { object[currentKey] = []; - }; - }; + } + } // drill down the object with the first key object = object[currentKey]; - }; + } let finalKey = address.shift(); @@ -40,6 +40,6 @@ export const set = ({ setValue(); } else { return false; - }; + } }; diff --git a/src/utility/sortArrayOfObject.js b/src/utility/sortArrayOfObject.js index 90c2bd34..1bc8abad 100644 --- a/src/utility/sortArrayOfObject.js +++ b/src/utility/sortArrayOfObject.js @@ -11,7 +11,7 @@ export const sortArrayOfObject = (array, key) => { if (typeof textA == 'string') { textA = textA.toLowerCase(); - }; + } let textB = get({ object: b, @@ -20,7 +20,7 @@ export const sortArrayOfObject = (array, key) => { if (typeof textB == 'string') { textB = textB.toLowerCase(); - }; + } if (textA < textB) { return -1; @@ -28,7 +28,7 @@ export const sortArrayOfObject = (array, key) => { return 1; } else { return 0; - }; + } }); diff --git a/src/utility/trimString.js b/src/utility/trimString.js index 127c63a3..40180a24 100644 --- a/src/utility/trimString.js +++ b/src/utility/trimString.js @@ -4,6 +4,6 @@ export const trimString = (value) => { return value.trim().replace(/\s\s+/g, ' '); } else { return value; - }; + } }; diff --git a/src/utility/wordNumber.js b/src/utility/wordNumber.js index d5bcb630..5eb3f628 100644 --- a/src/utility/wordNumber.js +++ b/src/utility/wordNumber.js @@ -32,18 +32,18 @@ export const wordNumber = (number) => { // We’re done if (number === 0) { return !words ? 'Zero' : words.join(' ').replace(/,$/, ''); - }; + } // First run if (!words) { words = []; - }; + } // If negative, prepend “minus” if (number < 0) { words.push('minus'); number = Math.abs(number); - }; + } if (number < 20) { remainder = 0; @@ -55,7 +55,7 @@ export const wordNumber = (number) => { if (remainder) { word += '-' + lessThanTwenty[remainder]; remainder = 0; - }; + } } else if (number < oneThousand) { remainder = number % oneHundred; word = generateWords(Math.floor(number / oneHundred)) + ' Hundred'; @@ -74,7 +74,7 @@ export const wordNumber = (number) => { } else if (number <= max) { remainder = number % oneQuadrillion; word = generateWords(Math.floor(number / oneQuadrillion)) + ' Quadrillion,'; - }; + } words.push(word);