-
Notifications
You must be signed in to change notification settings - Fork 417
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[DO NOT MERGE] Test algolia search (#2248)
* use algolia search package * fix env var name in .env.example * fix env var typescript * remove unused old search components * search button should always show now on mobile and desktop * Update Algolia search package * Update package to 0.3 * Update Package.lock * Update algolia search to version 0.4.2 * Update Search Preview * Update fallback image * Update Search package to 0.6.3 * Update to algolia 0.7 * Add Specific links and upgrade to V 0.8 * Version 0.8.3 * Version 0.8.4 * revert change on icon --------- Co-authored-by: Simone Cuomo <simone@thisdot.co>
- Loading branch information
Showing
13 changed files
with
227 additions
and
218 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
ALGOLIA_APP_ID=I9A62UQS9Z | ||
ALGOLIA_WRITE_API_KEY= | ||
ALGOLIA_INDEX_NAME=docs-test | ||
ALGOLIA_INDEX_NAME=docs-test | ||
PUBLIC_ALGOLIA_SEARCH_APP_ID= | ||
PUBLIC_ALGOLIA_SEARCH_PUBLIC_API_KEY= |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,23 @@ | ||
import { SearchButton } from "./SearchButton" | ||
import { SearchModal } from "./SearchModal" | ||
import { SearchButton } from "chainlink-algolia-search" | ||
import "chainlink-algolia-search/dist/index.css" | ||
|
||
export const Search = () => { | ||
export const Search = ({ | ||
algoliaVars: { algoliaAppId, algoliaPublicApiKey }, | ||
}: { | ||
algoliaVars: { algoliaAppId: string; algoliaPublicApiKey: string } | ||
}) => { | ||
return ( | ||
<> | ||
<SearchButton /> | ||
<SearchModal /> | ||
</> | ||
<SearchButton | ||
algoliaAppId={algoliaAppId} | ||
algoliaPublicApiKey={algoliaPublicApiKey} | ||
popularCards={[ | ||
{ | ||
url: "https://dev.chain.link/resources/quickstarts", | ||
imgSrc: "/images/algolia/quick-start.png", | ||
label: "Quickstarts", | ||
}, | ||
{ url: "https://dev.chain.link/tools", imgSrc: "/images/algolia/tools.png", label: "Tools" }, | ||
]} | ||
/> | ||
) | ||
} |
Oops, something went wrong.