httpsms-gateway / web /app /plugins /vPhoneInput.client.ts
ML Intern deploy
Deploy httpSMS gateway to Hugging Face Spaces (Docker SDK): nginx :7860 -> Go API :8000, Nuxt SPA, Android APK, bootstrap-mode entrypoint
83a59ca
Raw History Blame Contribute Delete
437 Bytes
import 'flag-icons/css/flag-icons.min.css'
import {
createVPhoneInput,
autocompletePhoneCountryInput,
VPhoneCountryFlagSvg,
} from 'v-phone-input'
import type { Plugin } from 'vue'
export default defineNuxtPlugin((nuxtApp) => {
const vPhoneInput: Plugin = createVPhoneInput({
...autocompletePhoneCountryInput,
countryDisplayComponent: VPhoneCountryFlagSvg,
validate: null,
})
nuxtApp.vueApp.use(vPhoneInput)
})