-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: replace algolia with meilisearch, remove ssr so project can be…
… deployed on firebase again (#372) * feat: add meilisearch indexer script * fix: remove file that was breaking the indexer, fix styling on mobile version of content list * chore: create search input replacement for home page * chore: use domain class * chore: remove algolia and add modal version of the search component * chore: update lock file * fix: handle case where env variables are not set, add key down events * chore: remove sitemap server endpoint and use a package library instead * fix: close search modal on selecting option
- Loading branch information
Showing
176 changed files
with
1,541 additions
and
3,338 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,5 +1,5 @@ | ||
ALGOLIA_SEARCH_API_KEY= | ||
ALGOLIA_WRITE_API_KEY= | ||
ALGOLIA_APPLICATION_ID= | ||
ALGOLIA_INDEX= | ||
MEILISEARCH_SEARCH_API_KEY= | ||
MEILISEARCH_WRITE_API_KEY= | ||
MEILISEARCH_INDEX= | ||
MEILISEARCH_HOST= | ||
ENV=staging | production |
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
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,10 +1,10 @@ | ||
<template> | ||
<div class="pb-[4.5em] space-y-8"> | ||
<div class="pb-[4.5em] space-y-8"> | ||
<h1 class="hero-1 uppercase">Make it happen.</h1> | ||
<p class="hero-2 max-w-5xl text-gray-900"> | ||
Discover why and how to build, run a node, and participate on Archway, the incentivized smart contract platform that rewards dapp | ||
<span class="text-orange">architects.</span> | ||
</p> | ||
<UiAlgoliaAutocompleteSearch class="w-full lg:w-6/12 min-h-" component-id="hero-autocomplete" /> | ||
<UiMeilisearchContentSearchInput class="w-full lg:w-6/12" /> | ||
</div> | ||
</template> |
This file was deleted.
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
This file was deleted.
Oops, something went wrong.
This file was deleted.
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
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 |
---|---|---|
@@ -0,0 +1,89 @@ | ||
<template> | ||
<div class="fixed inset-0 flex items-center justify-center"> | ||
<button | ||
type="button" | ||
@click="openModal" | ||
class="rounded-md bg-black bg-opacity-20 px-4 py-2 text-sm font-medium text-white hover:bg-opacity-30 focus:outline-none focus-visible:ring-2 focus-visible:ring-white focus-visible:ring-opacity-75" | ||
> | ||
Open dialog | ||
</button> | ||
</div> | ||
<TransitionRoot appear :show="isOpen" as="template"> | ||
<Dialog as="div" @close="closeModal" class="relative z-10"> | ||
<TransitionChild | ||
as="template" | ||
enter="duration-300 ease-out" | ||
enter-from="opacity-0" | ||
enter-to="opacity-100" | ||
leave="duration-200 ease-in" | ||
leave-from="opacity-100" | ||
leave-to="opacity-0" | ||
> | ||
<div class="fixed inset-0 bg-black bg-opacity-25" /> | ||
</TransitionChild> | ||
|
||
<div class="fixed inset-0 overflow-y-auto"> | ||
<div | ||
class="flex min-h-full items-center justify-center p-4 text-center" | ||
> | ||
<TransitionChild | ||
as="template" | ||
enter="duration-300 ease-out" | ||
enter-from="opacity-0 scale-95" | ||
enter-to="opacity-100 scale-100" | ||
leave="duration-200 ease-in" | ||
leave-from="opacity-100 scale-100" | ||
leave-to="opacity-0 scale-95" | ||
> | ||
<DialogPanel | ||
class="w-full max-w-md transform overflow-hidden rounded-2xl bg-white p-6 text-left align-middle shadow-xl transition-all" | ||
> | ||
<DialogTitle | ||
as="h3" | ||
class="text-lg font-medium leading-6 text-gray-900" | ||
> | ||
Payment successful | ||
</DialogTitle> | ||
<div class="mt-2"> | ||
<p class="text-sm text-gray-500"> | ||
Your payment has been successfully submitted. We’ve sent you | ||
an email with all of the details of your order. | ||
</p> | ||
</div> | ||
|
||
<div class="mt-4"> | ||
<button | ||
type="button" | ||
class="inline-flex justify-center rounded-md border border-transparent bg-blue-100 px-4 py-2 text-sm font-medium text-blue-900 hover:bg-blue-200 focus:outline-none focus-visible:ring-2 focus-visible:ring-blue-500 focus-visible:ring-offset-2" | ||
@click="closeModal" | ||
> | ||
Got it, thanks! | ||
</button> | ||
</div> | ||
</DialogPanel> | ||
</TransitionChild> | ||
</div> | ||
</div> | ||
</Dialog> | ||
</TransitionRoot> | ||
</template> | ||
|
||
<script setup> | ||
import { ref } from 'vue' | ||
import { | ||
TransitionRoot, | ||
TransitionChild, | ||
Dialog, | ||
DialogPanel, | ||
DialogTitle, | ||
} from '@headlessui/vue' | ||
const isOpen = ref(true) | ||
function closeModal() { | ||
isOpen.value = false | ||
} | ||
function openModal() { | ||
isOpen.value = true | ||
} | ||
</script> |
Oops, something went wrong.