PASSAGGIO A VITE !
AGG. 1.1.23
This commit is contained in:
@@ -1,33 +1,35 @@
|
||||
import { computed, defineComponent, onMounted, PropType, ref, watch, nextTick } from 'vue'
|
||||
import type { PropType } from 'vue';
|
||||
import { computed, defineComponent, onMounted, ref, watch, nextTick } from 'vue'
|
||||
|
||||
import { CMyFieldDb } from '@/components/CMyFieldDb'
|
||||
import { CTitleBanner } from '@/components/CTitleBanner'
|
||||
import { CProfile } from '@/components/CProfile'
|
||||
import { CDateTime } from '@/components/CDateTime'
|
||||
import { CMyPage } from '@/components/CMyPage'
|
||||
import { CMyGroup } from '@/components/CMyGroup'
|
||||
import { CMyChipList } from '@/components/CMyChipList'
|
||||
import { CGridTableUser } from '@/components/CGridTableUser'
|
||||
import { CMyFieldRec } from '@/components/CMyFieldRec'
|
||||
import { CMyUser } from '@/components/CMyUser'
|
||||
import { CLabel } from '@/components/CLabel'
|
||||
import { CGalleryImages } from '@/components/CGalleryImages'
|
||||
import { CAccomodation } from '@/components/CAccomodation'
|
||||
import { tools } from '@store/Modules/tools'
|
||||
import { CMyFieldDb } from '@src/components/CMyFieldDb'
|
||||
import { CTitleBanner } from '@src/components/CTitleBanner'
|
||||
import { CProfile } from '@src/components/CProfile'
|
||||
import { CDateTime } from '@src/components/CDateTime'
|
||||
import { CMyPage } from '@src/components/CMyPage'
|
||||
import { CMyGroup } from '@src/components/CMyGroup'
|
||||
import { CMyChipList } from '@src/components/CMyChipList'
|
||||
import { CGridTableUser } from '@src/components/CGridTableUser'
|
||||
import { CMyFieldRec } from '@src/components/CMyFieldRec'
|
||||
import { CMyUser } from '@src/components/CMyUser'
|
||||
import { CLabel } from '@src/components/CLabel'
|
||||
import { CGalleryImages } from '@src/components/CGalleryImages'
|
||||
import { CAccomodation } from '@src/components/CAccomodation'
|
||||
import { tools } from '@tools'
|
||||
import { useUserStore } from '@store/UserStore'
|
||||
import { useCalendarStore } from '@store/CalendarStore'
|
||||
import { useGlobalStore } from '@store/globalStore'
|
||||
import { useI18n } from '@/boot/i18n'
|
||||
import { useI18n } from 'vue-i18n'
|
||||
import { toolsext } from '@store/Modules/toolsext'
|
||||
import { useQuasar } from 'quasar'
|
||||
import { costanti } from '@costanti'
|
||||
import { EState, IReaction, IBookedEventPage, IColGridTable, IBookedEvent, IEvents, IMessage, IMessagePage, IParamDialog, ISearchList } from '@model'
|
||||
import { shared_consts } from '@/common/shared_vuejs'
|
||||
import type { IReaction, IBookedEventPage, IColGridTable, IBookedEvent, IEvents, IMessage, IMessagePage, IParamDialog, ISearchList } from '@model';
|
||||
import { EState } from '@model'
|
||||
import { shared_consts } from '@src/common/shared_vuejs'
|
||||
import { colCitys, fieldsTable } from '@store/Modules/fieldsTable'
|
||||
import { useRoute, useRouter } from 'vue-router'
|
||||
import { useNotifStore } from '@store/NotifStore'
|
||||
import { lists } from '@store/Modules/lists'
|
||||
import translate from '@/globalroutines/util'
|
||||
import translate from '@src/globalroutines/util'
|
||||
import { useMessageStore } from '@src/store/MessageStore'
|
||||
import mixinEvents from '@src/mixins/mixin-events'
|
||||
|
||||
@@ -50,9 +52,9 @@ export default defineComponent({
|
||||
default: null,
|
||||
},
|
||||
idRec: {
|
||||
type: Number,
|
||||
type: String,
|
||||
required: false,
|
||||
default: 0
|
||||
default: ''
|
||||
},
|
||||
nopopup: {
|
||||
type: Boolean,
|
||||
@@ -176,7 +178,7 @@ export default defineComponent({
|
||||
}
|
||||
|
||||
return [{
|
||||
idapp: process.env.APP_ID,
|
||||
idapp: tools.getEnv('VITE_APP_ID'),
|
||||
tab: tools.getNumTabByTable(props.table),
|
||||
idrec: myrec.value._id,
|
||||
...queryreact,
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
:class="'items-start ' + (!isSmall ? ' q-gutter-xs full-height ' : '')"
|
||||
>
|
||||
<div class="row">
|
||||
<q-toolbar class="bg-white text-black riempi">
|
||||
<q-toolbar v-if="!nopopup" class="bg-white text-black riempi">
|
||||
<q-toolbar-title> </q-toolbar-title>
|
||||
<q-btn
|
||||
v-if="!isSmall && showAnteprima"
|
||||
@@ -34,7 +34,8 @@
|
||||
v-if="myrec.photos.length > 0"
|
||||
:imgGallery="myrec.photos"
|
||||
:directory="
|
||||
costanti.DIR_UPLOAD + tools.getDirectoryGall(myrec, table, '')
|
||||
tools.getDirUpload() +
|
||||
tools.getDirectoryGall(myrec, table, '')
|
||||
"
|
||||
>
|
||||
</CGalleryImages>
|
||||
@@ -63,7 +64,7 @@
|
||||
<q-icon color="blue" name="fas fa-share" />
|
||||
</q-item-section>
|
||||
<q-item-section>
|
||||
{{ $t('reaction.condividi') }}
|
||||
{{ $t("reaction.condividi") }}
|
||||
</q-item-section>
|
||||
</q-item>
|
||||
<q-item
|
||||
@@ -85,13 +86,15 @@
|
||||
)
|
||||
"
|
||||
target="_blank"
|
||||
>{{ $t('dialog.telegram') }} -
|
||||
>{{ $t("dialog.telegram") }} -
|
||||
{{ tools.getNomeUtenteByRecUser(myrec) }}</a
|
||||
>
|
||||
</q-item-section>
|
||||
</q-item>
|
||||
<q-item
|
||||
v-else-if="myrec.profile && !myrec.profile.username_telegram"
|
||||
v-else-if="
|
||||
myrec.profile && !myrec.profile.username_telegram
|
||||
"
|
||||
clickable
|
||||
v-close-popup
|
||||
>
|
||||
@@ -100,12 +103,14 @@
|
||||
</q-item-section>
|
||||
<q-item-section>
|
||||
<a
|
||||
v-if="
|
||||
myrec.email
|
||||
v-if="myrec.email"
|
||||
:href="
|
||||
tools.isUserOk()
|
||||
? tools.getemailto(myrec.email)
|
||||
: null
|
||||
"
|
||||
:href="tools.isUserOk() ? tools.getemailto(myrec.email) : null"
|
||||
target="_blank"
|
||||
>{{ $t('msgs.write_email') }} -
|
||||
>{{ $t("msgs.write_email") }} -
|
||||
{{ tools.getNomeUtenteByRecUser(myrec) }}</a
|
||||
>
|
||||
</q-item-section>
|
||||
@@ -122,7 +127,7 @@
|
||||
<q-icon color="blue" name="fas fa-globe" />
|
||||
</q-item-section>
|
||||
<q-item-section>
|
||||
{{ $t('event.openpage') }}
|
||||
{{ $t("event.openpage") }}
|
||||
</q-item-section>
|
||||
</q-item>
|
||||
<q-separator />
|
||||
@@ -145,7 +150,7 @@
|
||||
</q-item-section>
|
||||
<q-item-section>
|
||||
{{
|
||||
$t('cmd.seen', {
|
||||
$t("cmd.seen", {
|
||||
num: myrec.numseen ? myrec.numseen : 0,
|
||||
})
|
||||
}}
|
||||
@@ -170,7 +175,7 @@
|
||||
</q-item-section>
|
||||
<q-item-section>
|
||||
{{
|
||||
$t('cmd.favorite', {
|
||||
$t("cmd.favorite", {
|
||||
num: myrec.numfav ? myrec.numfav : 0,
|
||||
})
|
||||
}}
|
||||
@@ -199,7 +204,7 @@
|
||||
</q-item-section>
|
||||
<q-item-section>
|
||||
{{
|
||||
$t('cmd.attend', {
|
||||
$t("cmd.attend", {
|
||||
num: calendarStore.getNumParticipants(
|
||||
myrec,
|
||||
true,
|
||||
@@ -228,7 +233,7 @@
|
||||
</q-item-section>
|
||||
<q-item-section>
|
||||
{{
|
||||
$t('cmd.bookmark', {
|
||||
$t("cmd.bookmark", {
|
||||
num: myrec.numbook ? myrec.numbook : 0,
|
||||
})
|
||||
}}
|
||||
@@ -369,7 +374,7 @@
|
||||
>{{
|
||||
fieldsTable.getValByTabAndId(
|
||||
table,
|
||||
'adType',
|
||||
"adType",
|
||||
myrec.adType
|
||||
)
|
||||
}}
|
||||
@@ -391,8 +396,14 @@
|
||||
</q-item>
|
||||
<q-item v-if="myrec.descr">
|
||||
<q-item-section>
|
||||
<q-item-label v-if="table === shared_consts.TABLES_MYBACHECAS" class="text-h6 text-bold">{{ myrec.descr }}</q-item-label>
|
||||
<q-item-label v-else class="text-h7">{{ myrec.descr }}</q-item-label>
|
||||
<q-item-label
|
||||
v-if="table === shared_consts.TABLES_MYBACHECAS"
|
||||
class="text-h6 text-bold"
|
||||
>{{ myrec.descr }}</q-item-label
|
||||
>
|
||||
<q-item-label v-else class="text-h7">{{
|
||||
myrec.descr
|
||||
}}</q-item-label>
|
||||
</q-item-section>
|
||||
</q-item>
|
||||
<q-item
|
||||
@@ -450,7 +461,7 @@
|
||||
</q-item-label>
|
||||
</q-item-section>
|
||||
</q-item>
|
||||
|
||||
|
||||
<q-item v-if="getSectorByRec(myrec)">
|
||||
<q-item-section avatar>
|
||||
<q-icon color="blue" name="category" />
|
||||
@@ -499,7 +510,7 @@
|
||||
<span class="accom_maxosp">{{
|
||||
myrec.numMaxPeopleHosp
|
||||
}}</span
|
||||
>{{ t('hosps.numMaxPeopleHosp') }}
|
||||
>{{ t("hosps.numMaxPeopleHosp") }}
|
||||
</q-item-label>
|
||||
</q-item-section>
|
||||
</q-item>
|
||||
@@ -594,15 +605,12 @@
|
||||
|
||||
<q-item-section>
|
||||
<q-item-label lines="1">
|
||||
{{ $t('event.organisedBy') }}: {{ myrec.organisedBy }}
|
||||
{{ $t("event.organisedBy") }}: {{ myrec.organisedBy }}
|
||||
</q-item-label>
|
||||
</q-item-section>
|
||||
</q-item>
|
||||
<q-card
|
||||
v-if="
|
||||
myrec.mygrp &&
|
||||
myrec.mygrp.groupname
|
||||
"
|
||||
v-if="myrec.mygrp && myrec.mygrp.groupname"
|
||||
class="my-card clBorderUser"
|
||||
bordered
|
||||
@click="naviga(tools.getPathByGroup(myrec.mygrp))"
|
||||
@@ -655,12 +663,8 @@
|
||||
|
||||
<q-item-section>
|
||||
<q-item-label lines="1">
|
||||
{{$t('event.contact_email')}}:
|
||||
<span
|
||||
v-html="
|
||||
tools.getlinkEmailTo(
|
||||
myrec.contact_email)
|
||||
"
|
||||
{{ $t("event.contact_email") }}:
|
||||
<span v-html="tools.getlinkEmailTo(myrec.contact_email)"
|
||||
/></q-item-label>
|
||||
</q-item-section>
|
||||
</q-item>
|
||||
@@ -674,13 +678,11 @@
|
||||
|
||||
<q-item-section>
|
||||
<q-item-label lines="1">
|
||||
{{ $t('msgs.telegrammsg') }}:
|
||||
{{ $t("msgs.telegrammsg") }}:
|
||||
<a
|
||||
:href="tools.getHttpForTelegram(myrec.contact_telegram)"
|
||||
target="_blank"
|
||||
>@{{
|
||||
myrec.contact_telegram
|
||||
}}
|
||||
>@{{ myrec.contact_telegram }}
|
||||
</a>
|
||||
</q-item-label>
|
||||
</q-item-section>
|
||||
@@ -747,7 +749,9 @@
|
||||
v-html="
|
||||
tools.getlinkhref(
|
||||
myrec.website,
|
||||
t('services.visit_website', {link: tools.getMainLink(myrec.website)})
|
||||
t('services.visit_website', {
|
||||
link: tools.getMainLink(myrec.website),
|
||||
})
|
||||
)
|
||||
"
|
||||
/></q-item-label>
|
||||
@@ -819,11 +823,13 @@
|
||||
|
||||
<q-item-section>
|
||||
<q-item-label lines="1">
|
||||
<span style="display: none">{{ part = calendarStore.getNumParticipants(
|
||||
myrec,
|
||||
true,
|
||||
tools.peopleWhere.participants
|
||||
)}}</span>
|
||||
<span style="display: none">{{
|
||||
(part = calendarStore.getNumParticipants(
|
||||
myrec,
|
||||
true,
|
||||
tools.peopleWhere.participants
|
||||
))
|
||||
}}</span>
|
||||
<q-btn
|
||||
rounded
|
||||
color="primary"
|
||||
@@ -864,11 +870,11 @@
|
||||
<q-item-section>
|
||||
<q-item-label lines="1">
|
||||
<span v-if="myrec.min_partecip"
|
||||
>{{ $t('event.min_partecip') }}:
|
||||
>{{ $t("event.min_partecip") }}:
|
||||
{{ myrec.min_partecip }}</span
|
||||
><br />
|
||||
<span v-if="myrec.max_partecip"
|
||||
>{{ $t('event.max_partecip') }}:
|
||||
>{{ $t("event.max_partecip") }}:
|
||||
{{ myrec.max_partecip }}</span
|
||||
>
|
||||
</q-item-label>
|
||||
@@ -908,7 +914,7 @@
|
||||
|
||||
<q-item-section>
|
||||
<q-item-label>
|
||||
{{ $t('reg.pub_updated') }}
|
||||
{{ $t("reg.pub_updated") }}
|
||||
<span v-if="myrec.date_updated">{{
|
||||
tools.getstrDateMonthLong(myrec.date_updated)
|
||||
}}</span
|
||||
@@ -916,7 +922,7 @@
|
||||
tools.getstrDateMonthLong(myrec.date_created)
|
||||
}}</span>
|
||||
<span v-if="myrec.organisedBy || myrec.groupname"
|
||||
><br />{{ $t('reg.who_updated') }}
|
||||
><br />{{ $t("reg.who_updated") }}
|
||||
<span class="text-bold"
|
||||
><a :href="'my/' + myrec.username">{{
|
||||
tools.getNomeUtenteByRecUser(myrec)
|
||||
@@ -924,7 +930,7 @@
|
||||
></span
|
||||
>
|
||||
<span v-if="myrec.createdBy"
|
||||
><br />{{ $t('services.createdBy') }}
|
||||
><br />{{ $t("services.createdBy") }}
|
||||
<span class="text-bold"
|
||||
><a :href="'my/' + createdBy">{{
|
||||
createdBy
|
||||
@@ -1020,7 +1026,8 @@
|
||||
/>
|
||||
<q-btn
|
||||
v-else-if="
|
||||
(myrec.profile && !myrec.profile.username_telegram) &&
|
||||
myrec.profile &&
|
||||
!myrec.profile.username_telegram &&
|
||||
!myrec.contact_telegram
|
||||
"
|
||||
class="q-mx-xxs q-my-xs"
|
||||
@@ -1030,11 +1037,7 @@
|
||||
color="white"
|
||||
icon="mail"
|
||||
target="_blank"
|
||||
@click="
|
||||
tools.openUrl(
|
||||
tools.getemailto(myrec.email)
|
||||
)
|
||||
"
|
||||
@click="tools.openUrl(tools.getemailto(myrec.email))"
|
||||
/>
|
||||
<q-btn
|
||||
v-if="table === shared_consts.TABLES_MYBACHECAS"
|
||||
@@ -1172,7 +1175,7 @@
|
||||
</CMyUser>
|
||||
<div>
|
||||
{{ tools.getstrshortDateTime(eventbook.datebooked) }}
|
||||
<span v-if="eventbook.msgbooking">{{ $t('sendmsg.write') }}: </span>
|
||||
<span v-if="eventbook.msgbooking">{{ $t("sendmsg.write") }}: </span>
|
||||
<q-separator />
|
||||
</div>
|
||||
|
||||
@@ -1224,7 +1227,7 @@
|
||||
<q-card v-if="askInfopage.show" class="dialog_card">
|
||||
<q-toolbar class="bg-primary text-white">
|
||||
<q-toolbar-title>
|
||||
{{ $t('cal.booking') }}
|
||||
{{ $t("cal.booking") }}
|
||||
</q-toolbar-title>
|
||||
<q-btn flat round color="white" icon="close" v-close-popup></q-btn>
|
||||
</q-toolbar>
|
||||
@@ -1236,7 +1239,7 @@
|
||||
</q-chip>
|
||||
<div v-if="myrec.dateTimeStart" class="cal__when">
|
||||
<span class="cal__where-title"
|
||||
>{{ $t('cal.when') }}:
|
||||
>{{ $t("cal.when") }}:
|
||||
<span v-html="tools.getstrDateTimeEvent($t, myrec, true)"></span>
|
||||
</span>
|
||||
</div>
|
||||
@@ -1277,7 +1280,7 @@
|
||||
<q-card v-if="bookEventpage.show" class="dialog_card">
|
||||
<q-toolbar class="bg-primary text-white">
|
||||
<q-toolbar-title>
|
||||
{{ $t('cal.booking') }}
|
||||
{{ $t("cal.booking") }}
|
||||
</q-toolbar-title>
|
||||
<q-btn flat round color="white" icon="close" v-close-popup></q-btn>
|
||||
</q-toolbar>
|
||||
@@ -1285,7 +1288,7 @@
|
||||
<div class="q-pa-xs">
|
||||
<q-card class="windowcol" style="display: block">
|
||||
<q-card-section class="q-pa-xs">
|
||||
<div>{{ $t('cal.infoprenota') }}</div>
|
||||
<div>{{ $t("cal.infoprenota") }}</div>
|
||||
<br />
|
||||
<div style="display: inline-flex" class="q-px-xs centermydiv">
|
||||
<q-checkbox
|
||||
@@ -1368,6 +1371,6 @@
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
@import './CMyCardService.scss';
|
||||
@import "./CMyCardService.scss";
|
||||
</style>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user