Skip to content

Commit

Permalink
lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
vivekjain23 committed May 17, 2024
1 parent 4f2aa50 commit 85422c1
Show file tree
Hide file tree
Showing 6 changed files with 68 additions and 70 deletions.
2 changes: 1 addition & 1 deletion src/theme/Root.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ export default function Root({ children }) {
<div>{children}</div>
</SearchProvider>
);
}
}
1 change: 0 additions & 1 deletion src/theme/SearchBar/DropdownContent.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/* eslint-disable */

import React from 'react';
import { facetNamesJson, allFacets } from '../../utils/searchConstant';
import clsx from 'clsx';
Expand Down
2 changes: 1 addition & 1 deletion src/theme/SearchBar/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -196,4 +196,4 @@ function DocSearch({ contextualSearch, externalUrlRegex, ...props }) {
export default function SearchBar() {
const { siteConfig } = useDocusaurusContext();
return <DocSearch {...siteConfig.themeConfig.algolia} />;
}
}
38 changes: 19 additions & 19 deletions src/theme/SearchBar/styles.css
Original file line number Diff line number Diff line change
@@ -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;
}
}
1 change: 0 additions & 1 deletion src/theme/SearchPage/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

/* eslint-disable */
/* eslint-disable jsx-a11y/no-autofocus */
import React, {
Expand Down
94 changes: 47 additions & 47 deletions src/utils/searchConstant.ts
Original file line number Diff line number Diff line change
@@ -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",
};
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',
};

0 comments on commit 85422c1

Please sign in to comment.