From 85422c14402fb16741540389059b268f01e394dd Mon Sep 17 00:00:00 2001 From: Vivek Jain Date: Fri, 17 May 2024 16:56:36 +0530 Subject: [PATCH] lint fix --- src/theme/Root.js | 2 +- src/theme/SearchBar/DropdownContent.js | 1 - src/theme/SearchBar/index.js | 2 +- src/theme/SearchBar/styles.css | 38 +++++------ src/theme/SearchPage/index.js | 1 - src/utils/searchConstant.ts | 94 +++++++++++++------------- 6 files changed, 68 insertions(+), 70 deletions(-) diff --git a/src/theme/Root.js b/src/theme/Root.js index 230c6b4526f..106d136116e 100644 --- a/src/theme/Root.js +++ b/src/theme/Root.js @@ -9,4 +9,4 @@ export default function Root({ children }) {
{children}
); -} \ No newline at end of file +} diff --git a/src/theme/SearchBar/DropdownContent.js b/src/theme/SearchBar/DropdownContent.js index c60e2bca55b..58a719ed41d 100644 --- a/src/theme/SearchBar/DropdownContent.js +++ b/src/theme/SearchBar/DropdownContent.js @@ -1,5 +1,4 @@ /* eslint-disable */ - import React from 'react'; import { facetNamesJson, allFacets } from '../../utils/searchConstant'; import clsx from 'clsx'; diff --git a/src/theme/SearchBar/index.js b/src/theme/SearchBar/index.js index 9e4409cae9a..30058dd0331 100644 --- a/src/theme/SearchBar/index.js +++ b/src/theme/SearchBar/index.js @@ -196,4 +196,4 @@ function DocSearch({ contextualSearch, externalUrlRegex, ...props }) { export default function SearchBar() { const { siteConfig } = useDocusaurusContext(); return ; -} \ No newline at end of file +} diff --git a/src/theme/SearchBar/styles.css b/src/theme/SearchBar/styles.css index 2c2dd2ed735..321e255e35e 100644 --- a/src/theme/SearchBar/styles.css +++ b/src/theme/SearchBar/styles.css @@ -1,21 +1,21 @@ :root { - --docsearch-primary-color: var(--ifm-color-primary); - --docsearch-text-color: var(--ifm-font-color-base); - z-index: 700; - } - - .DocSearch-Button { - margin: 0; - transition: all var(--ifm-transition-fast) - var(--ifm-transition-timing-default); - } - - .DocSearch-Container { - z-index: 200; - } - .DocSearch-Modal { - top: 61px; - } -.filterButton{ + --docsearch-primary-color: var(--ifm-color-primary); + --docsearch-text-color: var(--ifm-font-color-base); + z-index: 700; +} + +.DocSearch-Button { + margin: 0; + transition: all var(--ifm-transition-fast) + var(--ifm-transition-timing-default); +} + +.DocSearch-Container { + z-index: 200; +} +.DocSearch-Modal { + top: 61px; +} +.filterButton { width: 100px; -} \ No newline at end of file +} diff --git a/src/theme/SearchPage/index.js b/src/theme/SearchPage/index.js index 15d0fe4325b..0194ddc7c80 100644 --- a/src/theme/SearchPage/index.js +++ b/src/theme/SearchPage/index.js @@ -1,4 +1,3 @@ - /* eslint-disable */ /* eslint-disable jsx-a11y/no-autofocus */ import React, { diff --git a/src/utils/searchConstant.ts b/src/utils/searchConstant.ts index 28a1b9e7abf..eeef5eef108 100644 --- a/src/utils/searchConstant.ts +++ b/src/utils/searchConstant.ts @@ -1,49 +1,49 @@ export const allFacets = [ - "language:en", - [ - "docusaurus_tag:default", - "docusaurus_tag:docs-apis-current", - "docusaurus_tag:docs-cli-wallet-1-0-current", - "docusaurus_tag:docs-maintain-current", - "docusaurus_tag:docs-iota-tips-current", - "docusaurus_tag:docs-community-current", - "docusaurus_tag:docs-get-started-current", - "docusaurus_tag:docs-learn-current", - "docusaurus_tag:docs-iota-sdk-1-0-current", - "docusaurus_tag:docs-build-current", - "docusaurus_tag:docs-identity-rs-1-0-current", - "docusaurus_tag:docs-identity-rs-1-1-current", - "docusaurus_tag:docs-identity-rs-1-2-current", - "docusaurus_tag:docs-isc-v1-0-0-rc-6-current", - "docusaurus_tag:docs-iota-sandbox-current", - "docusaurus_tag:docs-stronghold-rs-1-1-current", - "docusaurus_tag:docs-wasp-v1-0-0-rc-6-current", - "docusaurus_tag:docs-introduction-docs-stardust-current", - "docusaurus_tag:docs-chronicle-1-0-rc-2-current", - "docusaurus_tag:docs-hornet-2-0-current", - ], - ] + 'language:en', + [ + 'docusaurus_tag:default', + 'docusaurus_tag:docs-apis-current', + 'docusaurus_tag:docs-cli-wallet-1-0-current', + 'docusaurus_tag:docs-maintain-current', + 'docusaurus_tag:docs-iota-tips-current', + 'docusaurus_tag:docs-community-current', + 'docusaurus_tag:docs-get-started-current', + 'docusaurus_tag:docs-learn-current', + 'docusaurus_tag:docs-iota-sdk-1-0-current', + 'docusaurus_tag:docs-build-current', + 'docusaurus_tag:docs-identity-rs-1-0-current', + 'docusaurus_tag:docs-identity-rs-1-1-current', + 'docusaurus_tag:docs-identity-rs-1-2-current', + 'docusaurus_tag:docs-isc-v1-0-0-rc-6-current', + 'docusaurus_tag:docs-iota-sandbox-current', + 'docusaurus_tag:docs-stronghold-rs-1-1-current', + 'docusaurus_tag:docs-wasp-v1-0-0-rc-6-current', + 'docusaurus_tag:docs-introduction-docs-stardust-current', + 'docusaurus_tag:docs-chronicle-1-0-rc-2-current', + 'docusaurus_tag:docs-hornet-2-0-current', + ], +]; - export const facetNamesJson = { - "docusaurus_tag:default": "Tutorial", - "docusaurus_tag:docs-apis-current": "Apis", - "docusaurus_tag:docs-cli-wallet-1-0-current": "Cli Wallet", - "docusaurus_tag:docs-maintain-current": "Maintain", - "docusaurus_tag:docs-iota-tips-current": "Tips", - "docusaurus_tag:docs-get-started-current": "Get Started", - "docusaurus_tag:docs-learn-current": "Learn", - "docusaurus_tag:docs-identity-rs-1-2-current": "Identity.rs 1.2", - "docusaurus_tag:docs-identity-rs-1-1-current": "Identity.rs 1.1", - "docusaurus_tag:docs-identity-rs-1-0-current": "Identity.rs", - "docusaurus_tag:docs-iota-sandbox-current": "Iota", - "docusaurus_tag:docs-build-current": "Sandbox", - "docusaurus_tag:docs-isc-v1-0-0-rc-6-current": "ISC", - "docusaurus_tag:docs-stronghold-rs-1-1-current": "Stronghold", - "docusaurus_tag:docs-iota-core-1-0-current": "Iota Core", - "docusaurus_tag:docs-wasp-v1-0-0-rc-6-current": "Wasp", - "docusaurus_tag:docs-iota-sdk-1-0-current": "Iota sdk", - "docusaurus_tag:docs-hornet-2-0-current": "Hornet", - "docusaurus_tag:docs-introduction-docs-stardust-current": "Stardust", - "docusaurus_tag:docs-chronicle-1-0-rc-2-current": "Chronicle", - "docusaurus_tag:docs-community-current": "Community", - }; \ No newline at end of file +export const facetNamesJson = { + 'docusaurus_tag:default': 'Tutorial', + 'docusaurus_tag:docs-apis-current': 'Apis', + 'docusaurus_tag:docs-cli-wallet-1-0-current': 'Cli Wallet', + 'docusaurus_tag:docs-maintain-current': 'Maintain', + 'docusaurus_tag:docs-iota-tips-current': 'Tips', + 'docusaurus_tag:docs-get-started-current': 'Get Started', + 'docusaurus_tag:docs-learn-current': 'Learn', + 'docusaurus_tag:docs-identity-rs-1-2-current': 'Identity.rs 1.2', + 'docusaurus_tag:docs-identity-rs-1-1-current': 'Identity.rs 1.1', + 'docusaurus_tag:docs-identity-rs-1-0-current': 'Identity.rs', + 'docusaurus_tag:docs-iota-sandbox-current': 'Iota', + 'docusaurus_tag:docs-build-current': 'Sandbox', + 'docusaurus_tag:docs-isc-v1-0-0-rc-6-current': 'ISC', + 'docusaurus_tag:docs-stronghold-rs-1-1-current': 'Stronghold', + 'docusaurus_tag:docs-iota-core-1-0-current': 'Iota Core', + 'docusaurus_tag:docs-wasp-v1-0-0-rc-6-current': 'Wasp', + 'docusaurus_tag:docs-iota-sdk-1-0-current': 'Iota sdk', + 'docusaurus_tag:docs-hornet-2-0-current': 'Hornet', + 'docusaurus_tag:docs-introduction-docs-stardust-current': 'Stardust', + 'docusaurus_tag:docs-chronicle-1-0-rc-2-current': 'Chronicle', + 'docusaurus_tag:docs-community-current': 'Community', +};