@wordup-md/nuxt-layer-shadcn-unocss 0.2.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.
- package/.cursor/rules/active-context-rule.mdc +8 -0
- package/.cursor/rules/memory-bank-overview.mdc +17 -0
- package/.cursor/rules/product-context-rule.mdc +8 -0
- package/.cursor/rules/progress-rule.mdc +8 -0
- package/.cursor/rules/projectbrief-rule.mdc +8 -0
- package/.cursor/rules/system-patterns-rule.mdc +8 -0
- package/.cursor/rules/tech-context-rule.mdc +8 -0
- package/.cursorrules +52 -0
- package/.editorconfig +12 -0
- package/.nuxtrc +1 -0
- package/.playground/app.config.ts +189 -0
- package/.playground/assets/style.css +15 -0
- package/.playground/components/content/MdcExample.vue +81 -0
- package/.playground/components/content/MdcReplay.vue +319 -0
- package/.playground/content/1.getting-started/1.introduction.md +8 -0
- package/.playground/content/1.getting-started/2.writing/1.markdown.md +56 -0
- package/.playground/content/1.getting-started/2.writing/2.pages.md +177 -0
- package/.playground/content/1.getting-started/2.writing/3.folders.md +56 -0
- package/.playground/content/1.getting-started/2.writing/_dir.yml +3 -0
- package/.playground/content/1.getting-started/_dir.yml +3 -0
- package/.playground/content/2.content-elements/1.text-formatting.md +60 -0
- package/.playground/content/2.content-elements/10.horizontal-rule.md +25 -0
- package/.playground/content/2.content-elements/11.tables.md +25 -0
- package/.playground/content/2.content-elements/12.overview.md +93 -0
- package/.playground/content/2.content-elements/13.text-components.md +36 -0
- package/.playground/content/2.content-elements/2.headings.md +32 -0
- package/.playground/content/2.content-elements/3.paragraphs.md +39 -0
- package/.playground/content/2.content-elements/4.lists.md +37 -0
- package/.playground/content/2.content-elements/5.links.md +17 -0
- package/.playground/content/2.content-elements/6.images.md +17 -0
- package/.playground/content/2.content-elements/7.blockquotes.md +17 -0
- package/.playground/content/2.content-elements/8.code-blocks.md +141 -0
- package/.playground/content/2.content-elements/9.inline-code.md +21 -0
- package/.playground/content/2.content-elements/_dir.yml +3 -0
- package/.playground/content/2.content-elements/index.md +8 -0
- package/.playground/content/3.components/1.index.md +187 -0
- package/.playground/content/3.components/2.docs/_dir.yml +3 -0
- package/.playground/content/3.components/2.docs/alert.md +152 -0
- package/.playground/content/3.components/2.docs/badge.md +131 -0
- package/.playground/content/3.components/2.docs/button-link.md +53 -0
- package/.playground/content/3.components/2.docs/callout.md +16 -0
- package/.playground/content/3.components/2.docs/code-group.md +77 -0
- package/.playground/content/3.components/2.docs/code-snippet.md +129 -0
- package/.playground/content/3.components/2.docs/field-group.md +62 -0
- package/.playground/content/3.components/2.docs/field.md +39 -0
- package/.playground/content/3.components/2.docs/file-tree.md +144 -0
- package/.playground/content/3.components/2.docs/icon.md +94 -0
- package/.playground/content/3.components/2.docs/pm.md +67 -0
- package/.playground/content/3.components/2.docs/read-more.md +44 -0
- package/.playground/content/3.components/2.docs/shortcut.md +36 -0
- package/.playground/content/3.components/2.docs/stack.md +81 -0
- package/.playground/content/3.components/2.docs/steps.md +148 -0
- package/.playground/content/3.components/2.docs/tabs.md +375 -0
- package/.playground/content/3.components/3.page/_dir.yml +2 -0
- package/.playground/content/3.components/3.page/accordion.md +74 -0
- package/.playground/content/3.components/3.page/card-group.md +115 -0
- package/.playground/content/3.components/3.page/card.md +142 -0
- package/.playground/content/3.components/3.page/collapsible.md +61 -0
- package/.playground/content/3.components/3.page/hero-alt.md +118 -0
- package/.playground/content/3.components/3.page/hero.md +60 -0
- package/.playground/content/3.components/3.page/team-card.md +82 -0
- package/.playground/content/3.components/_dir.yml +2 -0
- package/.playground/content/4.development/1.configuration/1.overview.md +297 -0
- package/.playground/content/4.development/1.configuration/2.nuxt-content.md +105 -0
- package/.playground/content/4.development/1.configuration/3.og-image.md +86 -0
- package/.playground/content/4.development/1.configuration/4.edit-link.md +63 -0
- package/.playground/content/4.development/1.configuration/5.banner.md +52 -0
- package/.playground/content/4.development/1.configuration/6.carbon-ads.md +65 -0
- package/.playground/content/4.development/1.configuration/7.umami.md +41 -0
- package/.playground/content/4.development/1.configuration/_dir.yml +3 -0
- package/.playground/content/4.development/2.advanced/1.override.md +49 -0
- package/.playground/content/4.development/2.advanced/2.math.md +89 -0
- package/.playground/content/4.development/2.advanced/_dir.yml +3 -0
- package/.playground/content/4.development/3.themes.md +9 -0
- package/.playground/content/4.development/4.composables.md +38 -0
- package/.playground/content/4.development/5.installation.md +36 -0
- package/.playground/content/4.development/_dir.yml +3 -0
- package/.playground/content/_menu-footer.md +5 -0
- package/.playground/content/index.md +67 -0
- package/.playground/content/test-card.md +187 -0
- package/.playground/content/test.md +88 -0
- package/.playground/content/test2.md +12 -0
- package/.playground/content/test3.md +187 -0
- package/.playground/nuxt.config.ts +52 -0
- package/.playground/public/banner-preview.png +0 -0
- package/.playground/public/favicon.ico +0 -0
- package/.playground/public/front-matter-showcase/authors.png +0 -0
- package/.playground/public/front-matter-showcase/badges.png +0 -0
- package/.playground/public/front-matter-showcase/nav-badges.png +0 -0
- package/.playground/public/hero.png +0 -0
- package/.playground/public/logo-dark.svg +12 -0
- package/.playground/public/logo.svg +12 -0
- package/.playground/public/og-nuxt-seo.png +0 -0
- package/.playground/public/og-nuxt.png +0 -0
- package/.playground/public/og-shadcn-docs-dark.png +0 -0
- package/.playground/public/og-shadcn-docs.png +0 -0
- package/.playground/public/sidebar-default.png +0 -0
- package/.playground/public/sidebar-group.png +0 -0
- package/.playground/public/sidebar-tree.png +0 -0
- package/.playground/uno.config.ts +16 -0
- package/README.md +93 -0
- package/app.vue +59 -0
- package/assets/css/a11y.css +48 -0
- package/assets/css/mdc-editor.css +91 -0
- package/components/A11yModeToggle.vue +23 -0
- package/components/DarkModeToggle.vue +26 -0
- package/components/LinkIcon.vue +32 -0
- package/components/OgImage/ShadcnDocs.vue +55 -0
- package/components/ThemeCustomizer.vue +156 -0
- package/components/ThemePopover.vue +27 -0
- package/components/content/Accordion.vue +18 -0
- package/components/content/AccordionItem.vue +32 -0
- package/components/content/Alert.vue +100 -0
- package/components/content/Badge.vue +52 -0
- package/components/content/ButtonLink.vue +38 -0
- package/components/content/Callout.vue +17 -0
- package/components/content/Card.vue +173 -0
- package/components/content/CardGroup.vue +38 -0
- package/components/content/CodeCopy.vue +52 -0
- package/components/content/CodeGroup._vue +27 -0
- package/components/content/CodeSnippet._vue +78 -0
- package/components/content/Collapsible.vue +80 -0
- package/components/content/Field.vue +53 -0
- package/components/content/FieldGroup.vue +5 -0
- package/components/content/FileTree.vue +110 -0
- package/components/content/FileTreeItem.vue +64 -0
- package/components/content/FileTreeRoot.vue +27 -0
- package/components/content/Hero.vue +154 -0
- package/components/content/HeroAlt.vue +116 -0
- package/components/content/Icon.vue +69 -0
- package/components/content/Kbd.vue +20 -0
- package/components/content/PmInstall.vue +35 -0
- package/components/content/PmRun.vue +31 -0
- package/components/content/PmX.vue +31 -0
- package/components/content/ProseA.vue +21 -0
- package/components/content/ProseBlockquote.vue +5 -0
- package/components/content/ProseCode.vue +121 -0
- package/components/content/ProseCodeInline.vue +24 -0
- package/components/content/ProseEm.vue +5 -0
- package/components/content/ProseH1.vue +27 -0
- package/components/content/ProseH2.vue +22 -0
- package/components/content/ProseH3.vue +21 -0
- package/components/content/ProseH4.vue +21 -0
- package/components/content/ProseH5.vue +21 -0
- package/components/content/ProseH6.vue +21 -0
- package/components/content/ProseHr.vue +3 -0
- package/components/content/ProseImg.vue +42 -0
- package/components/content/ProseLi.vue +5 -0
- package/components/content/ProseOl.vue +5 -0
- package/components/content/ProseP.vue +5 -0
- package/components/content/ProsePre.vue +56 -0
- package/components/content/ProseSection.vue +27 -0
- package/components/content/ProseStrong.vue +5 -0
- package/components/content/ProseTable.vue +7 -0
- package/components/content/ProseTbody.vue +5 -0
- package/components/content/ProseTd.vue +5 -0
- package/components/content/ProseTh.vue +5 -0
- package/components/content/ProseThead.vue +5 -0
- package/components/content/ProseTr.vue +5 -0
- package/components/content/ProseUl.vue +5 -0
- package/components/content/ReadMore.vue +41 -0
- package/components/content/Shortcut.vue +20 -0
- package/components/content/Stack.vue +17 -0
- package/components/content/Steps.vue +23 -0
- package/components/content/Tabs.vue +52 -0
- package/components/content/TabsInner.vue +263 -0
- package/components/content/TeamCard.vue +52 -0
- package/components/content/TeamCardGroup.vue +5 -0
- package/components/content/global/AlertEditor.vue +58 -0
- package/components/content/global/BadgeEditor.vue +56 -0
- package/components/content/global/BrEditor.vue +3 -0
- package/components/content/global/CardEditor.vue +142 -0
- package/components/content/global/CardGroupEditor.vue +50 -0
- package/components/content/global/CodeGroup.vue +13 -0
- package/components/content/global/CodeGroupEditor.vue +50 -0
- package/components/content/global/DivEditor.vue +22 -0
- package/components/content/global/FieldEditor.vue +38 -0
- package/components/content/global/FieldGroupEditor.vue +24 -0
- package/components/content/global/HeroEditor.vue +67 -0
- package/components/content/global/ProseSectionEditor.vue +180 -0
- package/components/content/global/ReadMoreEditor.vue +70 -0
- package/components/content/global/SectionEditor.vue +22 -0
- package/components/content/global/StackEditor.vue +35 -0
- package/components/content/global/StepsEditor.vue +55 -0
- package/components/content/global/Tabs._vue +97 -0
- package/components/content/global/TabsEditor.vue +38 -0
- package/components/layout/Aside.vue +83 -0
- package/components/layout/AsideTree.vue +25 -0
- package/components/layout/AsideTreeItem.vue +86 -0
- package/components/layout/AsideTreeItemButton.vue +32 -0
- package/components/layout/Banner.vue +77 -0
- package/components/layout/Breadcrumb.vue +34 -0
- package/components/layout/DocsFooter.vue +6 -0
- package/components/layout/EditLink.vue +23 -0
- package/components/layout/Footer.vue +80 -0
- package/components/layout/FooterItem.vue +50 -0
- package/components/layout/FooterSubmenuItem.vue +39 -0
- package/components/layout/Header/Logo.vue +30 -0
- package/components/layout/Header/MenuItem.vue +83 -0
- package/components/layout/Header/Nav.vue +112 -0
- package/components/layout/Header/NavMobile.vue +14 -0
- package/components/layout/Header/NavMobileItem.vue +79 -0
- package/components/layout/Header/SubmenuItem.vue +39 -0
- package/components/layout/Header.vue +160 -0
- package/components/layout/LangSwitcher.vue +90 -0
- package/components/layout/MobileNav.vue +44 -0
- package/components/layout/PrevNext.vue +24 -0
- package/components/layout/PrevNextButton.vue +50 -0
- package/components/layout/SearchButton.vue +46 -0
- package/components/layout/SearchDialog.vue +217 -0
- package/components/layout/Title.vue +98 -0
- package/components/layout/Toc.vue +99 -0
- package/components/layout/TocTree.vue +42 -0
- package/components/ui/accordion/Accordion.vue +19 -0
- package/components/ui/accordion/AccordionContent.vue +24 -0
- package/components/ui/accordion/AccordionItem.vue +24 -0
- package/components/ui/accordion/AccordionTrigger.vue +39 -0
- package/components/ui/accordion/index.ts +4 -0
- package/components/ui/alert/Alert.vue +19 -0
- package/components/ui/alert/AlertDescription.vue +14 -0
- package/components/ui/alert/AlertTitle.vue +14 -0
- package/components/ui/alert/index.ts +23 -0
- package/components/ui/avatar/Avatar.vue +25 -0
- package/components/ui/avatar/AvatarFallback.vue +11 -0
- package/components/ui/avatar/AvatarImage.vue +12 -0
- package/components/ui/avatar/index.ts +24 -0
- package/components/ui/badge/Badge.vue +17 -0
- package/components/ui/badge/index.ts +71 -0
- package/components/ui/breadcrumb/Breadcrumb.vue +16 -0
- package/components/ui/breadcrumb/BreadcrumbItem.vue +16 -0
- package/components/ui/breadcrumb/BreadcrumbLink.vue +23 -0
- package/components/ui/breadcrumb/BreadcrumbList.vue +16 -0
- package/components/ui/breadcrumb/BreadcrumbPage.vue +19 -0
- package/components/ui/breadcrumb/BreadcrumbSeparator.vue +23 -0
- package/components/ui/breadcrumb/index.ts +6 -0
- package/components/ui/button/Button.vue +29 -0
- package/components/ui/button/index.ts +35 -0
- package/components/ui/card/Card.vue +21 -0
- package/components/ui/card/CardContent.vue +14 -0
- package/components/ui/card/CardDescription.vue +14 -0
- package/components/ui/card/CardFooter.vue +14 -0
- package/components/ui/card/CardHeader.vue +14 -0
- package/components/ui/card/CardTitle.vue +18 -0
- package/components/ui/card/index.ts +6 -0
- package/components/ui/collapsible/Collapsible.vue +18 -0
- package/components/ui/collapsible/CollapsibleContent.vue +14 -0
- package/components/ui/collapsible/CollapsibleTrigger.vue +11 -0
- package/components/ui/collapsible/index.ts +3 -0
- package/components/ui/command/Command.vue +89 -0
- package/components/ui/command/CommandEmpty.vue +30 -0
- package/components/ui/command/CommandGroup.vue +50 -0
- package/components/ui/command/CommandInput.vue +44 -0
- package/components/ui/command/CommandInputOnly.vue +50 -0
- package/components/ui/command/CommandItem.vue +79 -0
- package/components/ui/command/CommandList.vue +28 -0
- package/components/ui/command/CommandSeparator.vue +24 -0
- package/components/ui/command/index.ts +24 -0
- package/components/ui/dialog/Dialog.vue +14 -0
- package/components/ui/dialog/DialogClose.vue +11 -0
- package/components/ui/dialog/DialogContent.vue +52 -0
- package/components/ui/dialog/DialogDescription.vue +24 -0
- package/components/ui/dialog/DialogFooter.vue +19 -0
- package/components/ui/dialog/DialogHeader.vue +16 -0
- package/components/ui/dialog/DialogScrollContent.vue +61 -0
- package/components/ui/dialog/DialogTitle.vue +29 -0
- package/components/ui/dialog/DialogTrigger.vue +11 -0
- package/components/ui/dialog/index.ts +9 -0
- package/components/ui/input/Input.vue +27 -0
- package/components/ui/input/index.ts +1 -0
- package/components/ui/label/Label.vue +27 -0
- package/components/ui/label/index.ts +1 -0
- package/components/ui/navigation-menu/NavigationMenu.vue +33 -0
- package/components/ui/navigation-menu/NavigationMenuContent.vue +34 -0
- package/components/ui/navigation-menu/NavigationMenuIndicator.vue +24 -0
- package/components/ui/navigation-menu/NavigationMenuItem.vue +11 -0
- package/components/ui/navigation-menu/NavigationMenuLink.vue +19 -0
- package/components/ui/navigation-menu/NavigationMenuList.vue +33 -0
- package/components/ui/navigation-menu/NavigationMenuTrigger.vue +34 -0
- package/components/ui/navigation-menu/NavigationMenuViewport.vue +33 -0
- package/components/ui/navigation-menu/index.ts +14 -0
- package/components/ui/popover/Popover.vue +15 -0
- package/components/ui/popover/PopoverContent.vue +49 -0
- package/components/ui/popover/PopoverTrigger.vue +11 -0
- package/components/ui/popover/index.ts +4 -0
- package/components/ui/scroll-area/ScrollArea.vue +32 -0
- package/components/ui/scroll-area/ScrollBar.vue +41 -0
- package/components/ui/scroll-area/index.ts +2 -0
- package/components/ui/separator/Separator.vue +20 -0
- package/components/ui/separator/index.ts +1 -0
- package/components/ui/sheet/Sheet.vue +14 -0
- package/components/ui/sheet/SheetClose.vue +11 -0
- package/components/ui/sheet/SheetContent.vue +58 -0
- package/components/ui/sheet/SheetDescription.vue +22 -0
- package/components/ui/sheet/SheetFooter.vue +19 -0
- package/components/ui/sheet/SheetHeader.vue +16 -0
- package/components/ui/sheet/SheetTitle.vue +22 -0
- package/components/ui/sheet/SheetTrigger.vue +11 -0
- package/components/ui/sheet/index.ts +31 -0
- package/components/ui/slider/Slider.vue +36 -0
- package/components/ui/slider/index.ts +1 -0
- package/components/ui/tabs/Tabs.vue +15 -0
- package/components/ui/tabs/TabsContent.vue +22 -0
- package/components/ui/tabs/TabsList.vue +25 -0
- package/components/ui/tabs/TabsTrigger.vue +27 -0
- package/components/ui/tabs/index.ts +4 -0
- package/components/ui/textarea/Textarea.vue +27 -0
- package/components/ui/textarea/index.ts +1 -0
- package/components/ui/toast/Toast.vue +28 -0
- package/components/ui/toast/ToastAction.vue +22 -0
- package/components/ui/toast/ToastClose.vue +27 -0
- package/components/ui/toast/ToastDescription.vue +22 -0
- package/components/ui/toast/ToastProvider.vue +11 -0
- package/components/ui/toast/ToastTitle.vue +22 -0
- package/components/ui/toast/ToastViewport.vue +20 -0
- package/components/ui/toast/Toaster.vue +34 -0
- package/components/ui/toast/index.ts +38 -0
- package/components/ui/toast/use-toast.ts +165 -0
- package/components.json +18 -0
- package/composables/useBreadcrumb.ts +47 -0
- package/composables/useCollapsedMap.ts +3 -0
- package/composables/useConfig.ts +227 -0
- package/composables/useEditLink.ts +27 -0
- package/composables/useI18nDocs.ts +114 -0
- package/composables/useMdcMenu.ts +204 -0
- package/composables/usePm.ts +58 -0
- package/composables/useScrollspy.ts +51 -0
- package/composables/useThemes.ts +46 -0
- package/composables/useToast.ts +1 -0
- package/content/index.md +45 -0
- package/eslint.config.js +3 -0
- package/i18n/i18n.config.ts +414 -0
- package/index.d.ts +610 -0
- package/layouts/blank.vue +5 -0
- package/layouts/default.vue +9 -0
- package/layouts/editorial.vue +83 -0
- package/lib/registry/themes.ts +636 -0
- package/lib/uno-preset.ts +143 -0
- package/memory-bank/activeContext.md +17 -0
- package/memory-bank/productContext.md +21 -0
- package/memory-bank/progress.md +16 -0
- package/memory-bank/projectbrief.md +20 -0
- package/memory-bank/systemPatterns.md +25 -0
- package/memory-bank/techContext.md +29 -0
- package/modules/inject-css.ts +40 -0
- package/nuxt.config.ts +124 -0
- package/package.json +71 -0
- package/pages/[...slug].vue +109 -0
- package/pages/admin/[...slug].vue +145 -0
- package/pages/index.vue +24 -0
- package/plugins/injectCssHmr.ts +26 -0
- package/plugins/wordup.ts +130 -0
- package/public/content-doc.json +792 -0
- package/public/iconesjs.svg +4 -0
- package/scripts/buildContentDoc-cli.ts +8 -0
- package/scripts/buildContentDoc.ts +165 -0
- package/tailwind.config.js +1 -0
- package/tsconfig.json +3 -0
- package/uno.config.mjs +58 -0
- package/utils/index.ts +12 -0
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { type Theme, themes } from '@/lib/registry/themes'
|
|
2
|
+
|
|
3
|
+
interface Config {
|
|
4
|
+
theme?: Theme['name']
|
|
5
|
+
radius: number
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export function useThemes() {
|
|
9
|
+
const { value: color } = useColorMode()
|
|
10
|
+
const isDark = color === 'dark'
|
|
11
|
+
|
|
12
|
+
const defaultTheme = useConfig().value.theme
|
|
13
|
+
const config = useCookie<Config>('theme', {
|
|
14
|
+
default: () => ({
|
|
15
|
+
theme: defaultTheme.color as Color,
|
|
16
|
+
radius: defaultTheme.radius,
|
|
17
|
+
}),
|
|
18
|
+
})
|
|
19
|
+
|
|
20
|
+
const theme = computed(() => config.value.theme)
|
|
21
|
+
const radius = computed(() => config.value.radius)
|
|
22
|
+
|
|
23
|
+
const themeClass = computed(() => `theme-${theme.value}`)
|
|
24
|
+
|
|
25
|
+
function setTheme(themeName: Theme['name']) {
|
|
26
|
+
config.value.theme = themeName
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
function setRadius(newRadius: number) {
|
|
30
|
+
config.value.radius = newRadius
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
const themePrimary = computed(() => {
|
|
34
|
+
const t = themes.find(t => t.name === theme.value)
|
|
35
|
+
return `hsl(${t?.cssVars[isDark ? 'dark' : 'light'].primary})`
|
|
36
|
+
})
|
|
37
|
+
|
|
38
|
+
return {
|
|
39
|
+
themeClass,
|
|
40
|
+
theme,
|
|
41
|
+
setTheme,
|
|
42
|
+
radius,
|
|
43
|
+
setRadius,
|
|
44
|
+
themePrimary,
|
|
45
|
+
}
|
|
46
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../components/ui/toast/use-toast'
|
package/content/index.md
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
# Nuxt layer
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
::hero
|
|
5
|
+
---
|
|
6
|
+
announcement:
|
|
7
|
+
title: 'Release v0.8.9'
|
|
8
|
+
icon: '🎉'
|
|
9
|
+
to: https://github.com/ZTL-UwU/shadcn-docs-nuxt/releases/latest
|
|
10
|
+
target: _blank
|
|
11
|
+
actions:
|
|
12
|
+
- name: Get Started
|
|
13
|
+
to: /getting-started
|
|
14
|
+
- name: GitHub
|
|
15
|
+
variant: outline
|
|
16
|
+
to: https://github.com/ZTL-UwU/shadcn-docs-nuxt
|
|
17
|
+
leftIcon: 'lucide:github'
|
|
18
|
+
---
|
|
19
|
+
|
|
20
|
+
#title
|
|
21
|
+
Effortless and Beautiful :br Docs Template.
|
|
22
|
+
|
|
23
|
+
#description
|
|
24
|
+
Beautifully designed Nuxt Content template built with shadcn-vue. :br Customizable. Compatible. Open Source.
|
|
25
|
+
::
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
::accordion{default-value="first-item" collapsible}
|
|
29
|
+
::accordion-item{value="first-item"}
|
|
30
|
+
#title
|
|
31
|
+
Is it accessible?
|
|
32
|
+
|
|
33
|
+
#content
|
|
34
|
+
Yes. It adheres to the WAI-ARIA design pattern.
|
|
35
|
+
::
|
|
36
|
+
|
|
37
|
+
::accordion-item
|
|
38
|
+
#title
|
|
39
|
+
Is it unstyled?
|
|
40
|
+
|
|
41
|
+
#content
|
|
42
|
+
Yes. It's unstyled by default, giving you freedom over the look and feel.
|
|
43
|
+
::
|
|
44
|
+
:accordion-item{title="Can it be animated?" content="Yes! You can use the transition prop to configure the animation."}
|
|
45
|
+
::
|
package/eslint.config.js
ADDED
|
@@ -0,0 +1,414 @@
|
|
|
1
|
+
export default defineI18nConfig(() => ({
|
|
2
|
+
legacy: false,
|
|
3
|
+
// disable missing warn so that the starter doesn't show warnings when only one language is used
|
|
4
|
+
missingWarn: false,
|
|
5
|
+
messages: {
|
|
6
|
+
'en': {
|
|
7
|
+
// Search
|
|
8
|
+
'Search...': 'Search...',
|
|
9
|
+
'Search documentation...': 'Search documentation...',
|
|
10
|
+
'No results found.': 'No results found.',
|
|
11
|
+
|
|
12
|
+
// TOC
|
|
13
|
+
'On This Page': 'On This Page',
|
|
14
|
+
|
|
15
|
+
// Search command
|
|
16
|
+
'Light': 'Light',
|
|
17
|
+
'Dark': 'Dark',
|
|
18
|
+
'System': 'System',
|
|
19
|
+
|
|
20
|
+
// Doc footer
|
|
21
|
+
'Edit this page': 'Edit this page',
|
|
22
|
+
'Back to Top': 'Back to Top',
|
|
23
|
+
|
|
24
|
+
// Collapse Code
|
|
25
|
+
'Expand': 'Expand',
|
|
26
|
+
'Collapse': 'Collapse',
|
|
27
|
+
|
|
28
|
+
// Language Switcher
|
|
29
|
+
'Language': 'Language',
|
|
30
|
+
'Choose your language': 'Choose your language',
|
|
31
|
+
|
|
32
|
+
// Theme Switcher
|
|
33
|
+
'Customize': 'Customize',
|
|
34
|
+
'Pick a style and color for the docs.': 'Pick a style and color for the docs.',
|
|
35
|
+
'Color': 'Color',
|
|
36
|
+
'Radius': 'Radius',
|
|
37
|
+
'Theme': 'Theme',
|
|
38
|
+
|
|
39
|
+
// Copy Code
|
|
40
|
+
'Copied to clipboard!': 'Copied to clipboard!',
|
|
41
|
+
|
|
42
|
+
// Carbon Ads
|
|
43
|
+
'Please support us by disabling your ad blocker.': 'Please support us by disabling your ad blocker.',
|
|
44
|
+
|
|
45
|
+
// Read More
|
|
46
|
+
'Read more at': 'Read more at',
|
|
47
|
+
|
|
48
|
+
// Field
|
|
49
|
+
'required': 'required',
|
|
50
|
+
},
|
|
51
|
+
'fr': {
|
|
52
|
+
// Search
|
|
53
|
+
'Search...': 'Rechercher...',
|
|
54
|
+
'Search documentation...': 'Rechercher dans la documentation...',
|
|
55
|
+
'No results found.': 'Aucun résultat trouvé.',
|
|
56
|
+
|
|
57
|
+
// TOC
|
|
58
|
+
'On This Page': 'Sur cette page',
|
|
59
|
+
|
|
60
|
+
// Search command
|
|
61
|
+
'Light': 'Clair',
|
|
62
|
+
'Dark': 'Sombre',
|
|
63
|
+
'System': 'Système',
|
|
64
|
+
|
|
65
|
+
// Doc footer
|
|
66
|
+
'Edit this page': 'Modifier cette page',
|
|
67
|
+
'Back to Top': 'Retour en haut',
|
|
68
|
+
|
|
69
|
+
// Collapse Code
|
|
70
|
+
'Expand': 'Développer',
|
|
71
|
+
'Collapse': 'Réduire',
|
|
72
|
+
|
|
73
|
+
// Language Switcher
|
|
74
|
+
'Language': 'Langue',
|
|
75
|
+
'Choose your language': 'Choisissez votre langue',
|
|
76
|
+
|
|
77
|
+
// Theme Switcher
|
|
78
|
+
'Customize': 'Personnaliser',
|
|
79
|
+
'Pick a style and color for the docs.': 'Choisissez un style et une couleur pour le site.',
|
|
80
|
+
'Color': 'Couleur',
|
|
81
|
+
'Radius': 'Rayon',
|
|
82
|
+
'Theme': 'Thème',
|
|
83
|
+
|
|
84
|
+
// Copy Code
|
|
85
|
+
'Copied to clipboard!': 'Copié dans le presse-papiers !',
|
|
86
|
+
|
|
87
|
+
// Carbon Ads
|
|
88
|
+
'Please support us by disabling your ad blocker.': 'Veuillez nous soutenir en désactivant votre bloqueur de publicités.',
|
|
89
|
+
|
|
90
|
+
// Read More
|
|
91
|
+
'Read more at': 'Lire la suite sur',
|
|
92
|
+
|
|
93
|
+
// Field
|
|
94
|
+
'required': 'requis',
|
|
95
|
+
},
|
|
96
|
+
'zh-CN': {
|
|
97
|
+
// Search
|
|
98
|
+
'Search...': '搜索...',
|
|
99
|
+
'Search documentation...': '搜索文档...',
|
|
100
|
+
'No results found.': '没有找到结果。',
|
|
101
|
+
|
|
102
|
+
// TOC
|
|
103
|
+
'On This Page': '本页目录',
|
|
104
|
+
|
|
105
|
+
// Search command
|
|
106
|
+
'Light': '明亮',
|
|
107
|
+
'Dark': '黑暗',
|
|
108
|
+
'System': '系统',
|
|
109
|
+
|
|
110
|
+
// Doc footer
|
|
111
|
+
'Edit this page': '编辑此页面',
|
|
112
|
+
'Back to Top': '回到顶部',
|
|
113
|
+
|
|
114
|
+
// Collapse Code
|
|
115
|
+
'Expand': '展开',
|
|
116
|
+
'Collapse': '折叠',
|
|
117
|
+
|
|
118
|
+
// Language Switcher
|
|
119
|
+
'Language': '语言',
|
|
120
|
+
'Choose your language': '选择语言',
|
|
121
|
+
|
|
122
|
+
// Theme Switcher
|
|
123
|
+
'Customize': '自定义',
|
|
124
|
+
'Pick a style and color for the docs.': '选择文档的样式和颜色。',
|
|
125
|
+
'Color': '颜色',
|
|
126
|
+
'Radius': '圆角',
|
|
127
|
+
'Theme': '主题',
|
|
128
|
+
|
|
129
|
+
// Copy Code
|
|
130
|
+
'Copied to clipboard!': '已复制到剪贴板!',
|
|
131
|
+
|
|
132
|
+
// Carbon Ads
|
|
133
|
+
'Please support us by disabling your ad blocker.': '请通过禁用广告拦截器来支持我们。',
|
|
134
|
+
|
|
135
|
+
// Read More
|
|
136
|
+
'Read more at': '阅读更多于',
|
|
137
|
+
|
|
138
|
+
// Field
|
|
139
|
+
'required': '必填',
|
|
140
|
+
},
|
|
141
|
+
'zh-TW': {
|
|
142
|
+
// Search
|
|
143
|
+
'Search...': '搜尋...',
|
|
144
|
+
'Search documentation...': '搜尋文件...',
|
|
145
|
+
'No results found.': '沒有找到結果。',
|
|
146
|
+
|
|
147
|
+
// TOC
|
|
148
|
+
'On This Page': '本頁目錄',
|
|
149
|
+
|
|
150
|
+
// Search command
|
|
151
|
+
'Light': '明亮',
|
|
152
|
+
'Dark': '黑暗',
|
|
153
|
+
'System': '系統',
|
|
154
|
+
|
|
155
|
+
// Doc footer
|
|
156
|
+
'Edit this page': '編輯此頁面',
|
|
157
|
+
'Back to Top': '回到頂部',
|
|
158
|
+
|
|
159
|
+
// Collapse Code
|
|
160
|
+
'Expand': '展開',
|
|
161
|
+
'Collapse': '折疊',
|
|
162
|
+
|
|
163
|
+
// Language Switcher
|
|
164
|
+
'Language': '語言',
|
|
165
|
+
'Choose your language': '選擇語言',
|
|
166
|
+
|
|
167
|
+
// Theme Switcher
|
|
168
|
+
'Customize': '自定義',
|
|
169
|
+
'Pick a style and color for the docs.': '選擇文件的樣式和顏色。',
|
|
170
|
+
'Color': '顏色',
|
|
171
|
+
'Radius': '圓角',
|
|
172
|
+
'Theme': '主題',
|
|
173
|
+
|
|
174
|
+
// Copy Code
|
|
175
|
+
'Copied to clipboard!': '已複製到剪貼簿!',
|
|
176
|
+
|
|
177
|
+
// Carbon Ads
|
|
178
|
+
'Please support us by disabling your ad blocker.': '請通過禁用廣告攔截器來支持我們。',
|
|
179
|
+
|
|
180
|
+
// Read More
|
|
181
|
+
'Read more at': '閱讀更多於',
|
|
182
|
+
|
|
183
|
+
// Field
|
|
184
|
+
'required': '必填',
|
|
185
|
+
},
|
|
186
|
+
'ja': {
|
|
187
|
+
// Search
|
|
188
|
+
'Search...': '検索...',
|
|
189
|
+
'Search documentation...': 'ドキュメントを検索...',
|
|
190
|
+
'No results found.': '結果が見つかりません。',
|
|
191
|
+
|
|
192
|
+
// TOC
|
|
193
|
+
'On This Page': 'このページの目次',
|
|
194
|
+
|
|
195
|
+
// Search command
|
|
196
|
+
'Light': '明るい',
|
|
197
|
+
'Dark': '暗い',
|
|
198
|
+
'System': 'システム',
|
|
199
|
+
|
|
200
|
+
// Doc footer
|
|
201
|
+
'Edit this page': 'このページを編集',
|
|
202
|
+
'Back to Top': 'トップに戻る',
|
|
203
|
+
|
|
204
|
+
// Collapse Code
|
|
205
|
+
'Expand': '展開',
|
|
206
|
+
'Collapse': '折りたたむ',
|
|
207
|
+
|
|
208
|
+
// Language Switcher
|
|
209
|
+
'Language': '言語',
|
|
210
|
+
'Choose your language': '言語を選択',
|
|
211
|
+
|
|
212
|
+
// Theme Switcher
|
|
213
|
+
'Customize': 'カスタマイズ',
|
|
214
|
+
'Pick a style and color for the docs.': 'ドキュメントのスタイルと色を選択してください。',
|
|
215
|
+
'Color': '色',
|
|
216
|
+
'Radius': '半径',
|
|
217
|
+
'Theme': 'テーマ',
|
|
218
|
+
|
|
219
|
+
// Copy Code
|
|
220
|
+
'Copied to clipboard!': 'クリップボードにコピーされました!',
|
|
221
|
+
|
|
222
|
+
// Carbon Ads
|
|
223
|
+
'Please support us by disabling your ad blocker.': '広告ブロッカーを無効にしてサポートしてください。',
|
|
224
|
+
|
|
225
|
+
// Read More
|
|
226
|
+
'Read more at': '続きを読む',
|
|
227
|
+
|
|
228
|
+
// Field
|
|
229
|
+
'required': '必須',
|
|
230
|
+
},
|
|
231
|
+
'ru': {
|
|
232
|
+
// Search
|
|
233
|
+
'Search...': 'Поиск...',
|
|
234
|
+
'Search documentation...': 'Поиск в документации...',
|
|
235
|
+
'No results found.': 'Ничего не найдено.',
|
|
236
|
+
|
|
237
|
+
// TOC
|
|
238
|
+
'On This Page': 'На этой странице',
|
|
239
|
+
|
|
240
|
+
// Search command
|
|
241
|
+
'Light': 'Светлая',
|
|
242
|
+
'Dark': 'Тёмная',
|
|
243
|
+
'System': 'Система',
|
|
244
|
+
|
|
245
|
+
// Doc footer
|
|
246
|
+
'Edit this page': 'Редактировать эту страницу',
|
|
247
|
+
'Back to Top': 'Наверх',
|
|
248
|
+
|
|
249
|
+
// Collapse Code
|
|
250
|
+
'Expand': 'Развернуть',
|
|
251
|
+
'Collapse': 'Свернуть',
|
|
252
|
+
|
|
253
|
+
// Language Switcher
|
|
254
|
+
'Language': 'Язык',
|
|
255
|
+
'Choose your language': 'Выберите язык',
|
|
256
|
+
|
|
257
|
+
// Theme Switcher
|
|
258
|
+
'Customize': 'Настроить',
|
|
259
|
+
'Pick a style and color for the docs.': 'Выберите стиль и цвет документации.',
|
|
260
|
+
'Color': 'Цвет',
|
|
261
|
+
'Radius': 'Радиус',
|
|
262
|
+
'Theme': 'Тема',
|
|
263
|
+
|
|
264
|
+
// Copy Code
|
|
265
|
+
'Copied to clipboard!': 'Скопировано в буфер обмена!',
|
|
266
|
+
|
|
267
|
+
// Carbon Ads
|
|
268
|
+
'Please support us by disabling your ad blocker.': 'Пожалуйста, поддержите нас, отключив блокировщик рекламы.',
|
|
269
|
+
|
|
270
|
+
// Read More
|
|
271
|
+
'Read more at': 'Читать далее на',
|
|
272
|
+
|
|
273
|
+
// Field
|
|
274
|
+
'required': 'обязательно',
|
|
275
|
+
},
|
|
276
|
+
|
|
277
|
+
'ko': {
|
|
278
|
+
// Search
|
|
279
|
+
'Search...': '검색...',
|
|
280
|
+
'Search documentation...': '문서 검색...',
|
|
281
|
+
'No results found.': '결과를 찾을 수 없습니다.',
|
|
282
|
+
|
|
283
|
+
// TOC
|
|
284
|
+
'On This Page': '이 페이지에서',
|
|
285
|
+
|
|
286
|
+
// Search command
|
|
287
|
+
'Light': '라이트',
|
|
288
|
+
'Dark': '다크',
|
|
289
|
+
'System': '시스템',
|
|
290
|
+
|
|
291
|
+
// Doc footer
|
|
292
|
+
'Edit this page': '이 페이지 수정하기',
|
|
293
|
+
'Back to Top': '맨 위로',
|
|
294
|
+
|
|
295
|
+
// Collapse Code
|
|
296
|
+
'Expand': '펼치기',
|
|
297
|
+
'Collapse': '접기',
|
|
298
|
+
|
|
299
|
+
// Language Switcher
|
|
300
|
+
'Language': '언어',
|
|
301
|
+
'Choose your language': '언어를 선택하세요',
|
|
302
|
+
|
|
303
|
+
// Theme Switcher
|
|
304
|
+
'Customize': '사용자 설정',
|
|
305
|
+
'Pick a style and color for the docs.': '문서의 스타일과 색상을 선택하세요.',
|
|
306
|
+
'Color': '색상',
|
|
307
|
+
'Radius': '반경',
|
|
308
|
+
'Theme': '테마',
|
|
309
|
+
|
|
310
|
+
// Copy Code
|
|
311
|
+
'Copied to clipboard!': '클립보드에 복사됨!',
|
|
312
|
+
|
|
313
|
+
// Carbon Ads
|
|
314
|
+
'Please support us by disabling your ad blocker.': '광고 차단기를 꺼서 저희를 지원해 주세요.',
|
|
315
|
+
|
|
316
|
+
// Read More
|
|
317
|
+
'Read more at': '더 읽기:',
|
|
318
|
+
|
|
319
|
+
// Field
|
|
320
|
+
'required': '필수',
|
|
321
|
+
},
|
|
322
|
+
|
|
323
|
+
'hi': {
|
|
324
|
+
// Search
|
|
325
|
+
'Search...': 'खोजें...',
|
|
326
|
+
'Search documentation...': 'दस्तावेज़ खोजें...',
|
|
327
|
+
'No results found.': 'कोई परिणाम नहीं मिला।',
|
|
328
|
+
|
|
329
|
+
// TOC
|
|
330
|
+
'On This Page': 'इस पृष्ठ पर',
|
|
331
|
+
|
|
332
|
+
// Search command
|
|
333
|
+
'Light': 'हल्का',
|
|
334
|
+
'Dark': 'गहरा',
|
|
335
|
+
'System': 'सिस्टम',
|
|
336
|
+
|
|
337
|
+
// Doc footer
|
|
338
|
+
'Edit this page': 'इस पृष्ठ को संपादित करें',
|
|
339
|
+
'Back to Top': 'ऊपर जाएं',
|
|
340
|
+
|
|
341
|
+
// Collapse Code
|
|
342
|
+
'Expand': 'विस्तारित करें',
|
|
343
|
+
'Collapse': 'संकुचित करें',
|
|
344
|
+
|
|
345
|
+
// Language Switcher
|
|
346
|
+
'Language': 'भाषा',
|
|
347
|
+
'Choose your language': 'अपनी भाषा चुनें',
|
|
348
|
+
|
|
349
|
+
// Theme Switcher
|
|
350
|
+
'Customize': 'अनुकूलित करें',
|
|
351
|
+
'Pick a style and color for the docs.': 'दस्तावेज़ों के लिए शैली और रंग चुनें।',
|
|
352
|
+
'Color': 'रंग',
|
|
353
|
+
'Radius': 'त्रिज्या',
|
|
354
|
+
'Theme': 'थीम',
|
|
355
|
+
|
|
356
|
+
// Copy Code
|
|
357
|
+
'Copied to clipboard!': 'क्लिपबोर्ड पर कॉपी किया गया!',
|
|
358
|
+
|
|
359
|
+
// Carbon Ads
|
|
360
|
+
'Please support us by disabling your ad blocker.': 'कृपया हमारा समर्थन करने के लिए अपना विज्ञापन अवरोधक अक्षम करें।',
|
|
361
|
+
|
|
362
|
+
// Read More
|
|
363
|
+
'Read more at': 'और पढ़ें:',
|
|
364
|
+
|
|
365
|
+
// Field
|
|
366
|
+
'required': 'आवश्यक',
|
|
367
|
+
},
|
|
368
|
+
'bn': {
|
|
369
|
+
// Search
|
|
370
|
+
'Search...': 'অনুসন্ধান...',
|
|
371
|
+
'Search documentation...': 'ডকুমেন্টেশন খুঁজুন...',
|
|
372
|
+
'No results found.': 'কোন ফলাফল পাওয়া যায়নি।',
|
|
373
|
+
|
|
374
|
+
// TOC
|
|
375
|
+
'On This Page': 'এই পৃষ্ঠায়',
|
|
376
|
+
|
|
377
|
+
// Search command
|
|
378
|
+
'Light': 'আলো',
|
|
379
|
+
'Dark': 'অন্ধকার',
|
|
380
|
+
'System': 'सिस्टम',
|
|
381
|
+
|
|
382
|
+
// Doc footer
|
|
383
|
+
'Edit this page': 'এই পাতাটি সম্পাদনা করুন',
|
|
384
|
+
'Back to Top': 'উপরে ফিরে যান',
|
|
385
|
+
|
|
386
|
+
// Collapse Code
|
|
387
|
+
'Expand': 'প্রসারিত করুন',
|
|
388
|
+
'Collapse': 'সঙ্কুচিত করুন',
|
|
389
|
+
|
|
390
|
+
// Language Switcher
|
|
391
|
+
'Language': 'ভাষা',
|
|
392
|
+
'Choose your language': 'আপনার ভাষা বেছে নিন',
|
|
393
|
+
|
|
394
|
+
// Theme Switcher
|
|
395
|
+
'Customize': 'কাস্টমাইজ করুন',
|
|
396
|
+
'Pick a style and color for the docs.': 'ডকুমেন্টেশন জন্য একটি স্টাইল এবং রঙ বেছে নিন।',
|
|
397
|
+
'Color': 'রঙ',
|
|
398
|
+
'Radius': 'ব্যাসার্ধ',
|
|
399
|
+
'Theme': 'থিম',
|
|
400
|
+
|
|
401
|
+
// Copy Code
|
|
402
|
+
'Copied to clipboard!': 'ক্লিপবোর্ডে কপি করা হয়েছে!',
|
|
403
|
+
|
|
404
|
+
// Carbon Ads
|
|
405
|
+
'Please support us by disabling your ad blocker.': 'আমাদের সমর্থন করার জন্য অনুগ্রহ করে আপনার ad blocker নিষ্ক্রিয় করুন।',
|
|
406
|
+
|
|
407
|
+
// Read More
|
|
408
|
+
'Read more at': 'আরও পড়ুন:',
|
|
409
|
+
|
|
410
|
+
// Field
|
|
411
|
+
'required': 'অবশ্যক',
|
|
412
|
+
},
|
|
413
|
+
},
|
|
414
|
+
}))
|