diff --git a/.gitignore b/.gitignore index 06631c8..9989217 100644 --- a/.gitignore +++ b/.gitignore @@ -7,3 +7,4 @@ node_modules *.log *.sql webpack-assets.json +.yarn \ No newline at end of file diff --git a/algolia-search/.env b/algolia-search/.env new file mode 100644 index 0000000..62e6ac2 --- /dev/null +++ b/algolia-search/.env @@ -0,0 +1,3 @@ +ALGOLIA_APP_ID=ALGOLIA_APP_ID +ALGOLIA_KEY=ALGOLIA_KEY +ALGOLIA_INDEX=ALGOLIA_INDEX diff --git a/algolia-search/.gitignore b/algolia-search/.gitignore new file mode 100644 index 0000000..081883d --- /dev/null +++ b/algolia-search/.gitignore @@ -0,0 +1,2 @@ +.env.local +.yarn diff --git a/algolia-search/.nvmrc b/algolia-search/.nvmrc new file mode 100644 index 0000000..209e3ef --- /dev/null +++ b/algolia-search/.nvmrc @@ -0,0 +1 @@ +20 diff --git a/algolia-search/.yarnrc.yml b/algolia-search/.yarnrc.yml new file mode 100644 index 0000000..3186f3f --- /dev/null +++ b/algolia-search/.yarnrc.yml @@ -0,0 +1 @@ +nodeLinker: node-modules diff --git a/algolia-search/algolia_search.info.yml b/algolia-search/algolia_search.info.yml new file mode 100644 index 0000000..fadf217 --- /dev/null +++ b/algolia-search/algolia_search.info.yml @@ -0,0 +1,11 @@ +name: Resources Directory Algolia filter +machine_name: resources-directory-filter +type: pdb +description: 'Algolia filter for Resources Directory' +package: React +core_version_requirement: ^9 || ^10 +module_status: active +presentation: react +add_js: + footer: + 'dist/islands/algolia-search.island.js': { } \ No newline at end of file diff --git a/algolia-search/dist/index.html b/algolia-search/dist/index.html new file mode 100644 index 0000000..46b9892 --- /dev/null +++ b/algolia-search/dist/index.html @@ -0,0 +1,24 @@ +
No results for your search. Please try another search.
; + } + + return ( +