mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-14 12:14:41 +01:00
playground: move pages under /components to match docs
This commit is contained in:
@@ -5,7 +5,7 @@ const playground = ({ name, pro }) => {
|
|||||||
const kebabName = kebabCase(name)
|
const kebabName = kebabCase(name)
|
||||||
|
|
||||||
return {
|
return {
|
||||||
filename: `playground/pages/${kebabName}.vue`,
|
filename: `playground/pages/components/${kebabName}.vue`,
|
||||||
contents: pro
|
contents: pro
|
||||||
? undefined
|
? undefined
|
||||||
: `
|
: `
|
||||||
|
|||||||
@@ -46,7 +46,7 @@ const components = [
|
|||||||
'tooltip'
|
'tooltip'
|
||||||
]
|
]
|
||||||
|
|
||||||
const items = components.map(component => ({ label: upperName(component), to: `/${component}` }))
|
const items = components.map(component => ({ label: upperName(component), to: `/components/${component}` }))
|
||||||
|
|
||||||
function upperName(name: string) {
|
function upperName(name: string) {
|
||||||
return splitByCase(name).map(p => upperFirst(p)).join('')
|
return splitByCase(name).map(p => upperFirst(p)).join('')
|
||||||
|
|||||||
Reference in New Issue
Block a user