-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
36 changed files
with
17,392 additions
and
29,841 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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# Create one with no scope selected on https://github.com/settings/tokens/new | ||
# This token is used for fetching the repository releases. | ||
GITHUB_TOKEN= |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<script setup> | ||
defineProps({ | ||
to: { | ||
type: String, | ||
default: '' | ||
}, | ||
icon: { | ||
type: String, | ||
default: '' | ||
}, | ||
label: { | ||
type: String, | ||
default: '' | ||
} | ||
}) | ||
</script> | ||
|
||
<template> | ||
<NuxtLink :to="to" class="hover:bg-primary-200 text-primary-900 bg-primary-100 transition dark:bg-transparent hover:dark:bg-primary-900 dark:border-primary-700 dark:text-primary-100 border border-primary-400 mb-8 px-4 py-2 rounded-md flex gap-x-1 inline-flex items-center justify-center"> | ||
<Icon :name="icon" class="h-4 w-4" /> | ||
<span class="font-medium text-sm">{{ label }}</span> | ||
</NuxtLink> | ||
</template> |
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,58 @@ | ||
<template> | ||
<svg | ||
width="512" | ||
height="512" | ||
viewBox="0 0 512 512" | ||
fill="none" | ||
xmlns="http://www.w3.org/2000/svg" | ||
> | ||
<path | ||
fill-rule="evenodd" | ||
clip-rule="evenodd" | ||
d="M506.537 266.537L468.686 228.686C465.686 225.686 464 221.616 464 217.373V171.066C464 128.274 459.544 112.756 451.177 97.1114C442.811 81.467 430.533 69.1891 414.888 60.8224C399.244 52.4556 383.726 48 340.933 48H279.725C277.958 48 276.525 46.5673 276.525 44.8C276.525 43.9513 276.863 43.1374 277.463 42.5373L315.314 4.68629C318.314 1.68571 322.384 0 326.627 0L347.911 0C404.968 0 425.659 5.94084 446.518 17.0965C467.377 28.2521 483.748 44.6226 494.903 65.4819C506.059 86.3411 512 107.031 512 164.089V264.275C512 266.042 510.567 267.475 508.8 267.475C507.951 267.475 507.137 267.137 506.537 266.537Z" | ||
fill="currentColor" | ||
/> | ||
<path | ||
fill-rule="evenodd" | ||
clip-rule="evenodd" | ||
d="M245.463 506.537L283.314 468.686C286.314 465.686 290.384 464 294.627 464H340.933C383.726 464 399.244 459.544 414.888 451.178C430.533 442.811 442.811 430.533 451.177 414.889C459.544 399.244 464 383.726 464 340.934V279.726C464 277.958 465.432 276.526 467.2 276.526C468.049 276.526 468.862 276.863 469.463 277.463L507.314 315.314C510.314 318.314 512 322.384 512 326.627V347.911C512 404.969 506.059 425.659 494.903 446.518C483.748 467.377 467.377 483.748 446.518 494.904C425.659 506.059 404.968 512 347.911 512H247.725C245.958 512 244.525 510.567 244.525 508.8C244.525 507.951 244.863 507.137 245.463 506.537Z" | ||
fill="currentColor" | ||
/> | ||
<path | ||
fill-rule="evenodd" | ||
clip-rule="evenodd" | ||
d="M5.46274 245.463L43.3137 283.314C46.3143 286.314 48 290.384 48 294.627V340.934C48 383.726 52.4556 399.244 60.8224 414.889C69.1891 430.533 81.467 442.811 97.1114 451.178C112.756 459.544 128.274 464 171.066 464H232.275C234.042 464 235.475 465.433 235.475 467.2C235.475 468.049 235.137 468.863 234.537 469.463L196.686 507.314C193.686 510.314 189.616 512 185.373 512H164.089C107.031 512 86.3411 506.059 65.4819 494.904C44.6226 483.748 28.2521 467.377 17.0965 446.518C5.94084 425.659 0 404.969 0 347.911V247.726C0 245.958 1.43269 244.526 3.2 244.526C4.04869 244.526 4.86263 244.863 5.46274 245.463Z" | ||
fill="currentColor" | ||
/> | ||
<path | ||
fill-rule="evenodd" | ||
clip-rule="evenodd" | ||
d="M266.537 5.46274L228.686 43.3137C225.686 46.3143 221.616 48 217.373 48H171.066C128.274 48 112.756 52.4556 97.1114 60.8224C81.467 69.1891 69.1891 81.467 60.8224 97.1114C52.4556 112.756 48 128.274 48 171.066V232.275C48 234.042 46.5673 235.475 44.8 235.475C43.9513 235.475 43.1374 235.137 42.5373 234.537L4.68629 196.686C1.68571 193.686 0 189.616 0 185.373L0 164.089C0 107.031 5.94084 86.3411 17.0965 65.4819C28.2521 44.6226 44.6226 28.2521 65.4819 17.0965C86.3411 5.94084 107.031 0 164.089 0L264.275 0C266.042 0 267.475 1.43269 267.475 3.2C267.475 4.04869 267.137 4.86263 266.537 5.46274Z" | ||
fill="currentColor" | ||
/> | ||
<path | ||
fill-rule="evenodd" | ||
clip-rule="evenodd" | ||
d="M426.589 186.829L374.976 137.501C371.563 134.088 367.571 131.607 363.316 130.058C359.798 128.728 355.984 128 352 128H199.69C197.922 128 196.49 126.567 196.49 124.8C196.49 123.951 196.827 123.137 197.428 122.536L235.315 84.6815C238.315 81.6839 242.382 80 246.624 80H368C403.346 80 432 108.654 432 144V184.515C432 186.283 430.567 187.715 428.8 187.715C427.976 187.715 427.185 187.398 426.589 186.829Z" | ||
fill="currentColor" | ||
/> | ||
<path | ||
fill-rule="evenodd" | ||
clip-rule="evenodd" | ||
d="M325.171 426.629L374.499 375.016C377.912 371.603 380.393 367.611 381.941 363.356C383.272 359.838 384 356.024 384 352.04V199.73C384 197.963 385.433 196.53 387.2 196.53C388.049 196.53 388.863 196.868 389.464 197.468L427.318 235.355C430.316 238.355 432 242.423 432 246.664V368.04C432 403.387 403.346 432.04 368 432.04H327.485C325.717 432.04 324.285 430.608 324.285 428.84C324.285 428.017 324.602 427.225 325.171 426.629Z" | ||
fill="currentColor" | ||
/> | ||
<path | ||
fill-rule="evenodd" | ||
clip-rule="evenodd" | ||
d="M85.4109 325.171L137.024 374.499C140.437 377.912 144.429 380.393 148.684 381.942C152.202 383.272 156.016 384 160 384H312.31C314.078 384 315.51 385.433 315.51 387.2C315.51 388.049 315.173 388.864 314.572 389.464L276.685 427.318C273.685 430.316 269.618 432 265.377 432H144C108.654 432 80 403.346 80 368V327.485C80 325.717 81.4327 324.285 83.2 324.285C84.0236 324.285 84.8155 324.602 85.4109 325.171Z" | ||
fill="currentColor" | ||
/> | ||
<path | ||
fill-rule="evenodd" | ||
clip-rule="evenodd" | ||
d="M186.829 85.4109L137.501 137.024C134.088 140.437 131.607 144.429 130.058 148.684C128.728 152.202 128 156.016 128 160V312.31C128 314.078 126.567 315.51 124.8 315.51C123.951 315.51 123.137 315.173 122.536 314.572L84.6815 276.685C81.6839 273.685 80 269.618 80 265.377V144C80 108.654 108.654 80 144 80H184.515C186.283 80 187.715 81.4327 187.715 83.2C187.715 84.0236 187.398 84.8155 186.829 85.4109Z" | ||
fill="currentColor" | ||
/> | ||
</svg> | ||
</template> |
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,69 @@ | ||
<template> | ||
<figure class="inline-flex items-center space-x-2"> | ||
<svg | ||
width="208" | ||
height="36" | ||
viewBox="0 0 208 36" | ||
fill="none" | ||
xmlns="http://www.w3.org/2000/svg" | ||
> | ||
<path | ||
d="M43.904 28V8.4H47.488L56.7 22.204V8.4H60.284V28H56.7L47.488 14.224V28H43.904ZM69.2077 28.336C67.4717 28.336 66.1277 27.7947 65.1757 26.712C64.2424 25.6293 63.7757 24.0427 63.7757 21.952V14.112H67.3317V21.616C67.3317 22.8107 67.5744 23.7253 68.0597 24.36C68.545 24.9947 69.3104 25.312 70.3557 25.312C71.345 25.312 72.157 24.9573 72.7917 24.248C73.445 23.5387 73.7717 22.5493 73.7717 21.28V14.112H77.3557V28H74.1917L73.9117 25.648C73.4824 26.4693 72.857 27.1227 72.0357 27.608C71.233 28.0933 70.2904 28.336 69.2077 28.336ZM79.7188 28L84.7588 21.056L79.7188 14.112H83.5548L87.0828 19.04L90.5828 14.112H94.4468L89.3788 21.056L94.4468 28H90.5828L87.0828 23.072L83.5548 28H79.7188ZM102.918 28C101.462 28 100.295 27.6453 99.4182 26.936C98.5408 26.2267 98.1022 24.9667 98.1022 23.156V17.108H95.7222V14.112H98.1022L98.5222 10.388H101.686V14.112H105.438V17.108H101.686V23.184C101.686 23.856 101.826 24.3227 102.106 24.584C102.405 24.8267 102.909 24.948 103.618 24.948H105.354V28H102.918Z" | ||
fill="currentColor" | ||
/> | ||
<path | ||
d="M108.599 28V8.4H115.851C117.419 8.4 118.717 8.66133 119.743 9.184C120.77 9.70667 121.535 10.4253 122.039 11.34C122.543 12.2547 122.795 13.2813 122.795 14.42C122.795 15.5027 122.553 16.5013 122.067 17.416C121.582 18.312 120.826 19.04 119.799 19.6C118.773 20.1413 117.457 20.412 115.851 20.412H112.183V28H108.599ZM112.183 17.5H115.627C116.878 17.5 117.774 17.2293 118.315 16.688C118.875 16.128 119.155 15.372 119.155 14.42C119.155 13.4493 118.875 12.6933 118.315 12.152C117.774 11.592 116.878 11.312 115.627 11.312H112.183V17.5ZM125.523 28V14.112H128.715L129.051 16.716C129.555 15.82 130.236 15.1107 131.095 14.588C131.972 14.0467 132.999 13.776 134.175 13.776V17.556H133.167C132.383 17.556 131.683 17.6773 131.067 17.92C130.451 18.1627 129.966 18.5827 129.611 19.18C129.275 19.7773 129.107 20.608 129.107 21.672V28H125.523ZM138.557 11.956C137.903 11.956 137.362 11.76 136.933 11.368C136.522 10.976 136.317 10.4813 136.317 9.884C136.317 9.28667 136.522 8.80133 136.933 8.428C137.362 8.036 137.903 7.84 138.557 7.84C139.21 7.84 139.742 8.036 140.153 8.428C140.582 8.80133 140.797 9.28667 140.797 9.884C140.797 10.4813 140.582 10.976 140.153 11.368C139.742 11.76 139.21 11.956 138.557 11.956ZM136.765 28V14.112H140.349V28H136.765ZM149.83 28.336C148.598 28.336 147.515 28.14 146.582 27.748C145.648 27.3373 144.902 26.7773 144.342 26.068C143.782 25.3587 143.446 24.5373 143.334 23.604H146.946C147.058 24.1453 147.356 24.612 147.842 25.004C148.346 25.3773 148.99 25.564 149.774 25.564C150.558 25.564 151.127 25.4053 151.482 25.088C151.855 24.7707 152.042 24.4067 152.042 23.996C152.042 23.3987 151.78 22.9973 151.258 22.792C150.735 22.568 150.007 22.3533 149.074 22.148C148.476 22.0173 147.87 21.8587 147.254 21.672C146.638 21.4853 146.068 21.252 145.546 20.972C145.042 20.6733 144.631 20.3 144.314 19.852C143.996 19.3853 143.838 18.816 143.838 18.144C143.838 16.912 144.323 15.876 145.294 15.036C146.283 14.196 147.664 13.776 149.438 13.776C151.08 13.776 152.387 14.1587 153.358 14.924C154.347 15.6893 154.935 16.744 155.122 18.088H151.734C151.528 17.0613 150.754 16.548 149.41 16.548C148.738 16.548 148.215 16.6787 147.842 16.94C147.487 17.2013 147.31 17.528 147.31 17.92C147.31 18.3307 147.58 18.6573 148.122 18.9C148.663 19.1427 149.382 19.3667 150.278 19.572C151.248 19.796 152.135 20.048 152.938 20.328C153.759 20.5893 154.412 20.9907 154.898 21.532C155.383 22.0547 155.626 22.8107 155.626 23.8C155.644 24.6587 155.42 25.4333 154.954 26.124C154.487 26.8147 153.815 27.356 152.938 27.748C152.06 28.14 151.024 28.336 149.83 28.336ZM158.8 28V14.112H161.964L162.272 15.988C162.72 15.316 163.308 14.784 164.036 14.392C164.783 13.9813 165.642 13.776 166.612 13.776C168.759 13.776 170.28 14.6067 171.176 16.268C171.68 15.5027 172.352 14.896 173.192 14.448C174.051 14 174.984 13.776 175.992 13.776C177.803 13.776 179.194 14.3173 180.164 15.4C181.135 16.4827 181.62 18.0693 181.62 20.16V28H178.036V20.496C178.036 19.3013 177.803 18.3867 177.336 17.752C176.888 17.1173 176.188 16.8 175.236 16.8C174.266 16.8 173.482 17.1547 172.884 17.864C172.306 18.5733 172.016 19.5627 172.016 20.832V28H168.432V20.496C168.432 19.3013 168.199 18.3867 167.732 17.752C167.266 17.1173 166.547 16.8 165.576 16.8C164.624 16.8 163.85 17.1547 163.252 17.864C162.674 18.5733 162.384 19.5627 162.384 20.832V28H158.8ZM186.955 11.956C186.302 11.956 185.76 11.76 185.331 11.368C184.92 10.976 184.715 10.4813 184.715 9.884C184.715 9.28667 184.92 8.80133 185.331 8.428C185.76 8.036 186.302 7.84 186.955 7.84C187.608 7.84 188.14 8.036 188.551 8.428C188.98 8.80133 189.195 9.28667 189.195 9.884C189.195 10.4813 188.98 10.976 188.551 11.368C188.14 11.76 187.608 11.956 186.955 11.956ZM185.163 28V14.112H188.747V28H185.163ZM199.292 28.336C197.873 28.336 196.623 28.028 195.54 27.412C194.457 26.796 193.599 25.9373 192.964 24.836C192.348 23.7347 192.04 22.4747 192.04 21.056C192.04 19.6373 192.348 18.3773 192.964 17.276C193.599 16.1747 194.457 15.316 195.54 14.7C196.623 14.084 197.873 13.776 199.292 13.776C201.065 13.776 202.559 14.2427 203.772 15.176C204.985 16.0907 205.76 17.36 206.096 18.984H202.316C202.129 18.312 201.756 17.7893 201.196 17.416C200.655 17.024 200.011 16.828 199.264 16.828C198.275 16.828 197.435 17.2013 196.744 17.948C196.053 18.6947 195.708 19.7307 195.708 21.056C195.708 22.3813 196.053 23.4173 196.744 24.164C197.435 24.9107 198.275 25.284 199.264 25.284C200.011 25.284 200.655 25.0973 201.196 24.724C201.756 24.3507 202.129 23.8187 202.316 23.128H206.096C205.76 24.696 204.985 25.956 203.772 26.908C202.559 27.86 201.065 28.336 199.292 28.336Z" | ||
fill="#5163ba" | ||
/> | ||
<path | ||
fill-rule="evenodd" | ||
clip-rule="evenodd" | ||
d="M33.6376 18.6997L31.124 16.1862C30.9248 15.9869 30.8128 15.7167 30.8128 15.4349V12.3599C30.8128 9.5182 30.5169 8.4877 29.9613 7.4488C29.4057 6.40992 28.5904 5.59459 27.5515 5.03899C26.5126 4.48338 25.4821 4.1875 22.6404 4.1875H18.5758C18.4585 4.1875 18.3633 4.09236 18.3633 3.975C18.3633 3.91864 18.3857 3.86459 18.4256 3.82474L20.9391 1.3112C21.1384 1.11194 21.4086 1 21.6904 1H23.1038C26.8928 1 28.2667 1.39451 29.6519 2.13531C31.0371 2.87612 32.1242 3.96322 32.865 5.34841C33.6058 6.73359 34.0003 8.1076 34.0003 11.8965V18.5495C34.0003 18.6668 33.9052 18.762 33.7878 18.762C33.7315 18.762 33.6774 18.7396 33.6376 18.6997Z" | ||
fill="#E55737" | ||
/> | ||
<path | ||
fill-rule="evenodd" | ||
clip-rule="evenodd" | ||
d="M16.3006 34.6372L18.8141 32.1237C19.0134 31.9244 19.2836 31.8125 19.5654 31.8125H22.6404C25.4821 31.8125 26.5126 31.5166 27.5515 30.961C28.5904 30.4054 29.4057 29.5901 29.9613 28.5512C30.5169 27.5123 30.8128 26.4818 30.8128 23.6401V19.5755C30.8128 19.4582 30.9079 19.363 31.0253 19.363C31.0817 19.363 31.1357 19.3854 31.1756 19.4253L33.6891 21.9388C33.8884 22.1381 34.0003 22.4083 34.0003 22.6901V24.1035C34.0003 27.8924 33.6058 29.2664 32.865 30.6516C32.1242 32.0368 31.0371 33.1239 29.6519 33.8647C28.2667 34.6055 26.8928 35 23.1038 35H16.4508C16.3335 35 16.2383 34.9049 16.2383 34.7875C16.2383 34.7311 16.2607 34.6771 16.3006 34.6372Z" | ||
fill="#F6C943" | ||
/> | ||
<path | ||
fill-rule="evenodd" | ||
clip-rule="evenodd" | ||
d="M0.36276 17.3003L2.8763 19.8138C3.07556 20.0131 3.1875 20.2833 3.1875 20.5651V23.6401C3.1875 26.4818 3.48338 27.5123 4.03899 28.5512C4.59459 29.5901 5.40992 30.4054 6.4488 30.961C7.48769 31.5166 8.51817 31.8125 11.3599 31.8125H15.4245C15.5418 31.8125 15.637 31.9076 15.637 32.025C15.637 32.0814 15.6146 32.1354 15.5747 32.1753L13.0612 34.6888C12.8619 34.8881 12.5917 35 12.3099 35H10.8965C7.10756 35 5.73359 34.6055 4.34841 33.8647C2.96322 33.1239 1.87612 32.0368 1.13531 30.6516C0.394509 29.2664 0 27.8924 0 24.1035V17.4505C0 17.3332 0.0951395 17.238 0.2125 17.238C0.268859 17.238 0.322909 17.2604 0.36276 17.3003Z" | ||
fill="#7B8FEC" | ||
/> | ||
<path | ||
fill-rule="evenodd" | ||
clip-rule="evenodd" | ||
d="M17.6997 1.36276L15.1862 3.8763C14.9869 4.07556 14.7167 4.1875 14.4349 4.1875H11.3599C8.51817 4.1875 7.48769 4.48338 6.4488 5.03899C5.40992 5.59459 4.59459 6.40992 4.03899 7.4488C3.48338 8.4877 3.1875 9.5182 3.1875 12.3599V16.4245C3.1875 16.5418 3.09236 16.637 2.975 16.637C2.91864 16.637 2.86459 16.6146 2.82474 16.5747L0.311199 14.0612C0.111942 13.8619 0 13.5917 0 13.3099V11.8965C0 8.1076 0.394509 6.73359 1.13531 5.34841C1.87612 3.96322 2.96322 2.87612 4.34841 2.13531C5.73359 1.39451 7.10756 1 10.8965 1H17.5495C17.6668 1 17.762 1.09514 17.762 1.2125C17.762 1.26886 17.7396 1.32291 17.6997 1.36276Z" | ||
fill="#D77EE9" | ||
/> | ||
<path | ||
fill-rule="evenodd" | ||
clip-rule="evenodd" | ||
d="M28.3288 13.4066L24.9014 10.1309C24.6747 9.9043 24.4096 9.7395 24.1271 9.6367C23.8934 9.5483 23.6402 9.5 23.3756 9.5H13.2613C13.1439 9.5 13.0488 9.4049 13.0488 9.2875C13.0488 9.2311 13.0712 9.177 13.1111 9.1372L15.627 6.62338C15.8262 6.42432 16.0963 6.3125 16.378 6.3125H24.4381C26.7853 6.3125 28.6881 8.2153 28.6881 10.5625V13.253C28.6881 13.3703 28.593 13.4655 28.4756 13.4655C28.4209 13.4655 28.3683 13.4444 28.3288 13.4066Z" | ||
fill="#E55737" | ||
/> | ||
<path | ||
fill-rule="evenodd" | ||
clip-rule="evenodd" | ||
d="M21.5941 29.3309L24.8698 25.9034C25.0964 25.6768 25.2612 25.4117 25.364 25.1291C25.4524 24.8955 25.5007 24.6422 25.5007 24.3777V14.2633C25.5007 14.146 25.5959 14.0508 25.7132 14.0508C25.7696 14.0508 25.8237 14.0732 25.8635 14.1131L28.3773 16.629C28.5764 16.8283 28.6882 17.0984 28.6882 17.38V25.4402C28.6882 27.7874 26.7854 29.6902 24.4382 29.6902H21.7477C21.6304 29.6902 21.5352 29.595 21.5352 29.4777C21.5352 29.423 21.5563 29.3704 21.5941 29.3309Z" | ||
fill="#F6C943" | ||
/> | ||
<path | ||
fill-rule="evenodd" | ||
clip-rule="evenodd" | ||
d="M5.67182 22.5934L9.09925 25.8691C9.32589 26.0957 9.59099 26.2605 9.87355 26.3633C10.1072 26.4517 10.3604 26.5 10.625 26.5H20.7394C20.8567 26.5 20.9519 26.5951 20.9519 26.7125C20.9519 26.7689 20.9294 26.823 20.8896 26.8628L18.3736 29.3766C18.1744 29.5757 17.9043 29.6875 17.6227 29.6875H9.5625C7.21529 29.6875 5.3125 27.7847 5.3125 25.4375V22.747C5.3125 22.6297 5.40764 22.5345 5.525 22.5345C5.57969 22.5345 5.63228 22.5556 5.67182 22.5934Z" | ||
fill="#7B8FEC" | ||
/> | ||
<path | ||
fill-rule="evenodd" | ||
clip-rule="evenodd" | ||
d="M12.4066 6.67182L9.13092 10.0992C8.90428 10.3259 8.73953 10.591 8.63669 10.8735C8.54835 11.1072 8.5 11.3604 8.5 11.625V21.7394C8.5 21.8567 8.40486 21.9519 8.2875 21.9519C8.23111 21.9519 8.17703 21.9294 8.13718 21.8896L5.62338 19.3736C5.42432 19.1744 5.3125 18.9043 5.3125 18.6227V10.5625C5.3125 8.2153 7.21529 6.3125 9.5625 6.3125H12.253C12.3703 6.3125 12.4655 6.40764 12.4655 6.525C12.4655 6.57969 12.4444 6.63228 12.4066 6.67182Z" | ||
fill="#D77EE9" | ||
/> | ||
</svg> | ||
<span class="inline-flex items-center mt-1.2 px-2 py-0.5 rounded text-xs font-bold font-mono bg-primary-100 dark:bg-primary-800 dark:text-white">RC</span> | ||
</figure> | ||
</template> |
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,41 @@ | ||
<script setup lang="ts"> | ||
import { computed, useDocus, useContentHelpers, useRoute } from '#imports' | ||
const route = useRoute() | ||
const { navBottomLink } = useContentHelpers() | ||
const { navigation, theme } = useDocus() | ||
const hasNavigation = computed(() => !!theme.value.aside?.level) | ||
const filtered = computed(() => theme.value?.aside?.filter || []) | ||
const tree = computed(() => { | ||
return (navigation.value || []).filter((item) => { | ||
if (filtered.value.includes(item._path)) { return false } | ||
return true | ||
}) | ||
}) | ||
const isActive = (link: any) => (link.exact ? route.fullPath === link._path : route.fullPath.startsWith(link._path)) | ||
</script> | ||
|
||
<template> | ||
<nav v-if="hasNavigation" class="flex max-w-full flex-1 items-center justify-center gap-8 overflow-hidden truncate py-1 font-medium"> | ||
<NuxtLink | ||
v-for="link in tree" | ||
:key="link._path" | ||
:to="navBottomLink(link)" | ||
class="text-sm" | ||
:class="[isActive(link) ? 'text-primary-500' : 'u-text-gray-500 hover:u-text-gray-700']" | ||
> | ||
{{ link?.navigation?.title || link.title }} | ||
</NuxtLink> | ||
<NuxtLink | ||
to="https://github.com/nuxt-community/prismic-module/blob/master/CHANGELOG.md#readme" | ||
class="text-sm u-text-gray-500 hover:u-text-gray-700 inline-flex items-center space-x-0.5 group" | ||
> | ||
<span>Changelog</span> | ||
<Icon name="heroicons-solid:external-link" class="opacity-0 group-hover:opacity-100" /> | ||
</NuxtLink> | ||
</nav> | ||
</template> |
Oops, something went wrong.