Skip to content
This repository has been archived by the owner on Sep 24, 2024. It is now read-only.

Commit

Permalink
Merge pull request #132 from selemondev/add-composables
Browse files Browse the repository at this point in the history
feat: add composables
  • Loading branch information
selemondev authored Sep 12, 2023
2 parents ac0b0f7 + 223ebd2 commit e7556cb
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/nuxt-ui-vue/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "nuxt-ui-vue",
"version": "1.0.0",
"version": "1.0.1-beta.0",
"private": false,
"exports": {
".": {
Expand Down
3 changes: 1 addition & 2 deletions packages/nuxt-ui-vue/src/composables/useShortcuts.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
import process from 'node:process'
import { createSharedComposable, useActiveElement } from '@vueuse/core'
import { computed, onMounted, ref } from 'vue'
import type {} from '@vueuse/shared'

export function _useShortcuts() {
const macOS = computed(() => process?.client && navigator && navigator.userAgent && navigator.userAgent.match(/Macintosh;/))
const macOS = computed(() => navigator && navigator.userAgent && navigator.userAgent.match(/Macintosh;/))

const metaSymbol = ref(' ')

Expand Down
6 changes: 6 additions & 0 deletions packages/nuxt-ui-vue/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@ export * from './components'

export { default as createUI } from './plugin'

export { defineShortcuts } from '@/composables/defineShortcuts'

export { useCopyToClipboard } from '@/composables/useCopyToClipboard'

export { useShortcuts } from '@/composables/useShortcuts'

export { default as useToast } from '@/composables/useToast'

export { NuxtUIVueComponentResolver } from '@/componentResolver'
Expand Down

0 comments on commit e7556cb

Please sign in to comment.