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