chore(account): remove unused SocialsDialog.vue
This commit is contained in:
@@ -1,101 +0,0 @@
|
||||
<template>
|
||||
<v-card>
|
||||
<v-card-title>
|
||||
{{ t('title') }}
|
||||
</v-card-title>
|
||||
|
||||
<div class="m-4">
|
||||
<v-text-field
|
||||
variant="outlined"
|
||||
v-model="facebookUrl"
|
||||
:label="t('facebook')"
|
||||
></v-text-field>
|
||||
|
||||
<v-text-field
|
||||
variant="outlined"
|
||||
v-model="instagramUrl"
|
||||
:label="t('instagram')"
|
||||
></v-text-field>
|
||||
|
||||
<v-text-field
|
||||
variant="outlined"
|
||||
v-model="twitterUrl"
|
||||
:label="t('twitter')"
|
||||
></v-text-field>
|
||||
|
||||
<v-text-field
|
||||
variant="outlined"
|
||||
v-model="youtubeUrl"
|
||||
:label="t('youtube')"
|
||||
></v-text-field>
|
||||
|
||||
<v-text-field
|
||||
variant="outlined"
|
||||
v-model="tiktokUrl"
|
||||
:label="t('tiktok')"
|
||||
></v-text-field>
|
||||
</div>
|
||||
|
||||
<v-card-actions>
|
||||
<v-btn variant="plain" @click="requestClose">
|
||||
{{ t('cancel') }}
|
||||
</v-btn>
|
||||
<v-btn color="#A6147D" @click="requestSave">
|
||||
{{ t('save') }}
|
||||
</v-btn>
|
||||
</v-card-actions>
|
||||
</v-card>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import {ref} from 'vue';
|
||||
import {useI18n} from 'vue-i18n';
|
||||
|
||||
const {t} = useI18n();
|
||||
const props = defineProps(['socials'])
|
||||
const emit = defineEmits(['close', 'save'])
|
||||
|
||||
const facebookUrl = ref(props.socials?.facebookUrl || '')
|
||||
const instagramUrl = ref(props.socials?.instagramUrl || '')
|
||||
const twitterUrl = ref(props.socials?.twitterUrl || '')
|
||||
const youtubeUrl = ref(props.socials?.youtubeUrl || '')
|
||||
const tiktokUrl = ref(props.socials?.tiktokUrl || '')
|
||||
|
||||
const requestClose = () => emit('close')
|
||||
const requestSave = () => emit('save', {
|
||||
facebookUrl: facebookUrl.value,
|
||||
instagramUrl: instagramUrl.value,
|
||||
twitterUrl: twitterUrl.value,
|
||||
youtubeUrl: youtubeUrl.value,
|
||||
tiktokUrl: tiktokUrl.value
|
||||
})
|
||||
</script>
|
||||
|
||||
<i18n>
|
||||
{
|
||||
"en": {
|
||||
"title": "Social Media Links",
|
||||
"facebook": "Facebook URL",
|
||||
"instagram": "Instagram URL",
|
||||
"twitter": "Twitter URL",
|
||||
"youtube": "YouTube URL",
|
||||
"tiktok": "TikTok URL"
|
||||
},
|
||||
"fr": {
|
||||
"title": "Liens des réseaux sociaux",
|
||||
"facebook": "URL Facebook",
|
||||
"instagram": "URL Instagram",
|
||||
"twitter": "URL Twitter",
|
||||
"youtube": "URL YouTube",
|
||||
"tiktok": "URL TikTok"
|
||||
},
|
||||
"es": {
|
||||
"title": "Enlaces de redes sociales",
|
||||
"facebook": "URL de Facebook",
|
||||
"instagram": "URL de Instagram",
|
||||
"twitter": "URL de Twitter",
|
||||
"youtube": "URL de YouTube",
|
||||
"tiktok": "URL de TikTok"
|
||||
}
|
||||
}
|
||||
</i18n>
|
||||
Reference in New Issue
Block a user