Compare commits
2 Commits
7c3d34d02e
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0099e51f94 | ||
|
|
901f7f4c02 |
@@ -1,6 +1,6 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { watch } from 'vue'
|
import { watch } from 'vue'
|
||||||
import { useCurrencyInput } from 'vue-currency-input'
|
import { useCurrencyInput, CurrencyDisplay } from 'vue-currency-input'
|
||||||
|
|
||||||
const props = withDefaults(
|
const props = withDefaults(
|
||||||
defineProps<{
|
defineProps<{
|
||||||
@@ -23,7 +23,8 @@ const props = withDefaults(
|
|||||||
defineEmits<{ 'update:modelValue': [value: number | null] }>()
|
defineEmits<{ 'update:modelValue': [value: number | null] }>()
|
||||||
|
|
||||||
const { inputRef, setValue } = useCurrencyInput({
|
const { inputRef, setValue } = useCurrencyInput({
|
||||||
currency: undefined as unknown as string,
|
currency: 'USD',
|
||||||
|
currencyDisplay: CurrencyDisplay.hidden,
|
||||||
locale: props.locale,
|
locale: props.locale,
|
||||||
precision: props.precision,
|
precision: props.precision,
|
||||||
hideCurrencySymbolOnFocus: false,
|
hideCurrencySymbolOnFocus: false,
|
||||||
|
|||||||
@@ -11,11 +11,11 @@ PouchDb.plugin(PouchDbAuthentication)
|
|||||||
|
|
||||||
const emit = debounce((ev: typeof SYNC, arr?: string[]) => bus.emit(ev, arr), 150)
|
const emit = debounce((ev: typeof SYNC, arr?: string[]) => bus.emit(ev, arr), 150)
|
||||||
|
|
||||||
const remoteConfig = {
|
const remoteConfig: PouchDB.Configuration.RemoteDatabaseConfiguration = {
|
||||||
skip_setup: true,
|
skip_setup: true,
|
||||||
ajax: {
|
fetch: (url, opts) => {
|
||||||
cache: true,
|
const init: RequestInit = { ...(opts ?? {}), credentials: 'include' }
|
||||||
withCredentials: true
|
return PouchDb.fetch(url as RequestInfo, init)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
const LOCALE_DB = 'VAQUANT_LOCALE_DB'
|
const LOCALE_DB = 'VAQUANT_LOCALE_DB'
|
||||||
|
|||||||
Reference in New Issue
Block a user