diff --git a/.eslintrc.cjs b/.eslintrc.cjs index 6f40582..afb56e3 100644 --- a/.eslintrc.cjs +++ b/.eslintrc.cjs @@ -1,9 +1,9 @@ /* eslint-env node */ -require('@rushstack/eslint-patch/modern-module-resolution') +require('@rushstack/eslint-patch/modern-module-resolution'); module.exports = { root: true, - 'extends': [ + extends: [ 'plugin:vue/vue3-essential', 'eslint:recommended', '@vue/eslint-config-typescript', @@ -12,4 +12,4 @@ module.exports = { parserOptions: { ecmaVersion: 'latest' } -} +}; diff --git a/.prettierrc.json b/.prettierrc.json index 5eb97e4..e56064e 100644 --- a/.prettierrc.json +++ b/.prettierrc.json @@ -5,4 +5,4 @@ "singleQuote": true, "printWidth": 100, "trailingComma": "none" -} \ No newline at end of file +} diff --git a/.vscode/extensions.json b/.vscode/extensions.json index 93ea3e78..0449b97 100644 --- a/.vscode/extensions.json +++ b/.vscode/extensions.json @@ -1,7 +1,3 @@ { - "recommendations": [ - "Vue.volar", - "dbaeumer.vscode-eslint", - "esbenp.prettier-vscode" - ] + "recommendations": ["Vue.volar", "dbaeumer.vscode-eslint", "esbenp.prettier-vscode"] } diff --git a/index.html b/index.html index a888544..dcd6967 100644 --- a/index.html +++ b/index.html @@ -1,9 +1,9 @@ - + - - - + + + Vite App diff --git a/package.json b/package.json index 0298622..28307a2 100644 --- a/package.json +++ b/package.json @@ -45,4 +45,4 @@ "vitepress": "^1.0.2", "vue-tsc": "^2.0.6" } -} \ No newline at end of file +} diff --git a/packages/.vitepress/config.ts b/packages/.vitepress/config.ts index 7f22584..02099cb 100644 --- a/packages/.vitepress/config.ts +++ b/packages/.vitepress/config.ts @@ -10,15 +10,15 @@ const Guide = [ export default defineConfig({ title: 'VueYous', description: 'Craft Your Own VueUse Composables From Scratch', - head: [ - [ - 'link', - { rel: 'icon', href: '/logo.png' } - ] - ], + + head: [['link', { rel: 'icon', href: '/logo.png' }]], + + // https://vitepress.dev/reference/default-theme-config themeConfig: { + search: { provider: 'local' }, logo: '/logo.png', // https://vitepress.dev/reference/default-theme-config + nav: [ { text: 'Home', link: '/' }, { text: 'Guide', items: Guide } diff --git a/packages/core/index.ts b/packages/core/index.ts index cefa026..dab8ed1 100644 --- a/packages/core/index.ts +++ b/packages/core/index.ts @@ -1,2 +1,2 @@ export { useManualRefHistory } from './useManualRefHistory'; -export { useRefHistory } from './useRefHistory'; \ No newline at end of file +export { useRefHistory } from './useRefHistory'; diff --git a/packages/core/useManualRefHistory/demo.vue b/packages/core/useManualRefHistory/demo.vue index 46e4b7b..6bf246c 100644 --- a/packages/core/useManualRefHistory/demo.vue +++ b/packages/core/useManualRefHistory/demo.vue @@ -17,24 +17,14 @@ const { canUndo, canRedo, history, commit, undo, redo } = useManualRefHistory(co