mirror of
https://github.com/catlog22/Claude-Code-Workflow.git
synced 2026-03-03 15:43:11 +08:00
feat: add documentation for Checkbox, Input, and Select components; enhance Queue and Terminal features
- Introduced Checkbox component documentation in Chinese, covering usage, properties, and examples. - Added Input component documentation in Chinese, detailing its attributes and various states. - Created Select component documentation in Chinese, including subcomponents and usage examples. - Developed Queue management documentation, outlining its core functionalities and component structure. - Added Terminal dashboard documentation, describing its layout, core features, and usage examples. - Documented team workflows, detailing various team skills and their applications in project management.
This commit is contained in:
@@ -80,7 +80,7 @@ onMounted(async () => {
|
||||
}
|
||||
} else {
|
||||
// Dynamically import demo component from file
|
||||
const demoModule = await import(`../demos/${props.name}.tsx`)
|
||||
const demoModule = await import(`../../demos/${props.name}.tsx`)
|
||||
const DemoComponent = demoModule.default || demoModule[props.name]
|
||||
|
||||
if (!DemoComponent) {
|
||||
@@ -94,7 +94,7 @@ onMounted(async () => {
|
||||
|
||||
// Extract source code
|
||||
try {
|
||||
const rawModule = await import(`../demos/${props.name}.tsx?raw`)
|
||||
const rawModule = await import(`../../demos/${props.name}.tsx?raw`)
|
||||
sourceCode.value = rawModule.default || rawModule
|
||||
} catch {
|
||||
sourceCode.value = '// Source code not available'
|
||||
|
||||
@@ -27,13 +27,20 @@ const currentLocale = computed(() => {
|
||||
|
||||
// Get alternate language link for current page
|
||||
const getAltLink = (localeCode: string) => {
|
||||
if (localeCode === 'root') localeCode = ''
|
||||
// Get current path and strip any existing locale prefix
|
||||
let currentPath = page.value.relativePath
|
||||
|
||||
// Get current page path without locale prefix
|
||||
const currentPath = page.value.relativePath
|
||||
const altPath = localeCode ? `/${localeCode}/${currentPath}` : `/${currentPath}`
|
||||
// Strip locale prefixes (zh/, zh-CN/) from path
|
||||
currentPath = currentPath.replace(/^(zh-CN|zh)\//, '')
|
||||
|
||||
return altPath
|
||||
// Remove .md extension for clean URL (VitePress uses .html)
|
||||
currentPath = currentPath.replace(/\.md$/, '')
|
||||
|
||||
// Construct target path with locale prefix
|
||||
if (localeCode === 'root' || localeCode === '') {
|
||||
return `/${currentPath}`
|
||||
}
|
||||
return `/${localeCode}/${currentPath}`
|
||||
}
|
||||
|
||||
const switchLanguage = (localeCode: string) => {
|
||||
|
||||
Reference in New Issue
Block a user