-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: initial quickcode guide for deploying contract using hardhat or…
… foundry (#10) # What 💻 * Adds initial quickstart guide framework * Adds components for organizing content * Adds reusable content in partials # Why ✋ * Includes quickstart for deploying, factories, testing, upgrading, and general paymaster flow * Components are helpful for displaying and organizing content # Evidence 📷 Include screenshots, screen recordings, or `console` output here demonstrating that your changes work as intended <!-- All sections below are optional. You can uncomment any section applicable to your Pull Request. --> <!-- # Notes 📝 * Any notes/thoughts that the reviewers should know prior to reviewing the code? --> --------- Co-authored-by: Sabrina Ferguson <[email protected]>
- Loading branch information
1 parent
ab7b5ab
commit 89e025e
Showing
48 changed files
with
4,020 additions
and
316 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 |
---|---|---|
|
@@ -15,5 +15,6 @@ | |
"MD034": false, | ||
"MD024": false, | ||
"MD022": false, | ||
"MD023": false | ||
"MD023": false, | ||
"MD046": false | ||
} |
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,17 @@ | ||
<template> | ||
<UIcon | ||
name="i-heroicons-check-circle-16-solid" | ||
class="mb-1 ml-2 h-4 w-4 align-middle text-green-600 opacity-85" | ||
/> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
/** | ||
* A super simple component that renders a check icon inline. | ||
* | ||
* ``` | ||
* example usage in markdown: | ||
* :check-icon some text beside the icon | ||
* ``` | ||
*/ | ||
</script> |
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,51 @@ | ||
<template> | ||
<div class="-mt-6 flex w-full flex-col divide-y divide-gray-200 dark:divide-gray-800"> | ||
<HeadlessDisclosure | ||
v-for="(tab, index) in tabs" | ||
:key="index" | ||
v-slot="{ open }" | ||
> | ||
<HeadlessDisclosureButton | ||
class="focus-visible:ring-primary-500 dark:focus-visible:ring-primary-400 inline-flex w-full flex-shrink-0 items-center gap-x-1.5 rounded-none py-6 text-left text-lg font-medium text-gray-500 underline-offset-4 hover:text-gray-700 hover:no-underline focus:outline-none focus-visible:outline-0 focus-visible:ring-2 focus-visible:ring-inset disabled:cursor-not-allowed disabled:opacity-75 dark:text-gray-400 dark:hover:text-gray-200" | ||
> | ||
<UIcon | ||
name="i-heroicons-chevron-down-20-solid" | ||
class="h-5 w-5 flex-shrink-0 transform font-bold transition-transform duration-200" | ||
:class="open ? '' : '-rotate-90'" | ||
/> | ||
<span class="text-gray-900 dark:text-white">{{ tab.label }}</span> | ||
</HeadlessDisclosureButton> | ||
<HeadlessDisclosurePanel class="py-4 pl-6 text-base text-gray-500 dark:text-gray-100"> | ||
<component :is="tab.component" /> | ||
</HeadlessDisclosurePanel> | ||
</HeadlessDisclosure> | ||
</div> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
/** | ||
* An accordion style component that allows | ||
* for multiple panels to be open at once. | ||
* | ||
* Use Panel component to slot in panels. | ||
*/ | ||
import { useSlots, computed } from 'vue'; | ||
const slots = useSlots(); | ||
const tabs = computed(() => { | ||
return ( | ||
slots.default?.().map((slot, index) => { | ||
if (slot.props?.label === undefined) { | ||
throw new Error(`DropPanel: Panel at index ${index} is missing a label prop.`); | ||
} else { | ||
return { | ||
index, | ||
label: slot.props.label, | ||
component: slot, | ||
}; | ||
} | ||
}) || [] | ||
); | ||
}); | ||
</script> |
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,11 @@ | ||
<template> | ||
<ContentSlot :use="$slots.default" /> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
/** | ||
* A panel component that can be slotted into a DropPanel. | ||
* | ||
* Use the `label` prop to set the tab label on the drop panel. | ||
*/ | ||
</script> |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.