diff --git a/src/components/CSkill/CSkill.ts b/src/components/CSkill/CSkill.ts
index 064118e8..2a8737b6 100755
--- a/src/components/CSkill/CSkill.ts
+++ b/src/components/CSkill/CSkill.ts
@@ -44,26 +44,6 @@ export default defineComponent({
const globalStore = useGlobalStore()
const userStore = useUserStore()
- async function createNewRecordInUserTable() {
- console.log('createNewRecordInUserTable')
-
- let mydata = {
- table: mytable,
- data: {
- userId: userStore.my._id,
- data: {},
- field: 'myskills'
- }
- }
-
- if (props.defaultnewrec) {
-
- mydata.data.data = props.defaultnewrec
- }
-
- console.log('mydata', mydata)
- const data = await globalStore.saveSubRec(mydata)
- }
function getdefaultnewrec(): IMySkill {
return {
@@ -75,9 +55,10 @@ export default defineComponent({
idContribType: [],
idCity: [],
NumLevel: 0,
+ adType: 0,
photos: [],
note: '',
- subTitle: '',
+ descr: '',
}
}
@@ -106,13 +87,15 @@ export default defineComponent({
idSector: 1,
idSkill: 1,
idSubSkill: 1,
+ myskill: 1,
idStatusSkill: 1,
idContribType: 1,
idCity: 1,
numLevel: 1,
+ adType: 1,
photos: 1,
note: 1,
- subTitle: 1,
+ descr: 1,
date_created: 1,
date_updated: 1,
userId: 1,
@@ -137,13 +120,15 @@ export default defineComponent({
idSector: 1,
idSkill: 1,
idSubSkill: 1,
+ myskill: 1,
idStatusSkill: 1,
idContribType: 1,
idCity: 1,
numLevel: 1,
+ adType: 1,
photos: 1,
note: 1,
- subTitle: 1,
+ descr: 1,
date_created: 1,
date_updated: 1,
comune: 1,
diff --git a/src/components/CSkill/CSkill.vue b/src/components/CSkill/CSkill.vue
index 58f5f3ae..782562a2 100755
--- a/src/components/CSkill/CSkill.vue
+++ b/src/components/CSkill/CSkill.vue
@@ -7,7 +7,8 @@
prop_mytitle=""
:prop_mycolumns="colmySkills"
prop_colkey="idSkill"
- col_title="subTitle"
+ col_title="descr"
+ col_footer="idCity"
:vertical="-1"
:choose_visutype="!visuinpage"
:butt_modif_new="!visuinpage"
diff --git a/_ALL_SITES/freeplanet.app/root/home/home.scss b/src/components/CUserNonVerif/CUserNonVerif.scss
similarity index 100%
rename from _ALL_SITES/freeplanet.app/root/home/home.scss
rename to src/components/CUserNonVerif/CUserNonVerif.scss
diff --git a/src/components/CUserNonVerif/CUserNonVerif.ts b/src/components/CUserNonVerif/CUserNonVerif.ts
new file mode 100755
index 00000000..c2e9db59
--- /dev/null
+++ b/src/components/CUserNonVerif/CUserNonVerif.ts
@@ -0,0 +1,30 @@
+import { computed, defineComponent, PropType, ref } from 'vue'
+
+import { ICalcStat, IOperators } from '../../model'
+import { useUserStore } from '../../store/UserStore'
+import { useRouter } from 'vue-router'
+import { useGlobalStore } from '../../store/globalStore'
+import { useI18n } from '../../boot/i18n'
+import { CTitleBanner } from '@/components/CTitleBanner'
+import { tools } from '@store/Modules/tools'
+
+export default defineComponent({
+ name: 'CUserNonVerif',
+ components: {
+ CTitleBanner
+ },
+ props: {
+ },
+ setup(props) {
+
+ const userStore = useUserStore()
+ const $router = useRouter()
+ const globalStore = useGlobalStore()
+ const { t } = useI18n();
+
+ return {
+ userStore,
+ tools,
+ }
+ },
+})
diff --git a/src/components/CUserNonVerif/CUserNonVerif.vue b/src/components/CUserNonVerif/CUserNonVerif.vue
new file mode 100755
index 00000000..ea3cd921
--- /dev/null
+++ b/src/components/CUserNonVerif/CUserNonVerif.vue
@@ -0,0 +1,14 @@
+
+
+
+ La verifica è in corso. Ti arriverà un messaggio dal Bot quando sarai abilitato.
+
+
+
+
+
+
+
diff --git a/src/components/CUserNonVerif/index.ts b/src/components/CUserNonVerif/index.ts
new file mode 100755
index 00000000..49a1ebd9
--- /dev/null
+++ b/src/components/CUserNonVerif/index.ts
@@ -0,0 +1 @@
+export {default as CUserNonVerif} from './CUserNonVerif.vue'
diff --git a/src/components/Header/Header.ts b/src/components/Header/Header.ts
index 3e2e0d7d..7652b717 100755
--- a/src/components/Header/Header.ts
+++ b/src/components/Header/Header.ts
@@ -80,6 +80,7 @@ export default defineComponent({
getNumMsg,
getNumMsgUnread,
getMsgText,
+ isVerified,
paotest } = MixinUsers();
function isonline() {
@@ -382,10 +383,6 @@ export default defineComponent({
return userStore.isLogged
}
- function isEmailVerified() {
- return userStore.my.verified_email
- }
-
function clickregister() {
rightDrawerOpen.value = false
@@ -445,7 +442,6 @@ export default defineComponent({
lang,
langshort,
isLogged,
- isEmailVerified,
getnumOrdersCart,
t,
isonline,
@@ -485,6 +481,7 @@ export default defineComponent({
paotest,
logoutHandler,
isUserNotAuth,
+ isVerified,
}
},
diff --git a/src/components/Header/Header.vue b/src/components/Header/Header.vue
index 8a3f615f..6b8d9c2d 100755
--- a/src/components/Header/Header.vue
+++ b/src/components/Header/Header.vue
@@ -129,11 +129,18 @@
-->
-
-
+
+
+
-
-
-
-
+
+
@@ -39,6 +37,9 @@
+
+
+
diff --git a/src/statics/lang/it.js b/src/statics/lang/it.js
index ba39a450..c7b6fa0e 100755
--- a/src/statics/lang/it.js
+++ b/src/statics/lang/it.js
@@ -31,7 +31,7 @@ const msg_it = {
otherpages: {
product: 'Prodotto',
sito_offline: 'Sito in Aggiornamento',
- modifprof: 'Modifica Profilo',
+ modifprof: 'Modifica',
modifgrp: 'Modifica Gruppo',
biografia: 'Biografia',
qualifica: 'Qualifica (in breve)',
diff --git a/src/store/Modules/fieldsTable.ts b/src/store/Modules/fieldsTable.ts
index dafc0018..db117a3e 100755
--- a/src/store/Modules/fieldsTable.ts
+++ b/src/store/Modules/fieldsTable.ts
@@ -316,6 +316,11 @@ export const colTableStorehouse = [
AddCol(DuplicateRec),
]
+export const colAdType = [
+ AddCol({ name: '_id', label_trans: 'index', fieldtype: costanti.FieldType.number }),
+ AddCol({ name: 'descr', label_trans: 'store.description' }),
+]
+
export const colSectors = [
AddCol({ name: '_id', label_trans: 'index', fieldtype: costanti.FieldType.number }),
AddCol({ name: 'descr', label_trans: 'store.description' }),
@@ -502,7 +507,7 @@ export const colmyUserGroup = [
noshowlabel: true,
icon: 'fas fa-map-marker-alt',
showWhen: costanti.showWhen.NewRec + costanti.showWhen.InPage + costanti.showWhen.InEdit + costanti.showWhen.InView,
- remote_table: 'comune',
+ remote_table: 'mycities',
remote_key: '_id',
remote_field: 'comune',
}),
@@ -523,8 +528,18 @@ export const colmySkills = [
}), */
//AddCol({ name: 'name', label_trans: 'reg.name', fieldtype: costanti.FieldType.string }),
//AddCol({ name: 'surname', label_trans: 'reg.surname', fieldtype: costanti.FieldType.string }),
- AddCol({ name: 'subTitle', label_trans: 'event.title', fieldtype: costanti.FieldType.string,
- showWhen: costanti.showWhen.NewRec + costanti.showWhen.InPage + costanti.showWhen.InEdit , maxlength: 70, noshowlabel: true }),
+ // AddCol({ name: 'subTitle', label_trans: 'event.title', fieldtype: costanti.FieldType.string,
+ // showWhen: costanti.showWhen.NewRec + costanti.showWhen.InPage + costanti.showWhen.InEdit , maxlength: 70, noshowlabel: true }),
+ AddCol({
+ name: 'adTypes',
+ label_trans: 'adTypes.name',
+ fieldtype: costanti.FieldType.select,
+ required: true,
+ jointable: 'adtypes',
+ showWhen: costanti.showWhen.NewRec + costanti.showWhen.InPage + costanti.showWhen.InEdit + costanti.showWhen.InView_OnlyifExist,
+ noshowlabel: true,
+ icon: 'grading',
+ }),
AddCol({ name: 'descr', label_trans: 'proj.shortdescr', fieldtype: costanti.FieldType.string,
showWhen: costanti.showWhen.NewRec + costanti.showWhen.InPage + costanti.showWhen.InEdit + costanti.showWhen.InView_OnlyifExist, noshowlabel: true, maxlength: 200 }),
AddCol({
@@ -569,7 +584,7 @@ export const colmySkills = [
filter_field: 'idSkill',
noshowlabel: true,
icon: 'far fa-id-card',
- showWhen: costanti.showWhen.NewRec + costanti.showWhen.InPage + costanti.showWhen.InEdit + costanti.showWhen.InView,
+ showWhen: costanti.showWhen.NewRec + costanti.showWhen.InPage + costanti.showWhen.InEdit + costanti.showWhen.InView_OnlyifExist,
allowNewValue: true,
}),
AddCol({
@@ -609,7 +624,10 @@ export const colmySkills = [
tablesel: 'cities',
noshowlabel: true,
icon: 'fas fa-map-marker-alt',
- showWhen: costanti.showWhen.NewRec + costanti.showWhen.InPage + costanti.showWhen.InEdit + costanti.showWhen.InView,
+ showWhen: costanti.showWhen.NewRec + costanti.showWhen.InPage + costanti.showWhen.InEdit + costanti.showWhen.InView_OnlyifExist,
+ remote_table: 'mycities',
+ remote_key: '_id',
+ remote_field: 'comune',
}),
AddCol({ name: 'username', label_trans: 'reg.username', foredit: false, tipovisu: costanti.TipoVisu.LINK, link: '/my/username', noshowlabel: true }),
AddCol({ name: 'note', label_trans: 'proj.longdescr', fieldtype: costanti.FieldType.html,
@@ -1984,6 +2002,13 @@ export const fieldsTable = {
colkey: '_id',
collabel: 'descr',
},
+ {
+ value: 'adtypes',
+ label: 'Tipo Annuncio',
+ columns: colAdType,
+ colkey: '_id',
+ collabel: 'descr',
+ },
{
value: 'cities',
label: 'Comune',
diff --git a/src/store/Modules/tools.ts b/src/store/Modules/tools.ts
index be1ba9d9..2236c9c6 100644
--- a/src/store/Modules/tools.ts
+++ b/src/store/Modules/tools.ts
@@ -3124,7 +3124,7 @@ export const tools = {
const msg2 = t('fetch.errore_generico') + userStore.getMsgError(riscode)
this.showNotif(mythisq, msg2)
} else if (riscode === this.OK) {
- $router.push('/regok')
+ $router.push('/')
this.showNotif(mythisq, t('components.authentication.email_verification.link_sent', { botname: t('ws.botname') }), {
color: 'green',
textColor: 'black',
@@ -4856,6 +4856,27 @@ export const tools = {
} else {
return value[keyfunz]
}
+ },
+
+ getValueByRemoteField(col: IColGridTable, row: any, value: any, col_tabfooter: string) {
+ if (col) {
+ if (col.remote_table && col.remote_key && col.remote_field && col_tabfooter) {
+
+ const myarrremote = row[col.remote_table]
+
+ let myarr: any = []
+
+ for (const myrec of myarrremote) {
+ let myval = myrec[col.remote_field]
+ myarr.push(myval)
+ }
+
+ return myarr ? myarr.join(' - ') : ''
+
+ }
+ }
+ return ''
+
}
diff --git a/src/store/UserStore.ts b/src/store/UserStore.ts
index 5851decd..a78554ff 100755
--- a/src/store/UserStore.ts
+++ b/src/store/UserStore.ts
@@ -221,7 +221,12 @@ export const useUserStore = defineStore('UserStore', {
return ''
},
- getImgByProfile(userparam: IUserFields): string {
+ getImgUserByUsername(username: string): string {
+ let img = this.getImgByUsername(username)
+ return img ? img : 'images/noimg-user.svg'
+ },
+
+ getImgByProfile(userparam: IUserFields, reale: any = false): string {
try {
if (userparam.profile && userparam.profile.img) {
@@ -229,7 +234,10 @@ export const useUserStore = defineStore('UserStore', {
}
} catch (e) {
}
- return 'images/noimg.png'
+ if (!reale)
+ return 'images/noimg.png'
+ else
+ return ''
},
getImgByGroup(group: IMyGroup): string {
diff --git a/src/store/globalStore.ts b/src/store/globalStore.ts
index d629d7fd..806a4166 100644
--- a/src/store/globalStore.ts
+++ b/src/store/globalStore.ts
@@ -117,6 +117,7 @@ export const useGlobalStore = defineStore('GlobalStore', {
URL_RITORNA: '',
URL_RESTORE: '',
levels: [],
+ adtypes: [],
skills: [],
subSkills: [],
statusSkills: [],
@@ -232,6 +233,8 @@ export const useGlobalStore = defineStore('GlobalStore', {
return state.settings
else if (table === 'levels')
return state.levels
+ else if (table === 'adtypes')
+ return state.adtypes
else if (table === 'skills')
return state.skills
else if (table === 'subskills')
@@ -1227,6 +1230,7 @@ export const useGlobalStore = defineStore('GlobalStore', {
this.sectors = (res.data.sectors) ? [...res.data.sectors] : []
this.cities = (res.data.cities) ? [...res.data.cities] : []
this.catgrps = (res.data.catgrps) ? [...res.data.catgrps] : []
+ this.adtypes = (res.data.adtypes) ? [...res.data.adtypes] : []
// console.log('res.data.cart', res.data.cart)
diff --git a/src/views/admin/dbop/dbop.vue b/src/views/admin/dbop/dbop.vue
index 5c5baa25..f2b596cf 100755
--- a/src/views/admin/dbop/dbop.vue
+++ b/src/views/admin/dbop/dbop.vue
@@ -220,6 +220,40 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
- {{ myuser.profile.qualifica }}
- {{ myuser.profile.born_city }}
- ({{
- myuser.profile.nationality
- }})
-
-
-
-
-
- {{ myuser.username }}
-
- {{ myuser.profile.biografia }}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{ myuser.name }} {{
- myuser.surname
- }}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+ {{ myuser.name }} {{
+ myuser.surname
+ }}
+
+
+
+ {{ myuser.username }}
+
+
+ {{ myuser.profile.born_city }} ({{
+ myuser.profile.nationality
+ }})
+
+
+
+ {{ myuser.profile.qualifica }}
+
+
+
+ {{ myuser.profile.biografia }}
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -149,7 +111,7 @@
@@ -158,6 +120,28 @@
+
+