docus 3.0.0-beta.9 → 3.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (155) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +31 -9
  3. package/app/app/app.config.ts +33 -0
  4. package/app/app/app.vue +54 -0
  5. package/app/app/assets/css/main.css +5 -0
  6. package/app/app/components/IconMenuToggle.vue +81 -0
  7. package/app/app/components/OgImage/OgImageDocs.vue +76 -0
  8. package/app/app/components/OgImage/OgImageLanding.vue +73 -0
  9. package/app/app/components/app/AppFooter.vue +40 -0
  10. package/app/app/components/app/AppHeader.vue +57 -0
  11. package/app/app/components/app/AppHeaderBody.vue +13 -0
  12. package/{theme/components/globals/Logo.vue → app/app/components/app/AppHeaderCTA.vue} +1 -1
  13. package/app/app/components/app/AppHeaderCenter.vue +6 -0
  14. package/app/app/components/app/AppHeaderLogo.vue +16 -0
  15. package/app/app/components/docs/DocsAsideLeftTop.vue +3 -0
  16. package/app/app/components/docs/DocsAsideRightBottom.vue +17 -0
  17. package/app/app/components/docs/DocsPageHeaderLinks.vue +91 -0
  18. package/app/app/error.vue +42 -0
  19. package/app/app/layouts/docs.vue +25 -0
  20. package/app/app/pages/[...slug].vue +111 -0
  21. package/app/app/pages/index.vue +37 -0
  22. package/app/content.config.ts +31 -0
  23. package/app/nuxt.config.ts +41 -0
  24. package/app/nuxt.schema.ts +255 -0
  25. package/app/server/routes/raw/[...slug].md.get.ts +24 -0
  26. package/dist/main.mjs +242 -0
  27. package/package.json +66 -39
  28. package/theme/app/router.options.ts +0 -18
  29. package/theme/assets/css/fonts.css +0 -84
  30. package/theme/assets/css/main.css +0 -104
  31. package/theme/components/app/Container.vue +0 -25
  32. package/theme/components/app/Footer.vue +0 -40
  33. package/theme/components/app/MobileNav.vue +0 -85
  34. package/theme/components/app/Navbar.vue +0 -37
  35. package/theme/components/app/NavbarLogo.vue +0 -33
  36. package/theme/components/app/Page.vue +0 -7
  37. package/theme/components/app/PoweredByDocus.vue +0 -11
  38. package/theme/components/content/Alert.vue +0 -124
  39. package/theme/components/content/BlockHero.vue +0 -54
  40. package/theme/components/content/ButtonLink.vue +0 -45
  41. package/theme/components/content/Card.vue +0 -46
  42. package/theme/components/content/CardGrid.vue +0 -23
  43. package/theme/components/content/CodeBlock.vue +0 -47
  44. package/theme/components/content/CodeGroup.vue +0 -135
  45. package/theme/components/content/CopyButton.vue +0 -49
  46. package/theme/components/content/List.vue +0 -5
  47. package/theme/components/content/NeedContribution.vue +0 -23
  48. package/theme/components/content/ReadMore.vue +0 -25
  49. package/theme/components/content/Sandbox.vue +0 -102
  50. package/theme/components/content/TabsHeader.vue +0 -44
  51. package/theme/components/content/Terminal.vue +0 -64
  52. package/theme/components/content/VideoPlayer.vue +0 -115
  53. package/theme/components/dev/Debug.vue +0 -66
  54. package/theme/components/docs/DocsAside.vue +0 -21
  55. package/theme/components/docs/DocsAsideTree.vue +0 -104
  56. package/theme/components/docs/DocsHero.vue +0 -39
  57. package/theme/components/docs/DocsPage.vue +0 -21
  58. package/theme/components/docs/DocsPageContent.vue +0 -32
  59. package/theme/components/docs/DocsToc.vue +0 -77
  60. package/theme/components/globals/Icon.vue +0 -24
  61. package/theme/components/globals/NuxtImg.vue +0 -45
  62. package/theme/components/globals/SocialIcons.vue +0 -45
  63. package/theme/components/globals/ThemeSelect.vue +0 -35
  64. package/theme/components/icons/IconAlgolia.vue +0 -8
  65. package/theme/components/icons/IconArrowLeft.vue +0 -10
  66. package/theme/components/icons/IconArrowRight.vue +0 -10
  67. package/theme/components/icons/IconBadgeCheck.vue +0 -14
  68. package/theme/components/icons/IconCheck.vue +0 -10
  69. package/theme/components/icons/IconCheckCircle.vue +0 -10
  70. package/theme/components/icons/IconChevronRight.vue +0 -12
  71. package/theme/components/icons/IconClipboardCheck.vue +0 -14
  72. package/theme/components/icons/IconClipboardCopy.vue +0 -14
  73. package/theme/components/icons/IconCodeSandbox.vue +0 -8
  74. package/theme/components/icons/IconCopy.vue +0 -17
  75. package/theme/components/icons/IconDots.vue +0 -10
  76. package/theme/components/icons/IconEdit.vue +0 -18
  77. package/theme/components/icons/IconExclamationCircle.vue +0 -12
  78. package/theme/components/icons/IconExclamationTriangle.vue +0 -10
  79. package/theme/components/icons/IconExternalLink.vue +0 -12
  80. package/theme/components/icons/IconGit.vue +0 -7
  81. package/theme/components/icons/IconGitHub.vue +0 -10
  82. package/theme/components/icons/IconHeart.vue +0 -9
  83. package/theme/components/icons/IconInformationCircle.vue +0 -10
  84. package/theme/components/icons/IconLighthouse.vue +0 -83
  85. package/theme/components/icons/IconLine.vue +0 -10
  86. package/theme/components/icons/IconMarkdown.vue +0 -13
  87. package/theme/components/icons/IconMenu.vue +0 -12
  88. package/theme/components/icons/IconMenuAlt.vue +0 -10
  89. package/theme/components/icons/IconMinus.vue +0 -10
  90. package/theme/components/icons/IconMoon.vue +0 -10
  91. package/theme/components/icons/IconNuxt.vue +0 -14
  92. package/theme/components/icons/IconNuxtContent.vue +0 -20
  93. package/theme/components/icons/IconNuxtLabs.vue +0 -21
  94. package/theme/components/icons/IconPlus.vue +0 -10
  95. package/theme/components/icons/IconPuzzle.vue +0 -8
  96. package/theme/components/icons/IconSSG.vue +0 -7
  97. package/theme/components/icons/IconSearch.vue +0 -12
  98. package/theme/components/icons/IconSun.vue +0 -10
  99. package/theme/components/icons/IconTailwind.vue +0 -3
  100. package/theme/components/icons/IconTocBack.vue +0 -21
  101. package/theme/components/icons/IconTocCurrent.vue +0 -21
  102. package/theme/components/icons/IconTocNext.vue +0 -8
  103. package/theme/components/icons/IconTranslate.vue +0 -14
  104. package/theme/components/icons/IconTwitter.vue +0 -8
  105. package/theme/components/icons/IconVite.vue +0 -30
  106. package/theme/components/icons/IconVue.vue +0 -6
  107. package/theme/components/icons/IconVueTelescope.vue +0 -11
  108. package/theme/components/icons/IconWindi.vue +0 -17
  109. package/theme/components/icons/IconX.vue +0 -12
  110. package/theme/components/icons/IconXCircle.vue +0 -10
  111. package/theme/components/icons/IconZap.vue +0 -8
  112. package/theme/components/prose/ProseA.vue +0 -66
  113. package/theme/components/prose/ProseBlockquote.vue +0 -21
  114. package/theme/components/prose/ProseCode.vue +0 -67
  115. package/theme/components/prose/ProseCodeInline.vue +0 -38
  116. package/theme/components/prose/ProseEm.vue +0 -11
  117. package/theme/components/prose/ProseH1.vue +0 -22
  118. package/theme/components/prose/ProseH2.vue +0 -22
  119. package/theme/components/prose/ProseH3.vue +0 -24
  120. package/theme/components/prose/ProseH4.vue +0 -24
  121. package/theme/components/prose/ProseHr.vue +0 -13
  122. package/theme/components/prose/ProseImg.vue +0 -30
  123. package/theme/components/prose/ProseLi.vue +0 -31
  124. package/theme/components/prose/ProseOl.vue +0 -16
  125. package/theme/components/prose/ProseP.vue +0 -14
  126. package/theme/components/prose/ProseStrong.vue +0 -14
  127. package/theme/components/prose/ProseTable.vue +0 -13
  128. package/theme/components/prose/ProseTbody.vue +0 -5
  129. package/theme/components/prose/ProseTd.vue +0 -11
  130. package/theme/components/prose/ProseTh.vue +0 -11
  131. package/theme/components/prose/ProseThead.vue +0 -11
  132. package/theme/components/prose/ProseTr.vue +0 -11
  133. package/theme/components/prose/ProseUl.vue +0 -15
  134. package/theme/composables/useDocus.ts +0 -43
  135. package/theme/composables/useMenu.ts +0 -7
  136. package/theme/composables/useScrollToHeading.ts +0 -35
  137. package/theme/composables/useScrollspy.ts +0 -46
  138. package/theme/composables/useUserAgent.ts +0 -7
  139. package/theme/composables/utils.ts +0 -4
  140. package/theme/layouts/default.vue +0 -29
  141. package/theme/layouts/page.vue +0 -19
  142. package/theme/middleware/components.ts +0 -26
  143. package/theme/middleware/navigation.global.ts +0 -12
  144. package/theme/middleware/page.ts +0 -8
  145. package/theme/middleware/theme.global.ts +0 -12
  146. package/theme/nuxt.config.ts +0 -171
  147. package/theme/pages/[...slug].vue +0 -64
  148. package/theme/plugins/menu.ts +0 -67
  149. package/theme/plugins/user-agent.ts +0 -27
  150. package/theme/utils/components.ts +0 -25
  151. package/theme/utils/navigation.ts +0 -49
  152. package/theme/utils/plugin.ts +0 -21
  153. package/theme/utils/queries.ts +0 -68
  154. package/theme/utils/state.ts +0 -33
  155. package/theme/utils/theme.ts +0 -66
@@ -1,12 +0,0 @@
1
- <template>
2
- <svg
3
- fill="none"
4
- stroke-linecap="round"
5
- stroke-linejoin="round"
6
- stroke-width="2"
7
- viewBox="0 0 24 24"
8
- stroke="currentColor"
9
- >
10
- <path d="M4 6h16M4 12h16M4 18h16" />
11
- </svg>
12
- </template>
@@ -1,10 +0,0 @@
1
- <template>
2
- <svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" stroke="currentColor">
3
- <path
4
- d="M4 6H20M4 12H20M4 18C5.36683 18 6.13317 18 7.5 18C8.86683 18 11 18 11 18"
5
- stroke-width="2"
6
- stroke-linecap="round"
7
- stroke-linejoin="round"
8
- />
9
- </svg>
10
- </template>
@@ -1,10 +0,0 @@
1
- <template>
2
- <svg viewBox="0 0 15 15" fill="none" xmlns="http://www.w3.org/2000/svg">
3
- <path
4
- d="M2.25 7.5C2.25 7.22386 2.47386 7 2.75 7H12.25C12.5261 7 12.75 7.22386 12.75 7.5C12.75 7.77614 12.5261 8 12.25 8H2.75C2.47386 8 2.25 7.77614 2.25 7.5Z"
5
- fill="currentColor"
6
- fill-rule="evenodd"
7
- clip-rule="evenodd"
8
- />
9
- </svg>
10
- </template>
@@ -1,10 +0,0 @@
1
- <template>
2
- <svg viewBox="0 0 15 15" fill="none" xmlns="http://www.w3.org/2000/svg">
3
- <path
4
- d="M13.995 9.77054C12.7688 10.2636 11.4249 10.3854 10.1301 10.1209C8.83526 9.85639 7.64675 9.21716 6.71228 8.28269C5.7778 7.34821 5.13857 6.15971 4.87405 4.86491C4.60952 3.57011 4.73136 2.22612 5.22442 1C3.77244 1.58485 2.56911 2.65657 1.82072 4.03143C1.07234 5.40628 0.82551 6.99866 1.12255 8.53556C1.41959 10.0725 2.24199 11.4582 3.44878 12.4552C4.65557 13.4522 6.17158 13.9983 7.73693 14C9.08301 14 10.3983 13.5973 11.5136 12.8435C12.6288 12.0898 13.493 11.0196 13.995 9.77054Z"
5
- stroke="currentColor"
6
- stroke-linecap="round"
7
- stroke-linejoin="round"
8
- />
9
- </svg>
10
- </template>
@@ -1,14 +0,0 @@
1
- <template>
2
- <svg viewBox="0 0 124 124" fill="none" xmlns="http://www.w3.org/2000/svg">
3
- <path
4
- fill-rule="evenodd"
5
- clip-rule="evenodd"
6
- d="M55.7498 27.1551C52.5277 21.615 44.4723 21.6149 41.2502 27.1551L6.13404 87.5346C2.91191 93.0748 6.93956 100 13.3838 100H40.7975C38.0438 97.5934 37.0241 93.4303 39.1079 89.8584L65.7033 44.2694L55.7498 27.1551Z"
7
- fill="currentColor"
8
- />
9
- <path
10
- d="M78.0002 40.3997C80.6668 35.8668 87.3332 35.8668 89.9998 40.3997L119.061 89.801C121.728 94.3339 118.395 100 113.062 100H54.9383C49.6052 100 46.2719 94.3339 48.9385 89.801L78.0002 40.3997Z"
11
- fill="currentColor"
12
- />
13
- </svg>
14
- </template>
@@ -1,20 +0,0 @@
1
- <template>
2
- <svg viewBox="0 0 100 100" fill="none" xmlns="http://www.w3.org/2000/svg">
3
- <path
4
- d="M53.0214 38.137C55.1705 41.8324 52.4842 46.4516 48.1861 46.4516H21.5917C17.2936 46.4516 14.6073 41.8323 16.7564 38.137L30.0536 15.272C32.2026 11.5766 37.5752 11.5766 39.7242 15.272L53.0214 38.137Z"
5
- fill="#00CD81"
6
- />
7
- <path
8
- d="M60.3763 68.7869C62.5253 65.0919 67.8979 65.0919 70.047 68.7869L83.3442 91.6497C85.4932 95.3447 82.8069 99.9634 78.5088 99.9634H51.9144C47.6164 99.9634 44.9301 95.3447 47.0791 91.6497L60.3763 68.7869Z"
9
- fill="#003E27"
10
- />
11
- <path
12
- d="M70.047 31.1765C67.8979 34.8716 62.5253 34.8716 60.3763 31.1765L47.0791 8.31374C44.9301 4.6187 47.6164 0 51.9144 0H78.5088C82.8069 0 85.4932 4.6187 83.3442 8.31374L70.047 31.1765Z"
13
- fill="#99EBCD"
14
- />
15
- <path
16
- d="M48.1861 55.0018C52.4842 55.0018 55.1705 59.621 53.0214 63.3164L39.7242 86.1814C37.5752 89.8769 32.2026 89.8767 30.0536 86.1814L16.7564 63.3164C14.6073 59.621 17.2936 55.0018 21.5917 55.0018H48.1861Z"
17
- fill="#007B4D"
18
- />
19
- </svg>
20
- </template>
@@ -1,21 +0,0 @@
1
- <template>
2
- <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
3
- <path
4
- fill-rule="evenodd"
5
- clip-rule="evenodd"
6
- d="M5.28998 8.12497V8.32496V8.46247V11.9H7.59998V8.46247H9.9375V11.9H11.0092L11.0092 11.9H10.6562H10.6479H9.9375V12.5187V12.5198H9.93814L11.4677 15.1692L10.2027 17.3685C9.51725 18.5034 8.73855 18.9169 7.52946 18.9169L7.53344 18.9161H3.94681L7.60004 12.5669V11.9H5.29616L1.19865 19.0225C1.06863 19.2482 1.00011 19.5042 1 19.7649C0.999889 20.0256 1.06818 20.2817 1.19801 20.5074C1.32783 20.7332 1.51461 20.9207 1.73957 21.051C1.96452 21.1814 2.21971 21.25 2.47948 21.25H7.61315C9.64717 21.25 11.1472 20.3534 12.1793 18.6042L14.6852 14.2493L16.0274 11.9187L20.0556 18.9193H14.6852L13.3422 21.25H21.5205C21.7803 21.25 22.0355 21.1814 22.2604 21.051C22.4854 20.9207 22.6722 20.7332 22.802 20.5074C22.9318 20.2817 23.0001 20.0256 23 19.7649C22.9999 19.5042 22.9314 19.2482 22.8014 19.0225L17.309 9.4761C17.1792 9.25038 16.9925 9.06294 16.7675 8.93261C16.5426 8.80229 16.2875 8.73367 16.0278 8.73367C15.7681 8.73367 15.5129 8.80229 15.288 8.93261C15.0631 9.06294 14.8764 9.25038 14.7466 9.4761L13.4723 11.6925L13.4743 11.6937L12.8173 12.8317L12.275 11.8924V8.32496H12.275V8.12497C12.275 7.0204 11.3795 6.12497 10.275 6.12497H7.28998C6.18541 6.12497 5.28998 7.0204 5.28998 8.12497Z"
7
- fill="currentColor"
8
- />
9
- <ellipse
10
- cx="9.71554"
11
- cy="4.26256"
12
- rx="0.825"
13
- ry="0.825"
14
- transform="rotate(-15.506 9.71554 4.26256)"
15
- fill="#00DC82"
16
- />
17
- <circle cx="5.12499" cy="2.825" r="0.825" fill="#00DC82" />
18
- <circle cx="8.00203" cy="2.95201" r="0.55" transform="rotate(-15.506 8.00203 2.95201)" fill="#00DC82" />
19
- <circle cx="6.90205" cy="4.87702" r="0.55" transform="rotate(-15.506 6.90205 4.87702)" fill="#00DC82" />
20
- </svg>
21
- </template>
@@ -1,10 +0,0 @@
1
- <template>
2
- <svg viewBox="0 0 15 15" fill="none" xmlns="http://www.w3.org/2000/svg">
3
- <path
4
- d="M8 2.75C8 2.47386 7.77614 2.25 7.5 2.25C7.22386 2.25 7 2.47386 7 2.75V7H2.75C2.47386 7 2.25 7.22386 2.25 7.5C2.25 7.77614 2.47386 8 2.75 8H7V12.25C7 12.5261 7.22386 12.75 7.5 12.75C7.77614 12.75 8 12.5261 8 12.25V8H12.25C12.5261 8 12.75 7.77614 12.75 7.5C12.75 7.22386 12.5261 7 12.25 7H8V2.75Z"
5
- fill="currentColor"
6
- fill-rule="evenodd"
7
- clip-rule="evenodd"
8
- />
9
- </svg>
10
- </template>
@@ -1,8 +0,0 @@
1
- <template>
2
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64" width="64" height="64">
3
- <path
4
- fill="#00DC82"
5
- d="M48,27v-5c0-2.761-2.239-5-5-5h-5c-1.105,0-2-0.895-2-2v-2c0-3.866-3.134-7-7-7h0 c-3.866,0-7,3.134-7,7v2c0,1.105-0.895,2-2,2h-5c-2.761,0-5,2.239-5,5v5c0,1.105,0.895,2,2,2h2c3.866,0,7,3.134,7,7v0 c0,3.866-3.134,7-7,7h-2c-1.105,0-2,0.895-2,2v5c0,2.761,2.239,5,5,5h28c2.761,0,5-2.239,5-5v-5c0-1.105,0.895-2,2-2h2 c3.866,0,7-3.134,7-7v0c0-3.866-3.134-7-7-7h-2C48.895,29,48,28.105,48,27z"
6
- />
7
- </svg>
8
- </template>
@@ -1,7 +0,0 @@
1
- <template>
2
- <svg fill="currentColor" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48" width="64" height="64">
3
- <path
4
- d="M 10.5 6 C 10.3105 6 10.124082 6.0104805 9.9394531 6.0292969 C 9.571481 6.0667987 9.2141905 6.1413291 8.8710938 6.2480469 C 7.1472189 6.7842455 5.7842455 8.1472189 5.2480469 9.8710938 C 5.1413291 10.21419 5.0667987 10.571481 5.0292969 10.939453 C 5.0292305 10.940097 5.0293631 10.940762 5.0292969 10.941406 C 5.0106094 11.125412 5 11.311158 5 11.5 L 5 13.5 L 5 36.5 C 5 39.519774 7.4802259 42 10.5 42 L 37.5 42 C 40.519774 42 43 39.519774 43 36.5 L 43 13.5 L 43 11.5 C 43 11.310603 42.989737 11.124126 42.970703 10.939453 C 42.933201 10.571481 42.858671 10.21419 42.751953 9.8710938 C 42.215754 8.1472189 40.852781 6.7842455 39.128906 6.2480469 C 38.78581 6.1413291 38.428519 6.0667987 38.060547 6.0292969 C 38.059905 6.0292315 38.059235 6.029362 38.058594 6.0292969 C 37.874547 6.0103939 37.688736 6 37.5 6 L 10.5 6 z M 10.5 9 C 11.328 9 12 9.672 12 10.5 C 12 11.328 11.328 12 10.5 12 C 9.672 12 9 11.328 9 10.5 C 9 9.672 9.672 9 10.5 9 z M 15.5 9 C 16.328 9 17 9.672 17 10.5 C 17 11.328 16.328 12 15.5 12 C 14.672 12 14 11.328 14 10.5 C 14 9.672 14.672 9 15.5 9 z M 21.5 9 L 37.5 9 C 38.328 9 39 9.672 39 10.5 C 39 11.328 38.328 12 37.5 12 L 21.5 12 C 20.672 12 20 11.328 20 10.5 C 20 9.672 20.672 9 21.5 9 z M 8 15 L 40 15 L 40 32.945312 L 32.990234 26.140625 A 1.50015 1.50015 0 0 0 32.986328 26.136719 C 32.208181 25.38535 31.18685 25 30.173828 25 C 29.16122 25 28.13988 25.385387 27.361328 26.138672 L 25.3125 28.121094 L 19.132812 22.142578 C 18.35636 21.389748 17.336076 21 16.318359 21 C 15.299078 21 14.280986 21.392173 13.505859 22.140625 A 1.50015 1.50015 0 0 0 13.501953 22.144531 L 8 27.490234 L 8 15 z M 29 18 A 2 2 0 0 0 29 22 A 2 2 0 0 0 29 18 z M 16.318359 24 C 16.578643 24 16.835328 24.09366 17.044922 24.296875 A 1.50015 1.50015 0 0 0 17.046875 24.298828 L 23.154297 30.207031 L 14.064453 39 L 10.5 39 C 9.1017741 39 8 37.898226 8 36.5 L 8 31.671875 L 15.591797 24.294922 L 15.589844 24.298828 C 15.802758 24.093293 16.059641 24 16.318359 24 z M 30.173828 28 C 30.438806 28 30.692485 28.09229 30.902344 28.294922 L 39.933594 37.0625 C 39.683303 38.182061 38.703903 39 37.5 39 L 18.380859 39 L 29.447266 28.294922 C 29.654714 28.094207 29.910436 28 30.173828 28 z"
5
- />
6
- </svg>
7
- </template>
@@ -1,12 +0,0 @@
1
- <template>
2
- <svg
3
- fill="none"
4
- stroke-linecap="round"
5
- stroke-linejoin="round"
6
- stroke-width="2"
7
- viewBox="0 0 24 24"
8
- stroke="currentColor"
9
- >
10
- <path d="M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z" />
11
- </svg>
12
- </template>
@@ -1,10 +0,0 @@
1
- <template>
2
- <svg fill="none" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 15 15">
3
- <path
4
- fill-rule="evenodd"
5
- clip-rule="evenodd"
6
- d="M7.5 0C7.77614 0 8 0.223858 8 0.5V2.5C8 2.77614 7.77614 3 7.5 3C7.22386 3 7 2.77614 7 2.5V0.5C7 0.223858 7.22386 0 7.5 0ZM2.1967 2.1967C2.39196 2.00144 2.70854 2.00144 2.90381 2.1967L4.31802 3.61091C4.51328 3.80617 4.51328 4.12276 4.31802 4.31802C4.12276 4.51328 3.80617 4.51328 3.61091 4.31802L2.1967 2.90381C2.00144 2.70854 2.00144 2.39196 2.1967 2.1967ZM0.5 7C0.223858 7 0 7.22386 0 7.5C0 7.77614 0.223858 8 0.5 8H2.5C2.77614 8 3 7.77614 3 7.5C3 7.22386 2.77614 7 2.5 7H0.5ZM2.1967 12.8033C2.00144 12.608 2.00144 12.2915 2.1967 12.0962L3.61091 10.682C3.80617 10.4867 4.12276 10.4867 4.31802 10.682C4.51328 10.8772 4.51328 11.1938 4.31802 11.3891L2.90381 12.8033C2.70854 12.9986 2.39196 12.9986 2.1967 12.8033ZM12.5 7C12.2239 7 12 7.22386 12 7.5C12 7.77614 12.2239 8 12.5 8H14.5C14.7761 8 15 7.77614 15 7.5C15 7.22386 14.7761 7 14.5 7H12.5ZM10.682 4.31802C10.4867 4.12276 10.4867 3.80617 10.682 3.61091L12.0962 2.1967C12.2915 2.00144 12.608 2.00144 12.8033 2.1967C12.9986 2.39196 12.9986 2.70854 12.8033 2.90381L11.3891 4.31802C11.1938 4.51328 10.8772 4.51328 10.682 4.31802ZM8 12.5C8 12.2239 7.77614 12 7.5 12C7.22386 12 7 12.2239 7 12.5V14.5C7 14.7761 7.22386 15 7.5 15C7.77614 15 8 14.7761 8 14.5V12.5ZM10.682 10.682C10.8772 10.4867 11.1938 10.4867 11.3891 10.682L12.8033 12.0962C12.9986 12.2915 12.9986 12.608 12.8033 12.8033C12.608 12.9986 12.2915 12.9986 12.0962 12.8033L10.682 11.3891C10.4867 11.1938 10.4867 10.8772 10.682 10.682ZM5.5 7.5C5.5 6.39543 6.39543 5.5 7.5 5.5C8.60457 5.5 9.5 6.39543 9.5 7.5C9.5 8.60457 8.60457 9.5 7.5 9.5C6.39543 9.5 5.5 8.60457 5.5 7.5ZM7.5 4.5C5.84315 4.5 4.5 5.84315 4.5 7.5C4.5 9.15685 5.84315 10.5 7.5 10.5C9.15685 10.5 10.5 9.15685 10.5 7.5C10.5 5.84315 9.15685 4.5 7.5 4.5Z"
7
- fill="currentColor"
8
- />
9
- </svg>
10
- </template>
@@ -1,3 +0,0 @@
1
- <template>
2
- <svg fill="#06B6D4" role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M12.001,4.8c-3.2,0-5.2,1.6-6,4.8c1.2-1.6,2.6-2.2,4.2-1.8c0.913,0.228,1.565,0.89,2.288,1.624 C13.666,10.618,15.027,12,18.001,12c3.2,0,5.2-1.6,6-4.8c-1.2,1.6-2.6,2.2-4.2,1.8c-0.913-0.228-1.565-0.89-2.288-1.624 C16.337,6.182,14.976,4.8,12.001,4.8z M6.001,12c-3.2,0-5.2,1.6-6,4.8c1.2-1.6,2.6-2.2,4.2-1.8c0.913,0.228,1.565,0.89,2.288,1.624 c1.177,1.194,2.538,2.576,5.512,2.576c3.2,0,5.2-1.6,6-4.8c-1.2,1.6-2.6,2.2-4.2,1.8c-0.913-0.228-1.565-0.89-2.288-1.624 C10.337,13.382,8.976,12,6.001,12z" /></svg>
3
- </template>
@@ -1,21 +0,0 @@
1
- <template>
2
- <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
3
- <rect
4
- x="0.5"
5
- y="0.5"
6
- width="23"
7
- height="23"
8
- rx="5.5"
9
- fill="#F1F5F9"
10
- />
11
- <rect
12
- x="0.5"
13
- y="0.5"
14
- width="23"
15
- height="23"
16
- rx="5.5"
17
- stroke="#F1F5F9"
18
- />
19
- <path d="M10.756 15.8657C10.8765 15.9461 11.0166 15.9923 11.1612 15.9993C11.3059 16.0063 11.4497 15.9739 11.5774 15.9056C11.7051 15.8373 11.8119 15.7356 11.8863 15.6113C11.9608 15.4871 12.0001 15.345 12 15.2001V12.9617L16.356 15.8657C16.4765 15.9461 16.6166 15.9923 16.7612 15.9993C16.9059 16.0063 17.0497 15.9739 17.1774 15.9056C17.3051 15.8373 17.4119 15.7356 17.4863 15.6113C17.5608 15.4871 17.6001 15.345 17.6 15.2001V8.80012C17.6001 8.65529 17.5608 8.51316 17.4863 8.38891C17.4119 8.26466 17.3051 8.16295 17.1774 8.09462C17.0497 8.02629 16.9059 7.99392 16.7612 8.00094C16.6166 8.00797 16.4765 8.05414 16.356 8.13452L12 11.0385V8.80012C12.0001 8.65529 11.9608 8.51316 11.8863 8.38891C11.8119 8.26466 11.7051 8.16295 11.5774 8.09462C11.4497 8.02629 11.3059 7.99392 11.1612 8.00094C11.0166 8.00797 10.8765 8.05414 10.756 8.13452L5.95603 11.3345C5.84647 11.4076 5.75663 11.5066 5.6945 11.6227C5.63236 11.7388 5.59985 11.8684 5.59985 12.0001C5.59985 12.1318 5.63236 12.2615 5.6945 12.3776C5.75663 12.4937 5.84647 12.5927 5.95603 12.6657L10.756 15.8657Z" fill="#94A3B8" />
20
- </svg>
21
- </template>
@@ -1,21 +0,0 @@
1
- <template>
2
- <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
3
- <rect
4
- x="0.5"
5
- y="0.5"
6
- width="23"
7
- height="23"
8
- rx="5.5"
9
- fill="#1E293B"
10
- />
11
- <rect
12
- x="0.5"
13
- y="0.5"
14
- width="23"
15
- height="23"
16
- rx="5.5"
17
- stroke="#1E293B"
18
- />
19
- <path fill-rule="evenodd" clip-rule="evenodd" d="M12.0001 18.4001C13.6975 18.4001 15.3253 17.7258 16.5256 16.5256C17.7258 15.3253 18.4001 13.6975 18.4001 12.0001C18.4001 10.3027 17.7258 8.67485 16.5256 7.47461C15.3253 6.27438 13.6975 5.6001 12.0001 5.6001C10.3027 5.6001 8.67485 6.27438 7.47461 7.47461C6.27438 8.67485 5.6001 10.3027 5.6001 12.0001C5.6001 13.6975 6.27438 15.3253 7.47461 16.5256C8.67485 17.7258 10.3027 18.4001 12.0001 18.4001V18.4001ZM11.6441 9.7345C11.5236 9.65411 11.3836 9.60795 11.2389 9.60092C11.0942 9.59389 10.9504 9.62627 10.8227 9.6946C10.695 9.76293 10.5882 9.86464 10.5138 9.98889C10.4394 10.1131 10.4001 10.2553 10.4001 10.4001V13.6001C10.4001 13.7449 10.4394 13.8871 10.5138 14.0113C10.5882 14.1356 10.695 14.2373 10.8227 14.3056C10.9504 14.3739 11.0942 14.4063 11.2389 14.3993C11.3836 14.3922 11.5236 14.3461 11.6441 14.2657L14.0441 12.6657C14.1537 12.5926 14.2435 12.4937 14.3056 12.3776C14.3678 12.2614 14.4003 12.1318 14.4003 12.0001C14.4003 11.8684 14.3678 11.7388 14.3056 11.6226C14.2435 11.5065 14.1537 11.4076 14.0441 11.3345L11.6441 9.7345V9.7345Z" fill="white" />
20
- </svg>
21
- </template>
@@ -1,8 +0,0 @@
1
- <template>
2
- <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
3
- <rect width="24" height="24" rx="6" fill="#F1F5F9" />
4
- <g opacity="0.6">
5
- <path d="M7.6439 9.13452C7.52342 9.05414 7.38338 9.00797 7.23872 9.00094C7.09405 8.99392 6.95019 9.02629 6.82249 9.09462C6.69479 9.16295 6.58803 9.26466 6.5136 9.38891C6.43918 9.51316 6.39988 9.65529 6.3999 9.80012V16.2001C6.39988 16.345 6.43918 16.4871 6.5136 16.6113C6.58803 16.7356 6.69479 16.8373 6.82249 16.9056C6.95019 16.9739 7.09405 17.0063 7.23872 16.9993C7.38338 16.9923 7.52342 16.9461 7.6439 16.8657L11.9999 13.9617V16.2001C11.9999 16.345 12.0392 16.4871 12.1136 16.6113C12.188 16.7356 12.2948 16.8373 12.4225 16.9056C12.5502 16.9739 12.6941 17.0063 12.8387 16.9993C12.9834 16.9923 13.1234 16.9461 13.2439 16.8657L18.0439 13.6657C18.1535 13.5927 18.2433 13.4937 18.3054 13.3776C18.3676 13.2615 18.4001 13.1318 18.4001 13.0001C18.4001 12.8684 18.3676 12.7388 18.3054 12.6227C18.2433 12.5066 18.1535 12.4076 18.0439 12.3345L13.2439 9.13452C13.1234 9.05414 12.9834 9.00797 12.8387 9.00094C12.6941 8.99392 12.5502 9.02629 12.4225 9.09462C12.2948 9.16295 12.188 9.26466 12.1136 9.38891C12.0392 9.51316 11.9999 9.65529 11.9999 9.80012V12.0385L7.6439 9.13452Z" fill="#94A3B8" />
6
- </g>
7
- </svg>
8
- </template>
@@ -1,14 +0,0 @@
1
- <template>
2
- <svg
3
- fill="none"
4
- stroke-linecap="round"
5
- stroke-linejoin="round"
6
- stroke-width="2"
7
- stroke="currentColor"
8
- viewBox="0 0 24 24"
9
- >
10
- <path
11
- d="M3 5h12M9 3v2m1.048 9.5A18.022 18.022 0 016.412 9m6.088 9h7M11 21l5-10 5 10M12.751 5C11.783 10.77 8.07 15.61 3 18.129"
12
- />
13
- </svg>
14
- </template>
@@ -1,8 +0,0 @@
1
- <template>
2
- <svg viewBox="0 0 124 124" fill="none" xmlns="http://www.w3.org/2000/svg">
3
- <path
4
- d="M109 33.1157C105.542 34.6633 101.825 35.7055 97.9237 36.1754C101.907 33.7711 104.966 29.9613 106.403 25.4213C102.678 27.6479 98.5505 29.2665 94.1557 30.139C90.6425 26.3609 85.6252 24 80.0793 24C67.6284 24 58.4788 35.7095 61.2912 47.8651C45.268 47.0558 31.0583 39.3179 21.5448 27.5571C16.4923 36.2938 18.9245 47.723 27.5098 53.5105C24.353 53.4079 21.3763 52.5354 18.7796 51.0787C18.5681 60.0838 24.9718 68.5088 34.2465 70.384C31.5322 71.126 28.5595 71.2999 25.5358 70.7155C27.9877 78.4378 35.1082 84.0555 43.5525 84.2136C35.445 90.6208 25.2303 93.4832 15 92.2674C23.5344 97.7826 33.6747 101 44.563 101C80.3692 101 100.599 70.5181 99.3768 43.1789C103.144 40.4351 106.415 37.0123 109 33.1157Z"
5
- fill="currentColor"
6
- />
7
- </svg>
8
- </template>
@@ -1,30 +0,0 @@
1
- <template>
2
- <svg fill="none" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 410 404">
3
- <defs>
4
- <linearGradient id="paint0_linear" x1="6" y1="33" x2="235" y2="344" gradientUnits="userSpaceOnUse">
5
- <stop stop-color="#41D1FF" />
6
- <stop offset="1" stop-color="#BD34FE" />
7
- </linearGradient>
8
- <linearGradient
9
- id="paint1_linear"
10
- x1="194.651"
11
- y1="8.818"
12
- x2="236.076"
13
- y2="292.989"
14
- gradientUnits="userSpaceOnUse"
15
- >
16
- <stop stop-color="#FFEA83" />
17
- <stop offset=".083" stop-color="#FFDD35" />
18
- <stop offset="1" stop-color="#FFA800" />
19
- </linearGradient>
20
- </defs>
21
- <path
22
- d="M399.641 59.525l-183.998 329.02c-3.799 6.793-13.559 6.833-17.415.073L10.582 59.556C6.38 52.19 12.68 43.266 21.028 44.76l184.195 32.923c1.175.21 2.378.208 3.553-.006l180.343-32.87c8.32-1.517 14.649 7.337 10.522 14.719z"
23
- fill="url(#paint0_linear)"
24
- />
25
- <path
26
- d="M292.965 1.574L156.801 28.255a5 5 0 00-4.03 4.611l-8.376 141.464c-.197 3.332 2.863 5.918 6.115 5.168l37.91-8.749c3.547-.818 6.752 2.306 6.023 5.873l-11.263 55.153c-.758 3.712 2.727 6.886 6.352 5.785l23.415-7.114c3.63-1.102 7.118 2.081 6.35 5.796l-17.899 86.633c-1.12 5.419 6.088 8.374 9.094 3.728l2.008-3.103 110.954-221.428c1.858-3.707-1.346-7.935-5.418-7.15l-39.022 7.532c-3.667.707-6.787-2.708-5.752-6.296l25.469-88.291c1.036-3.594-2.095-7.012-5.766-6.293z"
27
- fill="url(#paint1_linear)"
28
- />
29
- </svg>
30
- </template>
@@ -1,6 +0,0 @@
1
- <template>
2
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48" fill="currentColor">
3
- <polygon fill="#81c784" points="23.987,17 18.734,8 2.974,8 23.987,44 45,8 29.24,8" />
4
- <polygon fill="#455a64" points="29.24,8 23.987,17 18.734,8 11.146,8 23.987,30 36.828,8" />
5
- </svg>
6
- </template>
@@ -1,11 +0,0 @@
1
- <template>
2
- <svg viewBox="0 0 124 124" fill="none" xmlns="http://www.w3.org/2000/svg">
3
- <path
4
- d="M48 82.5887L57.1066 98.175C59.3073 101.942 64.8092 101.942 67.0102 98.175L101 40H72.8834L48 82.5887Z"
5
- fill="currentColor"
6
- />
7
- <path d="M77 33H104.936L105.23 32.4924C107.417 28.718 104.684 24 100.31 24H82.2142L77 33Z" fill="currentColor" />
8
- <path d="M74 24L68.7601 33H19.0689L18.7734 32.4924C16.5759 28.718 19.3228 24 23.7177 24H74Z" fill="currentColor" />
9
- <path d="M65 40L44 76L23 40H65Z" fill="currentColor" />
10
- </svg>
11
- </template>
@@ -1,17 +0,0 @@
1
- <template>
2
- <svg viewBox="0 0 128 128" fill="none" xmlns="http://www.w3.org/2000/svg">
3
- <path
4
- d="M67.0788 31.5813C67.0788 21.8864 59.1923 14 49.4975 14C39.2803 14 33.1721 21.6604 33.1721 29.0696H43.2185C43.2185 26.985 45.1675 24.0464 49.4975 24.0464C53.6517 24.0464 57.0323 27.4271 57.0323 31.5813C57.0323 35.7355 54 39.1161 46.3533 39.1161H19V49.1625H46.3533C59.259 49.1625 67.0788 41.2761 67.0788 31.5813ZM67.0788 31.5813C67.0788 21.8864 59.1923 14 49.4975 14C39.2803 14 33.1721 21.6604 33.1721 29.0696H43.2185C43.2185 26.985 45.1675 24.0464 49.4975 24.0464C53.6517 24.0464 57.0323 27.4271 57.0323 31.5813C57.0323 35.7355 54 39.1161 46.3533 39.1161H19V49.1625H46.3533C59.259 49.1625 67.0788 41.2761 67.0788 31.5813Z"
5
- fill="#42A4EF"
6
- />
7
- <path
8
- d="M89.3666 96.4187C89.3666 106.114 81.4801 114 71.7853 114C61.5681 114 55.4598 106.34 55.4598 98.9304H65.5063C65.5063 101.015 67.4553 103.954 71.7853 103.954C75.9395 103.954 79.3201 100.573 79.3201 96.4187C79.3201 92.2645 75.4999 88.8839 68.6411 88.8839H38.2878V78.8375H68.6411C81.5468 78.8375 89.3666 86.7239 89.3666 96.4187ZM89.3666 96.4187C89.3666 106.114 81.4801 114 71.7853 114C61.5681 114 55.4598 106.34 55.4598 98.9304H65.5063C65.5063 101.015 67.4553 103.954 71.7853 103.954C75.9395 103.954 79.3201 100.573 79.3201 96.4187C79.3201 92.2645 75.4999 88.8839 68.6411 88.8839H38.2878V78.8375H68.6411C81.5468 78.8375 89.3666 86.7239 89.3666 96.4187Z"
9
- fill="#42A4EF"
10
- />
11
- <path
12
- d="M92 29.5C80.9188 29.5 73.102 37.9269 73.102 49.0081H82C82 43.5 86 39.5 92 39.5C98 39.5 101 43.5 101 49.0081C101 54.5162 97.1036 59.0545 86.5 59.0545H19V69.101H88C103.703 69.101 111 59.0081 111 49.0081C111 37.9269 103.5 29.5 92 29.5Z"
13
- fill="#42A4EF"
14
- />
15
- <path d="M32.1701 78.8375H19V88.9683H32.1701V78.8375Z" fill="#42A4EF" />
16
- </svg>
17
- </template>
@@ -1,12 +0,0 @@
1
- <template>
2
- <svg
3
- fill="none"
4
- stroke-linecap="round"
5
- stroke-linejoin="round"
6
- stroke-width="2"
7
- viewBox="0 0 24 24"
8
- stroke="currentColor"
9
- >
10
- <path d="M6 18L18 6M6 6l12 12" />
11
- </svg>
12
- </template>
@@ -1,10 +0,0 @@
1
- <template>
2
- <svg viewBox="0 0 15 15" fill="none" xmlns="http://www.w3.org/2000/svg">
3
- <path
4
- d="M0.877075 7.49988C0.877075 3.84219 3.84222 0.877045 7.49991 0.877045C11.1576 0.877045 14.1227 3.84219 14.1227 7.49988C14.1227 11.1575 11.1576 14.1227 7.49991 14.1227C3.84222 14.1227 0.877075 11.1575 0.877075 7.49988ZM7.49991 1.82704C4.36689 1.82704 1.82708 4.36686 1.82708 7.49988C1.82708 10.6329 4.36689 13.1727 7.49991 13.1727C10.6329 13.1727 13.1727 10.6329 13.1727 7.49988C13.1727 4.36686 10.6329 1.82704 7.49991 1.82704ZM9.85358 5.14644C10.0488 5.3417 10.0488 5.65829 9.85358 5.85355L8.20713 7.49999L9.85358 9.14644C10.0488 9.3417 10.0488 9.65829 9.85358 9.85355C9.65832 10.0488 9.34173 10.0488 9.14647 9.85355L7.50002 8.2071L5.85358 9.85355C5.65832 10.0488 5.34173 10.0488 5.14647 9.85355C4.95121 9.65829 4.95121 9.3417 5.14647 9.14644L6.79292 7.49999L5.14647 5.85355C4.95121 5.65829 4.95121 5.3417 5.14647 5.14644C5.34173 4.95118 5.65832 4.95118 5.85358 5.14644L7.50002 6.79289L9.14647 5.14644C9.34173 4.95118 9.65832 4.95118 9.85358 5.14644Z"
5
- fill="currentColor"
6
- fill-rule="evenodd"
7
- clip-rule="evenodd"
8
- />
9
- </svg>
10
- </template>
@@ -1,8 +0,0 @@
1
- <template>
2
- <svg xmlns="http://www.w3.org/2000/svg" x="0px" y="0px" viewBox="0 0 48 48" width="64" height="64">
3
- <polygon
4
- fill="#ffae0b"
5
- points="16.828,5.828 29.966,5.828 25.172,19.414 33.966,19.414 18.621,43.138 21.034,26.379 12.828,26.379"
6
- />
7
- </svg>
8
- </template>
@@ -1,66 +0,0 @@
1
- <script setup lang="ts">
2
- defineProps({
3
- href: {
4
- type: String,
5
- default: '',
6
- },
7
- blank: {
8
- type: Boolean,
9
- default: false,
10
- },
11
- /**
12
- * `true` if `href` points to a static file
13
- */
14
- static: {
15
- type: Boolean,
16
- default: false,
17
- },
18
- })
19
- </script>
20
-
21
- <template>
22
- <NuxtLink :to="href" :blank="blank" :static="static">
23
- <slot />
24
- </NuxtLink>
25
- </template>
26
-
27
- <style lang="postcss" scoped>
28
- :not(h1, h2, h3, h4) > a {
29
- @apply font-medium no-underline text-primary-500 border-b border-transparent hover:border-primary-500 transition-colors;
30
- }
31
-
32
- h1 a,
33
- h2 a,
34
- h3 a,
35
- h4 a {
36
- @apply relative;
37
- &::after {
38
- @apply absolute pl-2 w-6 h-6 opacity-0;
39
- content: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="%23111827"%3E%3Cpath stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13.828 10.172a4 4 0 00-5.656 0l-4 4a4 4 0 105.656 5.656l1.102-1.101m-.758-4.899a4 4 0 005.656 0l4-4a4 4 0 00-5.656-5.656l-1.1 1.1" /%3E%3C/svg%3E');
40
- }
41
- &:hover {
42
- &::after {
43
- @apply opacity-100;
44
- }
45
- }
46
-
47
- /* Hover underline */
48
- &:before {
49
- @apply absolute top-0 left-0 w-full;
50
- content: '';
51
- height: calc(100% + 4px);
52
- }
53
- &:hover:before {
54
- @apply border-b border-dashed border-gray-900 dark:border-gray-100;
55
- }
56
- }
57
-
58
- .dark h1 a,
59
- .dark h2 a,
60
- .dark h3 a,
61
- .dark h4 a {
62
- &::after {
63
- content: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="white"%3E%3Cpath stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13.828 10.172a4 4 0 00-5.656 0l-4 4a4 4 0 105.656 5.656l1.102-1.101m-.758-4.899a4 4 0 005.656 0l4-4a4 4 0 00-5.656-5.656l-1.1 1.1" /%3E%3C/svg%3E');
64
- }
65
- }
66
- </style>
@@ -1,21 +0,0 @@
1
- <template>
2
- <blockquote>
3
- <slot />
4
- </blockquote>
5
- </template>
6
-
7
- <style lang="postcss" scoped>
8
- blockquote {
9
- @apply text-base mt-[1.5em] mb-[1.5em] font-medium pl-4 text-secondary border-l-2 border-gray-200 dark:border-gray-700;
10
-
11
- quotes: '201C' '201D' '2018' '2019';
12
- }
13
-
14
- blockquote p:first-of-type::before {
15
- content: '';
16
- }
17
-
18
- blockquote p:last-of-type::after {
19
- content: '';
20
- }
21
- </style>
@@ -1,67 +0,0 @@
1
- <script setup lang="ts">
2
- import type { PropType } from 'vue'
3
- import type { Lang } from 'shiki-es'
4
-
5
- defineProps({
6
- code: {
7
- type: String,
8
- default: '',
9
- },
10
- language: {
11
- type: String as PropType<Lang>,
12
- default: null,
13
- },
14
- filename: {
15
- type: String,
16
- default: null,
17
- },
18
- highlights: {
19
- type: Array as () => number[],
20
- default: () => [],
21
- },
22
- })
23
- </script>
24
-
25
- <template>
26
- <div class="prose-code text-gray-50 w-full group">
27
- <span v-if="filename" class="filename transition-base top-2 right-2 opacity-100 absolute right-0 z-0 m-1 py-1.5 px-2 text-gray-400 bg-gray-900 rounded-lg font-mono text-xs leading-none tracking-tight">
28
- {{ filename }}
29
- </span>
30
-
31
- <slot />
32
-
33
- <CopyButton class="copy-button opacity-0 transition-base" />
34
- </div>
35
- </template>
36
-
37
- <style lang="postcss" scoped>
38
- div {
39
- @apply relative rounded-lg overflow-hidden my-4;
40
- }
41
-
42
- :deep(pre) {
43
- @apply flex flex-1 p-4 my-0 overflow-x-auto leading-relaxed text-sm code-background;
44
- }
45
-
46
- :deep(code) {
47
- @apply flex flex-col;
48
- }
49
-
50
- :deep(.line) {
51
- @apply inline-table min-h-[1rem];
52
- }
53
-
54
- :deep(.line.highlight) {
55
- background-color: #3f3f46;
56
- }
57
-
58
- .group:hover {
59
- .filename {
60
- @apply opacity-0;
61
- }
62
-
63
- .copy-button {
64
- @apply opacity-100;
65
- }
66
- }
67
- </style>
@@ -1,38 +0,0 @@
1
- <template>
2
- <code>
3
- <slot />
4
- </code>
5
- </template>
6
-
7
- <style lang="postcss" scoped>
8
- code {
9
- @apply font-normal text-sm py-[3px] px-[6px] rounded-lg bg-gray-100 text-gray-800 dark:text-gray-100 dark:bg-gray-800;
10
- }
11
-
12
- a code {
13
- &:hover {
14
- @apply border-primary-500;
15
- }
16
- }
17
-
18
- tbody code {
19
- @apply text-[12px];
20
- }
21
-
22
- h1 a,
23
- h2 a,
24
- h3 a,
25
- h4 a {
26
- code {
27
- @apply relative;
28
- font-size: inherit;
29
- }
30
-
31
- & code:before {
32
- @apply absolute top-[-2px] left-[-2px] -z-[1] rounded-lg pointer-events-none;
33
- content: '';
34
- width: calc(100% + 4px);
35
- height: calc(100% + 4px);
36
- }
37
- }
38
- </style>
@@ -1,11 +0,0 @@
1
- <template>
2
- <em>
3
- <slot />
4
- </em>
5
- </template>
6
-
7
- <style lang="postcss" scoped>
8
- em {
9
- @apply italic text-current;
10
- }
11
- </style>
@@ -1,22 +0,0 @@
1
- <script setup lang="ts">
2
- defineProps<{ id: string }>()
3
- </script>
4
-
5
- <template>
6
- <h1 :id="id">
7
- <NuxtLink :href="`#${id}`">
8
- <slot />
9
- </NuxtLink>
10
- </h1>
11
- </template>>
12
-
13
- <style lang="postcss" scoped>
14
- h1 {
15
- font-size: 2rem;
16
- @apply tracking-tight leading-snug font-semibold mt-[1em] mb-[0.5em];
17
- }
18
-
19
- h1 + * {
20
- @apply mt-0;
21
- }
22
- </style>
@@ -1,22 +0,0 @@
1
- <script setup lang="ts">
2
- defineProps<{ id: string }>()
3
- </script>
4
-
5
- <template>
6
- <h2 :id="id">
7
- <NuxtLink :href="`#${id}`">
8
- <slot />
9
- </NuxtLink>
10
- </h2>
11
- </template>
12
-
13
- <style lang="postcss" scoped>
14
- h2 {
15
- font-size: 1.5rem;
16
- @apply tracking-tight leading-snug font-semibold mt-[1.25em] mb-[0.5em];
17
- }
18
-
19
- h2 + * {
20
- @apply mt-0;
21
- }
22
- </style>