@lupinum/ginko-docs 0.2.2
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/LICENSE +21 -0
- package/README.md +112 -0
- package/app/app.config.ts +49 -0
- package/app/app.vue +71 -0
- package/app/assets/css/prose.css +1154 -0
- package/app/assets/css/tailwind.css +365 -0
- package/app/components/OgImage/GinkoDocs.satori.vue +117 -0
- package/app/components/content/DocumentPageShell.vue +55 -0
- package/app/components/content/Feedback.vue +97 -0
- package/app/components/content/PageMarkdownCopy.vue +102 -0
- package/app/components/mdc/MdcAccordion.vue +64 -0
- package/app/components/mdc/MdcAccordionItem.vue +51 -0
- package/app/components/mdc/MdcAlert.vue +34 -0
- package/app/components/mdc/MdcAside.vue +27 -0
- package/app/components/mdc/MdcCallout.vue +62 -0
- package/app/components/mdc/MdcCard.vue +186 -0
- package/app/components/mdc/MdcCardGroup.vue +47 -0
- package/app/components/mdc/MdcCenter.vue +71 -0
- package/app/components/mdc/MdcCodeGroup.vue +193 -0
- package/app/components/mdc/MdcColumn.vue +70 -0
- package/app/components/mdc/MdcDocImg.vue +25 -0
- package/app/components/mdc/MdcDropcap.vue +84 -0
- package/app/components/mdc/MdcError.vue +16 -0
- package/app/components/mdc/MdcField.vue +62 -0
- package/app/components/mdc/MdcFieldGroup.vue +18 -0
- package/app/components/mdc/MdcFigure.vue +51 -0
- package/app/components/mdc/MdcIdea.vue +16 -0
- package/app/components/mdc/MdcInfo.vue +16 -0
- package/app/components/mdc/MdcLayout.vue +57 -0
- package/app/components/mdc/MdcNote.vue +16 -0
- package/app/components/mdc/MdcPassage.vue +32 -0
- package/app/components/mdc/MdcQuiz.vue +281 -0
- package/app/components/mdc/MdcQuizOption.vue +91 -0
- package/app/components/mdc/MdcQuizQuestion.vue +226 -0
- package/app/components/mdc/MdcReadMore.vue +90 -0
- package/app/components/mdc/MdcReadMoreGroup.vue +18 -0
- package/app/components/mdc/MdcShortcut.vue +46 -0
- package/app/components/mdc/MdcStep.vue +42 -0
- package/app/components/mdc/MdcSteps.vue +25 -0
- package/app/components/mdc/MdcSuccess.vue +16 -0
- package/app/components/mdc/MdcTab.vue +17 -0
- package/app/components/mdc/MdcTabs.vue +132 -0
- package/app/components/mdc/MdcTimeline.vue +14 -0
- package/app/components/mdc/MdcTimelineItem.vue +49 -0
- package/app/components/mdc/MdcWarning.vue +16 -0
- package/app/components/mdc/icons.ts +10 -0
- package/app/components/prose/ProseA.vue +27 -0
- package/app/components/prose/ProseBlockquote.vue +14 -0
- package/app/components/prose/ProseCode.vue +14 -0
- package/app/components/prose/ProseEm.vue +14 -0
- package/app/components/prose/ProseH1.vue +18 -0
- package/app/components/prose/ProseH2.vue +24 -0
- package/app/components/prose/ProseH3.vue +24 -0
- package/app/components/prose/ProseH4.vue +14 -0
- package/app/components/prose/ProseHr.vue +12 -0
- package/app/components/prose/ProseImg.vue +120 -0
- package/app/components/prose/ProseLi.vue +14 -0
- package/app/components/prose/ProseOl.vue +14 -0
- package/app/components/prose/ProseP.vue +14 -0
- package/app/components/prose/ProsePre.vue +217 -0
- package/app/components/prose/ProseStrong.vue +14 -0
- package/app/components/prose/ProseTable.vue +16 -0
- package/app/components/prose/ProseTbody.vue +14 -0
- package/app/components/prose/ProseTd.vue +14 -0
- package/app/components/prose/ProseTh.vue +14 -0
- package/app/components/prose/ProseThead.vue +14 -0
- package/app/components/prose/ProseTr.vue +14 -0
- package/app/components/prose/ProseUl.vue +14 -0
- package/app/components/site/ModeToggle.vue +123 -0
- package/app/components/site/SiteBanner.vue +56 -0
- package/app/components/site/SiteFooter.vue +80 -0
- package/app/components/site/SiteHeader.vue +250 -0
- package/app/components/site/SiteInteractionLayer.vue +35 -0
- package/app/components/site/SiteLocaleSwitcher.vue +268 -0
- package/app/components/site/SiteLogoMark.vue +12 -0
- package/app/components/site/SiteSkipLink.vue +14 -0
- package/app/components/ui/accordion/Accordion.vue +15 -0
- package/app/components/ui/accordion/AccordionContent.vue +23 -0
- package/app/components/ui/accordion/AccordionItem.vue +24 -0
- package/app/components/ui/accordion/AccordionTrigger.vue +35 -0
- package/app/components/ui/accordion/index.ts +4 -0
- package/app/components/ui/alert/Alert.vue +21 -0
- package/app/components/ui/alert/AlertDescription.vue +22 -0
- package/app/components/ui/alert/AlertTitle.vue +22 -0
- package/app/components/ui/alert/index.ts +34 -0
- package/app/components/ui/badge/Badge.vue +28 -0
- package/app/components/ui/badge/index.ts +24 -0
- package/app/components/ui/button/Button.vue +31 -0
- package/app/components/ui/button/index.ts +35 -0
- package/app/components/ui/card/Card.vue +16 -0
- package/app/components/ui/card/CardAction.vue +17 -0
- package/app/components/ui/card/CardContent.vue +14 -0
- package/app/components/ui/card/CardDescription.vue +14 -0
- package/app/components/ui/card/CardFooter.vue +14 -0
- package/app/components/ui/card/CardHeader.vue +22 -0
- package/app/components/ui/card/CardTitle.vue +14 -0
- package/app/components/ui/card/card-variants.ts +15 -0
- package/app/components/ui/card/index.ts +8 -0
- package/app/components/ui/checkbox/Checkbox.vue +35 -0
- package/app/components/ui/checkbox/index.ts +1 -0
- package/app/components/ui/collapsible/Collapsible.vue +15 -0
- package/app/components/ui/collapsible/CollapsibleContent.vue +25 -0
- package/app/components/ui/collapsible/CollapsibleTrigger.vue +12 -0
- package/app/components/ui/collapsible/index.ts +3 -0
- package/app/components/ui/dialog/Dialog.vue +15 -0
- package/app/components/ui/dialog/DialogClose.vue +12 -0
- package/app/components/ui/dialog/DialogContent.vue +69 -0
- package/app/components/ui/dialog/DialogDescription.vue +21 -0
- package/app/components/ui/dialog/DialogFooter.vue +15 -0
- package/app/components/ui/dialog/DialogHeader.vue +12 -0
- package/app/components/ui/dialog/DialogOverlay.vue +26 -0
- package/app/components/ui/dialog/DialogPortal.vue +12 -0
- package/app/components/ui/dialog/DialogTitle.vue +21 -0
- package/app/components/ui/dialog/DialogTrigger.vue +12 -0
- package/app/components/ui/dialog/index.ts +10 -0
- package/app/components/ui/dropdown-menu/DropdownMenu.vue +15 -0
- package/app/components/ui/dropdown-menu/DropdownMenuCheckboxItem.vue +36 -0
- package/app/components/ui/dropdown-menu/DropdownMenuContent.vue +40 -0
- package/app/components/ui/dropdown-menu/DropdownMenuGroup.vue +12 -0
- package/app/components/ui/dropdown-menu/DropdownMenuItem.vue +41 -0
- package/app/components/ui/dropdown-menu/DropdownMenuLabel.vue +25 -0
- package/app/components/ui/dropdown-menu/DropdownMenuRadioGroup.vue +15 -0
- package/app/components/ui/dropdown-menu/DropdownMenuRadioItem.vue +37 -0
- package/app/components/ui/dropdown-menu/DropdownMenuSeparator.vue +23 -0
- package/app/components/ui/dropdown-menu/DropdownMenuShortcut.vue +17 -0
- package/app/components/ui/dropdown-menu/DropdownMenuSub.vue +15 -0
- package/app/components/ui/dropdown-menu/DropdownMenuSubContent.vue +29 -0
- package/app/components/ui/dropdown-menu/DropdownMenuSubTrigger.vue +31 -0
- package/app/components/ui/dropdown-menu/DropdownMenuTrigger.vue +14 -0
- package/app/components/ui/dropdown-menu/index.ts +16 -0
- package/app/components/ui/input/Input.vue +23 -0
- package/app/components/ui/input/index.ts +1 -0
- package/app/components/ui/kbd/Kbd.vue +23 -0
- package/app/components/ui/kbd/KbdGroup.vue +14 -0
- package/app/components/ui/kbd/index.ts +22 -0
- package/app/components/ui/label/Label.vue +14 -0
- package/app/components/ui/label/index.ts +1 -0
- package/app/components/ui/scroll-area/ScrollArea.vue +39 -0
- package/app/components/ui/scroll-area/ScrollBar.vue +33 -0
- package/app/components/ui/scroll-area/index.ts +2 -0
- package/app/components/ui/separator/Separator.vue +27 -0
- package/app/components/ui/separator/index.ts +1 -0
- package/app/components/ui/sheet/Sheet.vue +15 -0
- package/app/components/ui/sheet/SheetClose.vue +12 -0
- package/app/components/ui/sheet/SheetContent.vue +59 -0
- package/app/components/ui/sheet/SheetDescription.vue +21 -0
- package/app/components/ui/sheet/SheetFooter.vue +12 -0
- package/app/components/ui/sheet/SheetHeader.vue +12 -0
- package/app/components/ui/sheet/SheetOverlay.vue +26 -0
- package/app/components/ui/sheet/SheetTitle.vue +21 -0
- package/app/components/ui/sheet/SheetTrigger.vue +12 -0
- package/app/components/ui/sheet/index.ts +8 -0
- package/app/components/ui/switch/Switch.vue +39 -0
- package/app/components/ui/switch/index.ts +1 -0
- package/app/components/ui/tabs/Tabs.vue +24 -0
- package/app/components/ui/tabs/TabsContent.vue +21 -0
- package/app/components/ui/tabs/TabsList.vue +26 -0
- package/app/components/ui/tabs/TabsTrigger.vue +28 -0
- package/app/components/ui/tabs/index.ts +4 -0
- package/app/components/ui/textarea/Textarea.vue +31 -0
- package/app/components/ui/textarea/index.ts +1 -0
- package/app/composables/site-navigation.utils.ts +80 -0
- package/app/composables/useCanonicalUrl.ts +9 -0
- package/app/composables/useContentRouteAlternates.ts +43 -0
- package/app/composables/useGinkoAnalytics.ts +37 -0
- package/app/composables/useGinkoDocsConfig.ts +6 -0
- package/app/composables/useGinkoOgImage.ts +20 -0
- package/app/composables/useLocalizedPath.ts +12 -0
- package/app/composables/useLocalizedRouteSwitch.ts +31 -0
- package/app/composables/usePageMarkdownActions.ts +79 -0
- package/app/composables/useSchemaJsonLd.ts +25 -0
- package/app/composables/useSiteNavigation.ts +86 -0
- package/app/config/site.utils.ts +36 -0
- package/app/error.vue +125 -0
- package/app/features/docs/components/DocsContributeLinks.vue +65 -0
- package/app/features/docs/components/DocsMobileToc.vue +104 -0
- package/app/features/docs/components/DocsPageContent.vue +188 -0
- package/app/features/docs/components/DocsPageNav.vue +57 -0
- package/app/features/docs/components/DocsSidebar.vue +129 -0
- package/app/features/docs/components/DocsSidebarDropdown.vue +70 -0
- package/app/features/docs/components/DocsSidebarItem.vue +169 -0
- package/app/features/docs/components/DocsSidebarList.vue +35 -0
- package/app/features/docs/components/DocsSidebarTabs.vue +35 -0
- package/app/features/docs/components/DocsToc.vue +60 -0
- package/app/features/docs/composables/useDocsEntryPath.ts +13 -0
- package/app/features/docs/composables/useDocsNavigation.ts +29 -0
- package/app/features/docs/composables/useDocsNavigationData.ts +15 -0
- package/app/features/docs/composables/useScrollspy.ts +67 -0
- package/app/features/docs/docs-navigation.ts +170 -0
- package/app/features/search/command-center.ts +156 -0
- package/app/features/search/components/SiteCommandCenter.vue +323 -0
- package/app/features/search/components/SiteSearchPageHighlight.vue +124 -0
- package/app/features/search/useCommandCenter.ts +300 -0
- package/app/layouts/blog.vue +15 -0
- package/app/layouts/default.vue +12 -0
- package/app/layouts/docs.vue +20 -0
- package/app/lib/errors.ts +84 -0
- package/app/lib/schema-org.ts +38 -0
- package/app/lib/utils.ts +7 -0
- package/app/pages/blog/[slug].vue +211 -0
- package/app/pages/blog/index.vue +106 -0
- package/app/pages/docs/[...slug].vue +10 -0
- package/app/pages/docs/index.vue +23 -0
- package/app/pages/index.vue +140 -0
- package/app/plugins/ssr-width.ts +6 -0
- package/app/utils/content.ts +56 -0
- package/app/utils/index.ts +1 -0
- package/components.ts +9 -0
- package/content.js +175 -0
- package/content.ts +148 -0
- package/i18n/i18n.config.ts +10 -0
- package/i18n/locales.ts +81 -0
- package/i18n/messages/global/banner.ts +8 -0
- package/i18n/messages/global/blog.ts +14 -0
- package/i18n/messages/global/command.ts +44 -0
- package/i18n/messages/global/docs.ts +32 -0
- package/i18n/messages/global/errors.ts +36 -0
- package/i18n/messages/global/feedback.ts +11 -0
- package/i18n/messages/global/index.ts +21 -0
- package/i18n/messages/global/nav.ts +18 -0
- package/i18n/messages/global/site.ts +4 -0
- package/i18n/messages/global/theme.ts +7 -0
- package/i18n/messages/index.ts +20 -0
- package/i18n/messages/localize.ts +35 -0
- package/i18n/messages/source.ts +5 -0
- package/i18n/routes.ts +33 -0
- package/icon-bundle.ts +141 -0
- package/index.d.ts +13 -0
- package/modules/feature-routing.ts +32 -0
- package/nuxt.config.ts +194 -0
- package/package.json +91 -0
- package/runtime/markdown/inline-code-highlight.ts +155 -0
- package/runtime/server/agent-markdown.ts +21 -0
- package/runtime/utils.ts +7 -0
- package/server/mcp/tools/get-page.ts +14 -0
- package/server/mcp/tools/list-pages.ts +10 -0
- package/server/plugins/agent-markdown.ts +6 -0
- package/shared/route-slugs.ts +5 -0
- package/shared/types/app-config.ts +100 -0
- package/tags.ts +204 -0
|
@@ -0,0 +1,365 @@
|
|
|
1
|
+
@import "tailwindcss";
|
|
2
|
+
@import "tw-animate-css";
|
|
3
|
+
@source "../../**/*.{vue,ts}";
|
|
4
|
+
|
|
5
|
+
@custom-variant dark (&:is(.dark *));
|
|
6
|
+
|
|
7
|
+
@theme inline {
|
|
8
|
+
--font-sans: var(--font-body);
|
|
9
|
+
--font-serif: var(--font-heading);
|
|
10
|
+
--font-mono: var(--font-mono);
|
|
11
|
+
--font-body: var(--font-body);
|
|
12
|
+
--font-heading: var(--font-heading);
|
|
13
|
+
--font-accent: var(--font-accent);
|
|
14
|
+
--font-text: var(--font-body);
|
|
15
|
+
--font-strong: var(--font-strong);
|
|
16
|
+
--radius-sm: calc(var(--radius) - 4px);
|
|
17
|
+
--radius-md: calc(var(--radius) - 2px);
|
|
18
|
+
--radius-lg: var(--radius);
|
|
19
|
+
--radius-xl: calc(var(--radius) + 4px);
|
|
20
|
+
--radius-card: var(--home-radius-card);
|
|
21
|
+
--radius-section: var(--home-radius-section);
|
|
22
|
+
--radius-panel: var(--home-radius-panel);
|
|
23
|
+
--color-background: var(--background);
|
|
24
|
+
--color-foreground: var(--foreground);
|
|
25
|
+
--color-card: var(--card);
|
|
26
|
+
--color-card-foreground: var(--card-foreground);
|
|
27
|
+
--color-popover: var(--popover);
|
|
28
|
+
--color-popover-foreground: var(--popover-foreground);
|
|
29
|
+
--color-primary: var(--primary);
|
|
30
|
+
--color-primary-foreground: var(--primary-foreground);
|
|
31
|
+
--color-secondary: var(--secondary);
|
|
32
|
+
--color-secondary-foreground: var(--secondary-foreground);
|
|
33
|
+
--color-muted: var(--muted);
|
|
34
|
+
--color-muted-foreground: var(--muted-foreground);
|
|
35
|
+
--color-accent: var(--accent);
|
|
36
|
+
--color-accent-foreground: var(--accent-foreground);
|
|
37
|
+
--color-destructive: var(--destructive);
|
|
38
|
+
--color-destructive-foreground: var(--destructive-foreground);
|
|
39
|
+
--color-success: var(--success);
|
|
40
|
+
--color-success-foreground: var(--success-foreground);
|
|
41
|
+
--color-warning: var(--warning);
|
|
42
|
+
--color-warning-foreground: var(--warning-foreground);
|
|
43
|
+
--color-info: var(--info);
|
|
44
|
+
--color-info-foreground: var(--info-foreground);
|
|
45
|
+
--color-accent-blue: var(--accent-blue);
|
|
46
|
+
--color-accent-blue-foreground: var(--accent-blue-foreground);
|
|
47
|
+
--color-accent-blue-muted: var(--accent-blue-muted);
|
|
48
|
+
--color-accent-mint: var(--accent-mint);
|
|
49
|
+
--color-accent-mint-foreground: var(--accent-mint-foreground);
|
|
50
|
+
--color-accent-mint-muted: var(--accent-mint-muted);
|
|
51
|
+
--color-accent-yellow: var(--accent-yellow);
|
|
52
|
+
--color-accent-yellow-foreground: var(--accent-yellow-foreground);
|
|
53
|
+
--color-accent-yellow-muted: var(--accent-yellow-muted);
|
|
54
|
+
--color-accent-coral: var(--accent-coral);
|
|
55
|
+
--color-accent-coral-foreground: var(--accent-coral-foreground);
|
|
56
|
+
--color-accent-coral-muted: var(--accent-coral-muted);
|
|
57
|
+
--color-hero-bg: var(--hero-bg);
|
|
58
|
+
--color-hero-bg-muted: var(--hero-bg-muted);
|
|
59
|
+
--color-hero-blue: var(--hero-blue);
|
|
60
|
+
--color-hero-blue-light: var(--hero-blue-light);
|
|
61
|
+
--color-hero-blue-muted: var(--hero-blue-muted);
|
|
62
|
+
--color-hero-blue-dark: var(--hero-blue-dark);
|
|
63
|
+
--color-hero-yellow: var(--hero-yellow);
|
|
64
|
+
--color-hero-yellow-hover: var(--hero-yellow-hover);
|
|
65
|
+
--color-hero-yellow-dark: var(--hero-yellow-dark);
|
|
66
|
+
--color-hero-yellow-muted: var(--hero-yellow-muted);
|
|
67
|
+
--color-hero-mint: var(--hero-mint);
|
|
68
|
+
--color-hero-mint-dark: var(--hero-mint-dark);
|
|
69
|
+
--color-hero-mint-muted: var(--hero-mint-muted);
|
|
70
|
+
--color-hero-mint-text: var(--hero-mint-text);
|
|
71
|
+
--color-hero-coral: var(--hero-coral);
|
|
72
|
+
--color-hero-coral-light: var(--hero-coral-light);
|
|
73
|
+
--color-hero-coral-muted: var(--hero-coral-muted);
|
|
74
|
+
--color-hero-coral-dark: var(--hero-coral-dark);
|
|
75
|
+
--color-hero-coral-text: var(--hero-coral-text);
|
|
76
|
+
--color-hero-check: var(--hero-check);
|
|
77
|
+
--color-hero-white: var(--hero-white);
|
|
78
|
+
--color-code: var(--code);
|
|
79
|
+
--color-code-foreground: var(--code-foreground);
|
|
80
|
+
--color-code-border: var(--code-border);
|
|
81
|
+
--color-border: var(--border);
|
|
82
|
+
--color-input: var(--input);
|
|
83
|
+
--color-ring: var(--ring);
|
|
84
|
+
--color-chart-1: var(--chart-1);
|
|
85
|
+
--color-chart-2: var(--chart-2);
|
|
86
|
+
--color-chart-3: var(--chart-3);
|
|
87
|
+
--color-chart-4: var(--chart-4);
|
|
88
|
+
--color-chart-5: var(--chart-5);
|
|
89
|
+
--animate-collapsible-down: collapsible-down 0.2s ease-out;
|
|
90
|
+
--animate-collapsible-up: collapsible-up 0.2s ease-out;
|
|
91
|
+
|
|
92
|
+
@keyframes collapsible-down {
|
|
93
|
+
from {
|
|
94
|
+
height: 0;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
to {
|
|
98
|
+
height: var(--reka-collapsible-content-height);
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
@keyframes collapsible-up {
|
|
103
|
+
from {
|
|
104
|
+
height: var(--reka-collapsible-content-height);
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
to {
|
|
108
|
+
height: 0;
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
:root {
|
|
114
|
+
/* Docs layout (Fumadocs-style shell) */
|
|
115
|
+
--site-header-height: 3.5rem;
|
|
116
|
+
--docs-sidebar-width-expanded: 268px;
|
|
117
|
+
--docs-sidebar-width: var(--docs-sidebar-width-expanded);
|
|
118
|
+
--docs-toc-width: 16rem;
|
|
119
|
+
|
|
120
|
+
--font-body: "Public Sans", system-ui, sans-serif;
|
|
121
|
+
--font-heading: "Public Sans", system-ui, sans-serif;
|
|
122
|
+
--font-strong: "Public Sans", system-ui, sans-serif;
|
|
123
|
+
--font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
|
|
124
|
+
--font-accent: "Public Sans", system-ui, sans-serif;
|
|
125
|
+
|
|
126
|
+
--radius: 0.625rem;
|
|
127
|
+
--background: oklch(1 0 0);
|
|
128
|
+
--foreground: oklch(0.13 0.028 261.692);
|
|
129
|
+
--card: oklch(1 0 0);
|
|
130
|
+
--card-foreground: oklch(0.13 0.028 261.692);
|
|
131
|
+
--popover: oklch(1 0 0);
|
|
132
|
+
--popover-foreground: oklch(0.13 0.028 261.692);
|
|
133
|
+
--primary: oklch(0.21 0.034 264.665);
|
|
134
|
+
--primary-foreground: oklch(0.985 0.002 247.839);
|
|
135
|
+
--secondary: oklch(0.967 0.003 264.542);
|
|
136
|
+
--secondary-foreground: oklch(0.21 0.034 264.665);
|
|
137
|
+
--muted: oklch(0.967 0.003 264.542);
|
|
138
|
+
--muted-foreground: oklch(0.551 0.027 264.364);
|
|
139
|
+
--accent: oklch(0.967 0.003 264.542);
|
|
140
|
+
--accent-foreground: oklch(0.21 0.034 264.665);
|
|
141
|
+
--destructive: oklch(0.577 0.245 27.325);
|
|
142
|
+
--destructive-foreground: oklch(0.985 0.002 247.839);
|
|
143
|
+
--success: oklch(0.55 0.14 162);
|
|
144
|
+
--success-foreground: oklch(0.985 0.002 247.839);
|
|
145
|
+
--warning: oklch(0.66 0.16 82);
|
|
146
|
+
--warning-foreground: oklch(0.13 0.028 261.692);
|
|
147
|
+
--info: oklch(0.55 0.18 255);
|
|
148
|
+
--info-foreground: oklch(0.985 0.002 247.839);
|
|
149
|
+
--accent-blue: oklch(0.64 0.18 253);
|
|
150
|
+
--accent-blue-foreground: oklch(0.985 0.002 247.839);
|
|
151
|
+
--accent-blue-muted: oklch(0.96 0.025 252);
|
|
152
|
+
--accent-mint: oklch(0.82 0.12 174);
|
|
153
|
+
--accent-mint-foreground: oklch(0.16 0.035 174);
|
|
154
|
+
--accent-mint-muted: oklch(0.96 0.028 174);
|
|
155
|
+
--accent-yellow: oklch(0.86 0.16 88);
|
|
156
|
+
--accent-yellow-foreground: oklch(0.16 0.028 80);
|
|
157
|
+
--accent-yellow-muted: oklch(0.97 0.045 88);
|
|
158
|
+
--accent-coral: oklch(0.68 0.19 30);
|
|
159
|
+
--accent-coral-foreground: oklch(0.985 0.002 247.839);
|
|
160
|
+
--accent-coral-muted: oklch(0.96 0.035 30);
|
|
161
|
+
--hero-bg: #fcfbf9;
|
|
162
|
+
--hero-bg-muted: #f3f1ec;
|
|
163
|
+
--hero-blue: #2c96f6;
|
|
164
|
+
--hero-blue-light: #4ba3f7;
|
|
165
|
+
--hero-blue-muted: #eff6ff;
|
|
166
|
+
--hero-blue-dark: #1881e3;
|
|
167
|
+
--hero-yellow: #ffc53d;
|
|
168
|
+
--hero-yellow-hover: #eab308;
|
|
169
|
+
--hero-yellow-dark: #e5a50a;
|
|
170
|
+
--hero-yellow-muted: #fdf5e3;
|
|
171
|
+
--hero-mint: #89e5d2;
|
|
172
|
+
--hero-mint-dark: #58d0a6;
|
|
173
|
+
--hero-mint-muted: #ecf7f3;
|
|
174
|
+
--hero-mint-text: #2d6a4f;
|
|
175
|
+
--hero-coral: #f85346;
|
|
176
|
+
--hero-coral-light: #f96b5e;
|
|
177
|
+
--hero-coral-muted: #fef2f2;
|
|
178
|
+
--hero-coral-dark: #f53e31;
|
|
179
|
+
--hero-coral-text: #6a221c;
|
|
180
|
+
--hero-check: #4ade80;
|
|
181
|
+
--hero-white: #ffffff;
|
|
182
|
+
--home-radius-card: 24px;
|
|
183
|
+
--home-radius-section: 32px;
|
|
184
|
+
--home-radius-panel: 40px;
|
|
185
|
+
--code: oklch(0.985 0.002 247.839);
|
|
186
|
+
--code-foreground: oklch(0.13 0.028 261.692);
|
|
187
|
+
--code-border: oklch(0.928 0.006 264.531);
|
|
188
|
+
--border: oklch(0.928 0.006 264.531);
|
|
189
|
+
--input: oklch(0.928 0.006 264.531);
|
|
190
|
+
--ring: oklch(0.707 0.022 261.325);
|
|
191
|
+
--chart-1: var(--accent-blue);
|
|
192
|
+
--chart-2: var(--accent-mint);
|
|
193
|
+
--chart-3: var(--accent-yellow);
|
|
194
|
+
--chart-4: var(--accent-coral);
|
|
195
|
+
--chart-5: var(--primary);
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
.dark {
|
|
199
|
+
--background: oklch(0.135 0 0);
|
|
200
|
+
--foreground: oklch(0.985 0 0);
|
|
201
|
+
--card: oklch(0.19 0 0);
|
|
202
|
+
--card-foreground: oklch(0.985 0 0);
|
|
203
|
+
--popover: oklch(0.18 0 0);
|
|
204
|
+
--popover-foreground: oklch(0.985 0 0);
|
|
205
|
+
--primary: oklch(0.92 0 0);
|
|
206
|
+
--primary-foreground: oklch(0.18 0 0);
|
|
207
|
+
--secondary: oklch(0.245 0 0);
|
|
208
|
+
--secondary-foreground: oklch(0.985 0 0);
|
|
209
|
+
--muted: oklch(0.245 0 0);
|
|
210
|
+
--muted-foreground: oklch(0.72 0 0);
|
|
211
|
+
--accent: oklch(0.245 0 0);
|
|
212
|
+
--accent-foreground: oklch(0.985 0 0);
|
|
213
|
+
--destructive: oklch(0.704 0.191 22.216);
|
|
214
|
+
--destructive-foreground: oklch(0.985 0.002 247.839);
|
|
215
|
+
--success: oklch(0.72 0.14 162);
|
|
216
|
+
--success-foreground: oklch(0.13 0.028 261.692);
|
|
217
|
+
--warning: oklch(0.78 0.15 82);
|
|
218
|
+
--warning-foreground: oklch(0.13 0.028 261.692);
|
|
219
|
+
--info: oklch(0.72 0.14 255);
|
|
220
|
+
--info-foreground: oklch(0.13 0.028 261.692);
|
|
221
|
+
--accent-blue: oklch(0.72 0.14 253);
|
|
222
|
+
--accent-blue-foreground: oklch(0.13 0.028 261.692);
|
|
223
|
+
--accent-blue-muted: oklch(0.24 0.055 253);
|
|
224
|
+
--accent-mint: oklch(0.78 0.11 174);
|
|
225
|
+
--accent-mint-foreground: oklch(0.13 0.028 261.692);
|
|
226
|
+
--accent-mint-muted: oklch(0.23 0.05 174);
|
|
227
|
+
--accent-yellow: oklch(0.84 0.15 88);
|
|
228
|
+
--accent-yellow-foreground: oklch(0.13 0.028 261.692);
|
|
229
|
+
--accent-yellow-muted: oklch(0.24 0.055 88);
|
|
230
|
+
--accent-coral: oklch(0.72 0.17 30);
|
|
231
|
+
--accent-coral-foreground: oklch(0.13 0.028 261.692);
|
|
232
|
+
--accent-coral-muted: oklch(0.24 0.06 30);
|
|
233
|
+
--hero-bg: #111111;
|
|
234
|
+
--hero-bg-muted: #1a1a1a;
|
|
235
|
+
--hero-blue: #58adff;
|
|
236
|
+
--hero-blue-light: #85c5ff;
|
|
237
|
+
--hero-blue-muted: #202020;
|
|
238
|
+
--hero-blue-dark: #8fcaff;
|
|
239
|
+
--hero-yellow: #ffd166;
|
|
240
|
+
--hero-yellow-hover: #f5bd39;
|
|
241
|
+
--hero-yellow-dark: #f6c24b;
|
|
242
|
+
--hero-yellow-muted: #222222;
|
|
243
|
+
--hero-mint: #7fe4cf;
|
|
244
|
+
--hero-mint-dark: #8beedb;
|
|
245
|
+
--hero-mint-muted: #202020;
|
|
246
|
+
--hero-mint-text: #9ff2df;
|
|
247
|
+
--hero-coral: #ff7368;
|
|
248
|
+
--hero-coral-light: #ff8d84;
|
|
249
|
+
--hero-coral-muted: #222222;
|
|
250
|
+
--hero-coral-dark: #ff8f86;
|
|
251
|
+
--hero-coral-text: #ffb3ad;
|
|
252
|
+
--hero-check: #86efac;
|
|
253
|
+
--hero-white: #f8fafc;
|
|
254
|
+
--home-radius-card: 24px;
|
|
255
|
+
--home-radius-section: 32px;
|
|
256
|
+
--home-radius-panel: 40px;
|
|
257
|
+
--code: oklch(0.18 0.02 260);
|
|
258
|
+
--code-foreground: oklch(0.985 0.002 247.839);
|
|
259
|
+
--code-border: oklch(1 0 0 / 12%);
|
|
260
|
+
--border: oklch(1 0 0 / 10%);
|
|
261
|
+
--input: oklch(1 0 0 / 15%);
|
|
262
|
+
--ring: oklch(0.551 0.027 264.364);
|
|
263
|
+
--chart-1: oklch(0.488 0.243 264.376);
|
|
264
|
+
--chart-2: oklch(0.696 0.17 162.48);
|
|
265
|
+
--chart-3: oklch(0.769 0.188 70.08);
|
|
266
|
+
--chart-4: oklch(0.627 0.265 303.9);
|
|
267
|
+
--chart-5: oklch(0.645 0.246 16.439);
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
@layer base {
|
|
271
|
+
* {
|
|
272
|
+
@apply border-border outline-ring/50;
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
body {
|
|
276
|
+
@apply bg-background text-foreground;
|
|
277
|
+
font-family: var(--font-body);
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
h1,
|
|
281
|
+
h2,
|
|
282
|
+
h3,
|
|
283
|
+
h4,
|
|
284
|
+
h5,
|
|
285
|
+
h6 {
|
|
286
|
+
font-family: var(--font-heading);
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
code,
|
|
290
|
+
kbd,
|
|
291
|
+
pre,
|
|
292
|
+
samp {
|
|
293
|
+
font-family: var(--font-mono);
|
|
294
|
+
}
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
@layer components {
|
|
298
|
+
.accordion-content {
|
|
299
|
+
overflow: hidden;
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
.accordion-content[data-state="open"] {
|
|
303
|
+
animation: accordion-slide-down 300ms cubic-bezier(0.215, 0.61, 0.355, 1);
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
.accordion-content[data-state="closed"] {
|
|
307
|
+
animation: accordion-slide-up 300ms cubic-bezier(0.215, 0.61, 0.355, 1);
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
.site-container {
|
|
311
|
+
@apply mx-auto w-full max-w-5xl px-4 md:px-6;
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
.site-section {
|
|
315
|
+
@apply py-16 sm:py-24;
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
.site-section-hero {
|
|
319
|
+
@apply py-20 sm:py-28 lg:py-32;
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
.site-card {
|
|
323
|
+
@apply rounded-lg border border-border bg-card p-6;
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
.site-card-interactive {
|
|
327
|
+
@apply transition-all hover:border-primary/30 hover:shadow-sm;
|
|
328
|
+
}
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
@keyframes accordion-slide-down {
|
|
332
|
+
from {
|
|
333
|
+
height: 0;
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
to {
|
|
337
|
+
height: var(--reka-accordion-content-height);
|
|
338
|
+
}
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
@keyframes accordion-slide-up {
|
|
342
|
+
from {
|
|
343
|
+
height: var(--reka-accordion-content-height);
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
to {
|
|
347
|
+
height: 0;
|
|
348
|
+
}
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
@media (prefers-reduced-motion: reduce) {
|
|
352
|
+
*,
|
|
353
|
+
::before,
|
|
354
|
+
::after {
|
|
355
|
+
scroll-behavior: auto !important;
|
|
356
|
+
transition-duration: 0.01ms !important;
|
|
357
|
+
animation-duration: 0.01ms !important;
|
|
358
|
+
animation-iteration-count: 1 !important;
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
.accordion-content[data-state="open"],
|
|
362
|
+
.accordion-content[data-state="closed"] {
|
|
363
|
+
animation: none;
|
|
364
|
+
}
|
|
365
|
+
}
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import { computed } from "vue";
|
|
3
|
+
import { useAppConfig } from "#imports";
|
|
4
|
+
import type { GinkoDocsAppConfig } from "../../../shared/types/app-config";
|
|
5
|
+
import { getLocalizedSiteText } from "../../config/site.utils";
|
|
6
|
+
|
|
7
|
+
const props = withDefaults(
|
|
8
|
+
defineProps<{
|
|
9
|
+
title?: string;
|
|
10
|
+
description?: string;
|
|
11
|
+
siteName?: string;
|
|
12
|
+
logo?: string;
|
|
13
|
+
locale?: string;
|
|
14
|
+
colorBg?: string;
|
|
15
|
+
colorFg?: string;
|
|
16
|
+
colorMuted?: string;
|
|
17
|
+
colorAccent?: string;
|
|
18
|
+
}>(),
|
|
19
|
+
{
|
|
20
|
+
title: "",
|
|
21
|
+
description: "",
|
|
22
|
+
siteName: undefined,
|
|
23
|
+
logo: undefined,
|
|
24
|
+
locale: "en",
|
|
25
|
+
colorBg: "#ffffff",
|
|
26
|
+
colorFg: "#0f172a",
|
|
27
|
+
colorMuted: "#64748b",
|
|
28
|
+
colorAccent: "#2563eb",
|
|
29
|
+
},
|
|
30
|
+
);
|
|
31
|
+
|
|
32
|
+
const config = useAppConfig().ginkoDocs as GinkoDocsAppConfig;
|
|
33
|
+
|
|
34
|
+
const resolvedSiteName = computed(
|
|
35
|
+
() => props.siteName ?? getLocalizedSiteText(config.site.name, props.locale),
|
|
36
|
+
);
|
|
37
|
+
const resolvedLogo = computed(() => props.logo ?? config.site.logo?.light);
|
|
38
|
+
const displayTitle = computed(() => (props.title || resolvedSiteName.value).slice(0, 120));
|
|
39
|
+
const displayDescription = computed(() => (props.description ?? "").slice(0, 180));
|
|
40
|
+
</script>
|
|
41
|
+
|
|
42
|
+
<template>
|
|
43
|
+
<div
|
|
44
|
+
:style="{
|
|
45
|
+
width: '100%',
|
|
46
|
+
height: '100%',
|
|
47
|
+
display: 'flex',
|
|
48
|
+
flexDirection: 'column',
|
|
49
|
+
justifyContent: 'space-between',
|
|
50
|
+
padding: '72px 80px',
|
|
51
|
+
backgroundColor: colorBg,
|
|
52
|
+
fontFamily: 'Public Sans',
|
|
53
|
+
}"
|
|
54
|
+
>
|
|
55
|
+
<div :style="{ display: 'flex', alignItems: 'center', gap: '20px' }">
|
|
56
|
+
<img v-if="resolvedLogo" :src="resolvedLogo" :width="48" :height="48" alt="" />
|
|
57
|
+
<div
|
|
58
|
+
:style="{
|
|
59
|
+
display: 'flex',
|
|
60
|
+
fontSize: '30px',
|
|
61
|
+
fontWeight: 700,
|
|
62
|
+
color: colorFg,
|
|
63
|
+
}"
|
|
64
|
+
>
|
|
65
|
+
{{ resolvedSiteName }}
|
|
66
|
+
</div>
|
|
67
|
+
</div>
|
|
68
|
+
|
|
69
|
+
<div :style="{ display: 'flex', flexDirection: 'column', gap: '24px' }">
|
|
70
|
+
<div
|
|
71
|
+
:style="{
|
|
72
|
+
display: 'flex',
|
|
73
|
+
fontSize: displayTitle.length > 50 ? '56px' : '68px',
|
|
74
|
+
fontWeight: 700,
|
|
75
|
+
lineHeight: 1.15,
|
|
76
|
+
color: colorFg,
|
|
77
|
+
letterSpacing: '-0.02em',
|
|
78
|
+
}"
|
|
79
|
+
>
|
|
80
|
+
{{ displayTitle }}
|
|
81
|
+
</div>
|
|
82
|
+
<div
|
|
83
|
+
v-if="displayDescription"
|
|
84
|
+
:style="{
|
|
85
|
+
display: 'flex',
|
|
86
|
+
fontSize: '30px',
|
|
87
|
+
lineHeight: 1.4,
|
|
88
|
+
color: colorMuted,
|
|
89
|
+
}"
|
|
90
|
+
>
|
|
91
|
+
{{ displayDescription }}
|
|
92
|
+
</div>
|
|
93
|
+
</div>
|
|
94
|
+
|
|
95
|
+
<div :style="{ display: 'flex', alignItems: 'center', gap: '16px' }">
|
|
96
|
+
<div
|
|
97
|
+
:style="{
|
|
98
|
+
display: 'flex',
|
|
99
|
+
width: '56px',
|
|
100
|
+
height: '8px',
|
|
101
|
+
borderRadius: '9999px',
|
|
102
|
+
backgroundColor: colorAccent,
|
|
103
|
+
}"
|
|
104
|
+
/>
|
|
105
|
+
<div
|
|
106
|
+
:style="{
|
|
107
|
+
display: 'flex',
|
|
108
|
+
width: '20px',
|
|
109
|
+
height: '8px',
|
|
110
|
+
borderRadius: '9999px',
|
|
111
|
+
backgroundColor: colorMuted,
|
|
112
|
+
opacity: 0.4,
|
|
113
|
+
}"
|
|
114
|
+
/>
|
|
115
|
+
</div>
|
|
116
|
+
</div>
|
|
117
|
+
</template>
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import type { FlatTocItem } from "#ginko-docs/utils/content";
|
|
3
|
+
import { useI18n } from "#imports";
|
|
4
|
+
|
|
5
|
+
const props = withDefaults(
|
|
6
|
+
defineProps<{
|
|
7
|
+
/** Server-provided table of contents from content metadata. */
|
|
8
|
+
tocItems?: FlatTocItem[];
|
|
9
|
+
tocTitle?: string;
|
|
10
|
+
/** Inner wrapper (e.g. imprint: `max-w-2xl mx-auto w-full`). Default: full width of column. */
|
|
11
|
+
contentClass?: string;
|
|
12
|
+
/** Horizontal page gutter; set false when the parent layout already pads (e.g. blog). */
|
|
13
|
+
padded?: boolean;
|
|
14
|
+
}>(),
|
|
15
|
+
{
|
|
16
|
+
tocItems: () => [],
|
|
17
|
+
contentClass: "w-full",
|
|
18
|
+
padded: true,
|
|
19
|
+
},
|
|
20
|
+
);
|
|
21
|
+
|
|
22
|
+
const { t } = useI18n();
|
|
23
|
+
</script>
|
|
24
|
+
|
|
25
|
+
<template>
|
|
26
|
+
<div class="mx-auto w-full max-w-3xl" :class="padded ? 'px-4 md:px-6' : undefined">
|
|
27
|
+
<div class="pt-8 pb-12 md:pt-10 md:pb-16 lg:pb-20">
|
|
28
|
+
<div :class="contentClass">
|
|
29
|
+
<nav
|
|
30
|
+
v-if="tocItems.length > 0"
|
|
31
|
+
:aria-label="tocTitle ?? t('docs.toc')"
|
|
32
|
+
class="not-prose mb-8 border-b border-border pb-8"
|
|
33
|
+
>
|
|
34
|
+
<p class="mb-3 text-xs font-medium tracking-wider text-muted-foreground uppercase">
|
|
35
|
+
{{ tocTitle ?? t("docs.toc") }}
|
|
36
|
+
</p>
|
|
37
|
+
<ul class="grid grid-cols-1 gap-x-6 gap-y-1.5 sm:grid-cols-2" role="list">
|
|
38
|
+
<li v-for="item in tocItems" :key="item.id">
|
|
39
|
+
<a
|
|
40
|
+
:href="`#${item.id}`"
|
|
41
|
+
class="text-sm leading-snug text-foreground/80 transition-colors hover:text-foreground"
|
|
42
|
+
>
|
|
43
|
+
{{ item.label }}
|
|
44
|
+
</a>
|
|
45
|
+
</li>
|
|
46
|
+
</ul>
|
|
47
|
+
</nav>
|
|
48
|
+
|
|
49
|
+
<article class="[&_h2[id]]:scroll-mt-28">
|
|
50
|
+
<slot />
|
|
51
|
+
</article>
|
|
52
|
+
</div>
|
|
53
|
+
</div>
|
|
54
|
+
</div>
|
|
55
|
+
</template>
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import { Button } from "#ginko-docs/components/ui/button";
|
|
3
|
+
import { computed, ref } from "vue";
|
|
4
|
+
import { useI18n, useRoute } from "#imports";
|
|
5
|
+
import { useGinkoAnalytics } from "#ginko-docs/composables/useGinkoAnalytics";
|
|
6
|
+
import { useGinkoDocsConfig } from "#ginko-docs/composables/useGinkoDocsConfig";
|
|
7
|
+
|
|
8
|
+
withDefaults(
|
|
9
|
+
defineProps<{
|
|
10
|
+
label?: string;
|
|
11
|
+
}>(),
|
|
12
|
+
{
|
|
13
|
+
label: undefined,
|
|
14
|
+
},
|
|
15
|
+
);
|
|
16
|
+
const { t, locale } = useI18n();
|
|
17
|
+
const route = useRoute();
|
|
18
|
+
|
|
19
|
+
const config = useGinkoDocsConfig();
|
|
20
|
+
const enabled = config.feedback.enabled;
|
|
21
|
+
const { track } = useGinkoAnalytics();
|
|
22
|
+
|
|
23
|
+
type Sentiment = "positive" | "negative";
|
|
24
|
+
|
|
25
|
+
const sentiment = ref<Sentiment | null>(null);
|
|
26
|
+
|
|
27
|
+
const issueUrl = computed(() => {
|
|
28
|
+
const repository = config.repository;
|
|
29
|
+
if (!repository) return null;
|
|
30
|
+
const url = new URL(`${repository.url.replace(/\/$/, "")}/issues/new`);
|
|
31
|
+
url.searchParams.set("title", t("feedback.issueTitle", { path: route.path }));
|
|
32
|
+
url.searchParams.set("body", t("docs.issueBody", { path: route.path }));
|
|
33
|
+
return url.toString();
|
|
34
|
+
});
|
|
35
|
+
|
|
36
|
+
function selectSentiment(s: Sentiment) {
|
|
37
|
+
if (sentiment.value !== null) return;
|
|
38
|
+
sentiment.value = s;
|
|
39
|
+
track("docs-feedback", {
|
|
40
|
+
path: route.path,
|
|
41
|
+
helpful: s === "positive" ? "yes" : "no",
|
|
42
|
+
locale: locale.value,
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
</script>
|
|
46
|
+
|
|
47
|
+
<template>
|
|
48
|
+
<div v-if="enabled" class="mt-14 border-y border-border py-5">
|
|
49
|
+
<Transition
|
|
50
|
+
enter-active-class="transition-opacity duration-200"
|
|
51
|
+
enter-from-class="opacity-0"
|
|
52
|
+
enter-to-class="opacity-100"
|
|
53
|
+
>
|
|
54
|
+
<div v-if="sentiment !== null" class="flex flex-wrap items-center gap-x-3 gap-y-1 py-1">
|
|
55
|
+
<p class="text-sm text-muted-foreground">
|
|
56
|
+
{{ t("feedback.thanks") }}
|
|
57
|
+
</p>
|
|
58
|
+
<a
|
|
59
|
+
v-if="sentiment === 'negative' && issueUrl"
|
|
60
|
+
:href="issueUrl"
|
|
61
|
+
target="_blank"
|
|
62
|
+
rel="noopener noreferrer"
|
|
63
|
+
class="inline-flex items-center gap-1.5 text-sm font-medium text-foreground underline underline-offset-2 transition-colors hover:text-muted-foreground focus-visible:rounded-sm focus-visible:ring-2 focus-visible:ring-ring focus-visible:outline-none"
|
|
64
|
+
>
|
|
65
|
+
<Icon name="lucide:circle-alert" class="size-4" aria-hidden="true" />
|
|
66
|
+
{{ t("docs.reportIssue") }}
|
|
67
|
+
</a>
|
|
68
|
+
</div>
|
|
69
|
+
</Transition>
|
|
70
|
+
|
|
71
|
+
<div v-if="sentiment === null" class="flex flex-wrap items-center gap-3">
|
|
72
|
+
<p class="text-sm font-semibold text-foreground">{{ label ?? t("feedback.label") }}</p>
|
|
73
|
+
|
|
74
|
+
<div class="flex items-center gap-2">
|
|
75
|
+
<Button
|
|
76
|
+
variant="outline"
|
|
77
|
+
size="sm"
|
|
78
|
+
class="h-9 w-20 rounded-full px-4 text-muted-foreground shadow-sm"
|
|
79
|
+
@click="selectSentiment('positive')"
|
|
80
|
+
>
|
|
81
|
+
<Icon name="lucide:thumbs-up" class="shrink-0" aria-hidden="true" />
|
|
82
|
+
{{ t("feedback.yes") }}
|
|
83
|
+
</Button>
|
|
84
|
+
|
|
85
|
+
<Button
|
|
86
|
+
variant="outline"
|
|
87
|
+
size="sm"
|
|
88
|
+
class="h-9 w-20 rounded-full px-4 text-muted-foreground shadow-sm"
|
|
89
|
+
@click="selectSentiment('negative')"
|
|
90
|
+
>
|
|
91
|
+
<Icon name="lucide:thumbs-down" class="shrink-0" aria-hidden="true" />
|
|
92
|
+
{{ t("feedback.no") }}
|
|
93
|
+
</Button>
|
|
94
|
+
</div>
|
|
95
|
+
</div>
|
|
96
|
+
</div>
|
|
97
|
+
</template>
|