Skip to content

Commit

Permalink
Merge branch 'release/v0.25.2'
Browse files Browse the repository at this point in the history
  • Loading branch information
holtwick committed Dec 12, 2024
2 parents 7d8eef6 + 2718a15 commit b6d9ee4
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 6 deletions.
5 changes: 5 additions & 0 deletions lib/basic/i18n.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import { inject } from 'vue'

export function t(s: string, ...args: any): string {
return (inject('t') ?? ((s: string) => String(s))) as any
}
5 changes: 3 additions & 2 deletions lib/basic/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
export * from './_types'
export * from './directives'
export * from './formatters'
export * from './i18n'
export * from './lazy-data'
export * from './log'
export { default as OuiButton } from './oui-button.vue'
Expand All @@ -14,13 +15,13 @@ export { default as OuiDemo } from './oui-demo.vue'
export { default as OuiDraggable } from './oui-draggable.vue'
export { default as OuiFile } from './oui-file.vue'
export { default as OuiFormItem } from './oui-form-item.vue'
export { default as OuiInput } from './oui-input.vue'
export { default as OuiInputGroup } from './oui-input-group.vue'
export { default as OuiInputNumber } from './oui-input-number.vue'
export { default as OuiInput } from './oui-input.vue'
export { default as OuiLog } from './oui-log.vue'
export { default as OuiNotice } from './oui-notice.vue'
export { default as OuiPassword } from './oui-password.vue'
export { default as OuiPasswordMeter } from './oui-password-meter.vue'
export { default as OuiPassword } from './oui-password.vue'
export { default as OuiQrcode } from './oui-qrcode.vue'
export { default as OuiResizeable } from './oui-resizeable.vue'
export { default as OuiSelect } from './oui-select.vue'
Expand Down
2 changes: 1 addition & 1 deletion lib/basic/signal.demo.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ function useSignalRef<T>(signal: Signal<T>, readwrite = true): Ref<UnwrapRef<T>>
onUnmounted(signal.on(v => signalVue.value = v as any))
if (readwrite)
watch(signalVue, v => signal.set(v as any))
return signalVue
return signalVue as Ref<UnwrapRef<T>>
}
// Connect
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "oui-kit",
"type": "module",
"version": "0.25.1",
"version": "0.25.2",
"author": {
"email": "[email protected]",
"name": "Dirk Holtwick",
Expand Down Expand Up @@ -76,7 +76,7 @@
"@floating-ui/vue": "^1.1.5",
"@vueuse/core": "^12.0.0",
"vue": "^3.5.13",
"zeed": "^0.26.2"
"zeed": "^0.26.3"
},
"devDependencies": {
"@antfu/eslint-config": "^3.11",
Expand All @@ -91,7 +91,7 @@
"vite": "^6.0.3",
"vite-plugin-dts": "^4.3.0",
"vite-plugin-qrcode": "^0.2.3",
"vite-plugin-vue-devtools": "^7.6.7",
"vite-plugin-vue-devtools": "^7.6.8",
"vitest": "^2.1.8"
}
}

0 comments on commit b6d9ee4

Please sign in to comment.