Skip to content
This repository was archived by the owner on Sep 25, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .vitepress/plugins/changelog.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { PluginOption } from 'vite'
import process from 'node:process'
import { getChangeLog } from '../utils/changelog.js'
import { getChangeLog } from '../utils/changelog'

export function ChangeLog(): PluginOption {
const virtualModuleId = 'virtual:changelog'
Expand Down
2 changes: 1 addition & 1 deletion .vitepress/plugins/components-list.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { PluginOption } from 'vite'
import type { getComponentsList } from '../utils/components.js'
import type { getComponentsList } from '../utils/components'

export function ComponentsList(componentsList: ReturnType<typeof getComponentsList>) {
const virtualModuleId = 'virtual:components'
Expand Down
2 changes: 1 addition & 1 deletion .vitepress/plugins/contributors.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { PluginOption } from 'vite'
import { getContributors } from '../utils/contributors.js'
import { getContributors } from '../utils/contributors'

export function Contributors(): PluginOption {
const virtualModuleId = 'virtual:contributors'
Expand Down
2 changes: 1 addition & 1 deletion .vitepress/theme/components/Changelog.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<script lang="ts" setup>
import changelog from 'virtual:changelog'
import { computed } from 'vue'
import { renderCommitMessage } from '../utils/markdown'
import { renderCommitMessage } from '../utils/markdown.js'

const props = defineProps<{ component: string }>()

Expand Down
1 change: 1 addition & 0 deletions .vitepress/theme/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { h } from 'vue'

import AsideOutlineAfter from './components/AsideOutlineAfter.vue'
import SidebarNavBefore from './components/SidebarNavBefore.vue'

import './assets/css/main.css'
import 'virtual:group-icons.css'

Expand Down
2 changes: 1 addition & 1 deletion .vitepress/utils/changelog.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { git } from './git.js'
import { git } from './git'

export async function getChangeLog(count = 200) {
const logs = (await git.log({ maxCount: count })).all.filter(commit => commit.message.startsWith('feat')
Expand Down
4 changes: 2 additions & 2 deletions .vitepress/utils/contributors.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import md5 from 'md5'
import { getComponents } from './components.js'
import { git } from './git.js'
import { getComponents } from './components'
import { git } from './git'

export async function getContributors() {
const components = getComponents()
Expand Down
4 changes: 2 additions & 2 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import { antfu } from '@antfu/eslint-config'

export default antfu({}, {
files: ['src/**/*.test.ts', 'src/**/*.vue'],
files: ['src/**/*.{test.ts,ts,vue}'],
rules: {
'no-restricted-imports': ['error', {
patterns: [
{
group: ['./', '../'],
message: 'Relative imports are not allowed in `.test.ts` or `.vue` files.',
message: 'Relative imports are not allowed.',
},
],
}],
Expand Down
2 changes: 1 addition & 1 deletion src/composables/useButtonGroup.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { GetObjectField } from '../types/utils'
import type { GetObjectField } from '@/ui/types/utils'
import { buttonGroupInjectionKey } from '@/ui/keys/button-group'
import { computed, inject } from 'vue'

Expand Down
2 changes: 1 addition & 1 deletion src/theme/button.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { buttonGroupVariant } from './button-group'
import { buttonGroupVariant } from '@/ui/theme/button-group'

export default {
slots: {
Expand Down