PASSAGGIO A VITE !
AGG. 1.1.23
This commit is contained in:
@@ -1,23 +1,23 @@
|
||||
import { defineComponent, onMounted, ref } from 'vue'
|
||||
|
||||
import { computed } from 'vue'
|
||||
import { CMyPage } from '@/components/CMyPage'
|
||||
import { CCopyBtn } from '@/components/CCopyBtn'
|
||||
import { CKeyAndValue } from '@/components/CKeyAndValue'
|
||||
import { CGridTableRec } from '@/components/CGridTableRec'
|
||||
import { tools } from '@store/Modules/tools'
|
||||
import { static_data } from '@/db/static_data'
|
||||
import { CMyPage } from '@src/components/CMyPage'
|
||||
import { CCopyBtn } from '@src/components/CCopyBtn'
|
||||
import { CKeyAndValue } from '@src/components/CKeyAndValue'
|
||||
import { CGridTableRec } from '@src/components/CGridTableRec'
|
||||
import { tools } from '@tools'
|
||||
import { static_data } from '@src/db/static_data'
|
||||
|
||||
import { fieldsTable } from '@src/store/Modules/fieldsTable'
|
||||
import { shared_consts } from '@/common/shared_vuejs'
|
||||
import { shared_consts } from '@src/common/shared_vuejs'
|
||||
import { DefaultProfile, useUserStore } from '@store/UserStore'
|
||||
import { costanti } from '@costanti'
|
||||
import { useQuasar } from 'quasar'
|
||||
import { useNotifStore } from '@store/NotifStore'
|
||||
import { INotif } from 'model'
|
||||
import { IUserFields } from '@model/UserStore'
|
||||
import { useI18n } from '@/boot/i18n'
|
||||
import MixinUsers from '@/mixins/mixin-users'
|
||||
import type { INotif } from 'model'
|
||||
import type { IUserFields } from '@model/UserStore'
|
||||
import { useI18n } from 'vue-i18n'
|
||||
import MixinUsers from '@src/mixins/mixin-users'
|
||||
|
||||
export default defineComponent({
|
||||
name: 'userPanel',
|
||||
@@ -30,7 +30,7 @@ export default defineComponent({
|
||||
const search = ref('')
|
||||
const colVisib = ref('')
|
||||
const mycolumns = ref([])
|
||||
const myuser = ref(<IUserFields>{_id: '', username: '', name: '', surname: '', profile: DefaultProfile})
|
||||
const myuser = ref(<IUserFields>{ _id: '', username: '', name: '', surname: '', profile: DefaultProfile })
|
||||
const risultato = ref('')
|
||||
const mynotif = ref('')
|
||||
const title = ref('')
|
||||
@@ -104,10 +104,10 @@ export default defineComponent({
|
||||
}
|
||||
|
||||
async function refresh() {
|
||||
if (!!search.value)
|
||||
if (search.value)
|
||||
myuser.value = await userStore.loadUserPanel(search.value)
|
||||
else
|
||||
myuser.value = {_id: '', username: '', name: '', surname: '', profile: DefaultProfile}
|
||||
myuser.value = { _id: '', username: '', name: '', surname: '', profile: DefaultProfile }
|
||||
|
||||
}
|
||||
|
||||
@@ -128,7 +128,7 @@ export default defineComponent({
|
||||
|
||||
async function sendNotifToUser() {
|
||||
|
||||
if (!!myuser.value) {
|
||||
if (myuser.value) {
|
||||
const notif: INotif = {
|
||||
typedir: notifdirtype.value,
|
||||
typeid: notifidtype.value,
|
||||
@@ -144,7 +144,7 @@ export default defineComponent({
|
||||
|
||||
async function sendNotifToUserTest() {
|
||||
|
||||
if (!!myuser.value) {
|
||||
if (myuser.value) {
|
||||
const notif: INotif = {
|
||||
typedir: notifdirtypeTest.value,
|
||||
typeid: notifidtypeTest.value,
|
||||
|
||||
Reference in New Issue
Block a user