- Installazione primo Sito Web del server

- Creazione prima pagina Home
This commit is contained in:
Surya Paolo
2023-12-09 00:19:48 +01:00
parent 7e17869d3e
commit 2b6411eb77
27 changed files with 152 additions and 50 deletions

View File

@@ -1953,6 +1953,11 @@ export const colTableProducts = [
label_trans: 'products.quantityAvailable',
fieldtype: costanti.FieldType.number
}),
AddCol({
name: 'stockQty',
label_trans: 'products.stockQty',
fieldtype: costanti.FieldType.number
}),
AddCol({ name: 'canBeShipped', label_trans: 'products.canBeShipped', fieldtype: costanti.FieldType.boolean }),
AddCol({ name: 'canBeBuyOnline', label_trans: 'products.canBeBuyOnline', fieldtype: costanti.FieldType.boolean }),
AddCol({ name: 'weight', label_trans: 'products.weight', fieldtype: costanti.FieldType.number }),

View File

@@ -5588,11 +5588,11 @@ export const tools = {
.then((res: any) => {
if (res) {
userStore.my.profile.userstoverify = userStore.my.profile.userstoverify.filter((rec: any) => rec.username !== usernameDest)
if (value)
tools.showPositiveNotif($q, t('db.enabled_to_app', {username: usernameDest}))
tools.showPositiveNotif($q, t('db.enabled_to_app', { username: usernameDest }))
else
tools.showNegativeNotif($q, t('db.rejected_to_app', {username: usernameDest}))
tools.showNegativeNotif($q, t('db.rejected_to_app', { username: usernameDest }))
}
})
})
@@ -8254,6 +8254,7 @@ export const tools = {
return 0
},
// FINE !
// getLocale() {

View File

@@ -76,6 +76,7 @@ export const useProducts = defineStore('Products', {
color: '',
size: '',
quantityAvailable: 0,
stockQty: 0,
canBeShipped: false,
canBeBuyOnline: false,
weight: 0,

View File

@@ -641,7 +641,12 @@ export const useUserStore = defineStore('UserStore', {
if (globalStore.site.confpages && globalStore.site.confpages.enableRegMultiChoice) {
return ((this.isTelegIdOk() && this.isUsernameTelegOk()) || this.my.verified_email!) && this.my.verified_by_aportador!
} else {
return this.isTelegIdOk() && this.my.verified_by_aportador! && this.isUsernameTelegOk()
//if (tools.getAskToVerifyReg()) {
if (globalStore.site.confpages && globalStore.site.confpages.enabledRegNeedTelegram) {
return this.isTelegIdOk() && this.my.verified_by_aportador! && this.isUsernameTelegOk()
} else {
return this.my.verified_email!
}
}
// return this.my.verified_email! && this.isTelegIdOk() && this.my.verified_by_aportador!
},
@@ -1393,7 +1398,7 @@ export const useUserStore = defineStore('UserStore', {
// console.log('this.isLogged', this.isLogged, 'isok', isok, 'isLogged', isLogged)
if (globalStore.site.confpages.enableTodos)
if (globalStore.site.confpages && globalStore.site.confpages.enableTodos)
await todos.dbLoad({ checkPending: true })
if (globalStore.site.confpages.enableProj)
@@ -1909,6 +1914,12 @@ export const useUserStore = defineStore('UserStore', {
showButtonSendCoin(myuser: IUserFields) {
const oldway = false
const globalStore = useGlobalStore()
if (globalStore.site && !globalStore.site.confpages.showCoins) {
return false
}
if (oldway)
return this.getMyCircuitsInCommonByUser(myuser).length > 0

View File

@@ -150,9 +150,11 @@ export const useGlobalStore = defineStore('GlobalStore', {
show_darkopt: true,
showProfile: false,
showUserMenu: true,
showiscrittiMenu: false,
showRegButton: false,
enableReg: false,
showNL: false,
sendNewsletter: false,
showMsgs: false,
showNotif: false,
showCoins: false,