Skip to content
This repository was archived by the owner on Sep 25, 2025. It is now read-only.

Commit d022e88

Browse files
committed
chore: format
1 parent eb9f42f commit d022e88

File tree

13 files changed

+30
-31
lines changed

13 files changed

+30
-31
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,10 @@
3333
"vue-component-type-helpers": "^2.2.10"
3434
},
3535
"devDependencies": {
36-
"@egoist/tailwindcss-icons": "^1.9.0",
37-
"@iconify-json/lucide": "^1.2.39",
3836
"@antfu/eslint-config": "^4.12.0",
3937
"@babel/types": "^7.27.0",
38+
"@egoist/tailwindcss-icons": "^1.9.0",
39+
"@iconify-json/lucide": "^1.2.39",
4040
"@tailwindcss/vite": "^4.1.4",
4141
"@tsconfig/node22": "^22.0.1",
4242
"@types/md5": "^2.3.5",

packages/.vitepress/plugins/components-list.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import type { PluginOption } from 'vite'
2-
import { getComponentsList } from '../utils/component-library/components'
2+
import type { getComponentsList } from '../utils/component-library/components'
33

44
export function ComponentsList(componentsList: ReturnType<typeof getComponentsList>) {
55
const virtualModuleId = 'virtual:components'

packages/.vitepress/plugins/contributors.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import type { PluginOption } from 'vite'
2+
import type { getComponentsList } from '../utils/component-library/components'
23
import { getContributors } from '../utils/contributors'
3-
import { getComponentsList } from '../utils/component-library/components'
44

55
export function Contributors(componentsList: ReturnType<typeof getComponentsList>): PluginOption {
66
const virtualModuleId = 'virtual:contributors'
Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
import { join } from "node:path"
2-
import { ComponentLibrary, ComponentLibraryElement } from "./_types"
3-
import { cwd } from "node:process"
4-
import { globSync } from "node:fs"
1+
import type { ComponentLibrary, ComponentLibraryElement } from './_types'
2+
import { globSync } from 'node:fs'
3+
import { join } from 'node:path'
4+
import { cwd } from 'node:process'
55

6-
export function get(library: ComponentLibrary ,element: ComponentLibraryElement, glob: string, filter?: (path: string) => boolean) {
7-
const componentsDir = join(cwd(), 'packages', `${library}-components`, element)
6+
export function get(library: ComponentLibrary, element: ComponentLibraryElement, glob: string, filter?: (path: string) => boolean) {
7+
const componentsDir = join(cwd(), 'packages', `${library}-components`, element)
88

9-
return globSync(glob, { cwd: componentsDir, exclude: filter })
9+
return globSync(glob, { cwd: componentsDir, exclude: filter })
1010
}
1111

1212
export function getList(library: ComponentLibrary, element: ComponentLibraryElement, glob: string, options: { exclude?: (path: string) => boolean, replace: [RegExp, string] }) {
@@ -19,6 +19,6 @@ export function getList(library: ComponentLibrary, element: ComponentLibraryElem
1919
name,
2020
slug: join('/', `${library}-components`, element, name),
2121
}
22-
}
22+
},
2323
).sort((a, b) => a.name.localeCompare(b.name))
2424
}

packages/.vitepress/utils/component-library/components.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { getList } from './_utils'
33

44
export function getComponentsList(library: ComponentLibrary) {
55
return getList(library, 'components', '**/*.vue', {
6-
exclude: (path) => path.endsWith('demo.vue'),
7-
replace: [/\.vue$/, '']
6+
exclude: path => path.endsWith('demo.vue'),
7+
replace: [/\.vue$/, ''],
88
})
99
}

packages/.vitepress/utils/component-library/composables.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1+
import type { ComponentLibrary } from './_types'
12
import { globSync } from 'node:fs'
23
import { join } from 'node:path'
34
import { cwd } from 'node:process'
4-
import type { ComponentLibrary } from './_types'
55
import { getList } from './_utils'
66

77
export function getComposables(library: ComponentLibrary) {

packages/.vitepress/utils/component-library/index.ts

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
1-
import { ComponentLibrary } from "./_types"
2-
import { getComponentsList } from "./components"
3-
import { getComposablesList } from "./composables"
4-
import { getKeysList } from "./keys"
5-
import { getThemeList } from "./theme"
6-
import { getTypesList } from "./types"
7-
import { getUtilsList } from "./utils"
8-
1+
import type { ComponentLibrary } from './_types'
2+
import { getComponentsList } from './components'
3+
import { getComposablesList } from './composables'
4+
import { getKeysList } from './keys'
5+
import { getThemeList } from './theme'
6+
import { getTypesList } from './types'
7+
import { getUtilsList } from './utils'
98

109
export function getComponentLibrary(library: ComponentLibrary) {
1110
const componentsList = getComponentsList(library)

packages/.vitepress/utils/component-library/keys.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { ComponentLibrary } from './_types'
1+
import type { ComponentLibrary } from './_types'
22
import { getList } from './_utils'
33

44
export function getKeysList(library: ComponentLibrary) {

packages/.vitepress/utils/component-library/theme.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1+
import type { ComponentLibrary } from './_types'
12
import { getList } from './_utils'
2-
import { ComponentLibrary } from './_types'
33

44
export function getThemeList(library: ComponentLibrary) {
55
return getList(library, 'theme', '**/*.ts', {

packages/.vitepress/utils/component-library/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1+
import type { ComponentLibrary } from './_types'
12
import { getList } from './_utils'
2-
import { ComponentLibrary } from './_types'
33

44
export function getTypesList(library: ComponentLibrary) {
55
return getList(library, 'types', '**/*.ts', {

0 commit comments

Comments
 (0)