menu RIS
This commit is contained in:
@@ -9,6 +9,7 @@ const msg_website_enUs = {
|
|||||||
quantity: 'Quantità',
|
quantity: 'Quantità',
|
||||||
quantityAvailable: 'Disponibili',
|
quantityAvailable: 'Disponibili',
|
||||||
stockQty: 'In Magazzino',
|
stockQty: 'In Magazzino',
|
||||||
|
stockBloccatiQty: 'Bloccati In Magazzino',
|
||||||
weight: 'Peso',
|
weight: 'Peso',
|
||||||
stars: 'Voto',
|
stars: 'Voto',
|
||||||
color: 'Colore',
|
color: 'Colore',
|
||||||
@@ -37,6 +38,7 @@ const msg_website_enUs = {
|
|||||||
productslist: 'Lista Prodotti',
|
productslist: 'Lista Prodotti',
|
||||||
collabora: 'Collabora',
|
collabora: 'Collabora',
|
||||||
storehouses: 'Magazzino',
|
storehouses: 'Magazzino',
|
||||||
|
providers: 'Fornitori',
|
||||||
departments: 'Uffici',
|
departments: 'Uffici',
|
||||||
orders: 'Ordini Ricevuti',
|
orders: 'Ordini Ricevuti',
|
||||||
orders2: 'Ordini Ricevuti',
|
orders2: 'Ordini Ricevuti',
|
||||||
|
|||||||
@@ -31,10 +31,17 @@ const msg_website_it = {
|
|||||||
producer: 'Produttore',
|
producer: 'Produttore',
|
||||||
orderinfo: 'Ordini Effettuati',
|
orderinfo: 'Ordini Effettuati',
|
||||||
products: 'Prodotti',
|
products: 'Prodotti',
|
||||||
|
cash: 'Cassa',
|
||||||
|
productInfos: 'Info Prodotti',
|
||||||
|
listinoprodotti: 'Listino Prodotti',
|
||||||
productslist: 'Lista Prodotti',
|
productslist: 'Lista Prodotti',
|
||||||
collabora: 'Collabora',
|
collabora: 'Collabora',
|
||||||
categories: 'Categorie',
|
categories: 'Categorie',
|
||||||
storehouses: 'Magazzino',
|
storehouses: 'Magazzino',
|
||||||
|
providers: 'Fornitori',
|
||||||
|
catprods: 'Categorie',
|
||||||
|
gasordine: 'Gas Ordine',
|
||||||
|
scontisticas: 'Scontistica',
|
||||||
departments: 'Uffici',
|
departments: 'Uffici',
|
||||||
orders: 'Ordini Ricevuti',
|
orders: 'Ordini Ricevuti',
|
||||||
orders2: 'Ordini Ricevuti',
|
orders2: 'Ordini Ricevuti',
|
||||||
@@ -123,6 +130,7 @@ const msg_website_it = {
|
|||||||
only_residenti: 'Solo Residenti',
|
only_residenti: 'Solo Residenti',
|
||||||
only_consiglio: 'Solo Consiglieri',
|
only_consiglio: 'Solo Consiglieri',
|
||||||
color: 'Colore',
|
color: 'Colore',
|
||||||
|
gasordini: 'Gas Ordini',
|
||||||
},
|
},
|
||||||
msg: {
|
msg: {
|
||||||
myAppName: 'Più che Buono',
|
myAppName: 'Più che Buono',
|
||||||
|
|||||||
@@ -88,6 +88,19 @@ function getDynamicPages(site: ISites): IListRoutes[] {
|
|||||||
inmenu: true,
|
inmenu: true,
|
||||||
infooter: true,
|
infooter: true,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
active: site.confpages && site.confpages.enableCircuits,
|
||||||
|
order: 16,
|
||||||
|
path: '/circuits',
|
||||||
|
materialIcon: 'fas fa-coins',
|
||||||
|
name: 'mypages.circuits',
|
||||||
|
component: () => import('@/views/user/mycircuits/mycircuits.vue'),
|
||||||
|
meta: { requiresAuth: true },
|
||||||
|
inmenu: true,
|
||||||
|
infooter: true,
|
||||||
|
onlyAdmin: true,
|
||||||
|
onlyManager: true,
|
||||||
|
},
|
||||||
{
|
{
|
||||||
active: site.confpages && site.confpages.enableGroups,
|
active: site.confpages && site.confpages.enableGroups,
|
||||||
order: 132,
|
order: 132,
|
||||||
@@ -98,6 +111,8 @@ function getDynamicPages(site: ISites): IListRoutes[] {
|
|||||||
meta: { requiresAuth: true },
|
meta: { requiresAuth: true },
|
||||||
inmenu: true,
|
inmenu: true,
|
||||||
infooter: false,
|
infooter: false,
|
||||||
|
onlyAdmin: true,
|
||||||
|
onlyManager: true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
active: true,
|
active: true,
|
||||||
@@ -109,6 +124,17 @@ function getDynamicPages(site: ISites): IListRoutes[] {
|
|||||||
meta: { requiresAuth: true, newpage: true },
|
meta: { requiresAuth: true, newpage: true },
|
||||||
inmenu: false,
|
inmenu: false,
|
||||||
infooter: false,
|
infooter: false,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
active: true,
|
||||||
|
order: 137,
|
||||||
|
path: '/circuit/:path',
|
||||||
|
materialIcon: 'fas fa-user',
|
||||||
|
name: 'proj.circuit2',
|
||||||
|
component: () => import('@/views/user/mycircuit/mycircuit.vue'),
|
||||||
|
meta: { requiresAuth: true, newpage: true },
|
||||||
|
inmenu: false,
|
||||||
|
infooter: false,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
active: true,
|
active: true,
|
||||||
|
|||||||
@@ -317,54 +317,54 @@ module.exports = configure((ctx) => ({
|
|||||||
start_url: "/?homescreen=1",
|
start_url: "/?homescreen=1",
|
||||||
icons: [
|
icons: [
|
||||||
{
|
{
|
||||||
src: 'images/fv-android-icon-512x512.png',
|
src: 'images/pcb-android-icon-512x512.png',
|
||||||
sizes: '512x512',
|
sizes: '512x512',
|
||||||
type: 'image/png',
|
type: 'image/png',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
src: 'images/fv-android-icon-384x384.png',
|
src: 'images/pcb-android-icon-384x384.png',
|
||||||
sizes: '384x384',
|
sizes: '384x384',
|
||||||
type: 'image/png',
|
type: 'image/png',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
src: 'images/fv-android-icon-192x192.png',
|
src: 'images/pcb-android-icon-192x192.png',
|
||||||
sizes: '192x192',
|
sizes: '192x192',
|
||||||
type: 'image/png',
|
type: 'image/png',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
src: 'images/fv-android-icon-144x144.png',
|
src: 'images/pcb-android-icon-144x144.png',
|
||||||
sizes: '144x144',
|
sizes: '144x144',
|
||||||
type: 'image/png',
|
type: 'image/png',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
src: 'images/fv-android-icon-96x96.png',
|
src: 'images/pcb-android-icon-96x96.png',
|
||||||
sizes: '96x96',
|
sizes: '96x96',
|
||||||
type: 'image/png',
|
type: 'image/png',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
src: 'images/fv-apple-icon-120x120.png',
|
src: 'images/pcb-apple-icon-120x120.png',
|
||||||
sizes: '120x120',
|
sizes: '120x120',
|
||||||
type: 'image/png',
|
type: 'image/png',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
src: 'images/fv-apple-icon-144x144.png',
|
src: 'images/pcb-apple-icon-144x144.png',
|
||||||
sizes: '144x144',
|
sizes: '144x144',
|
||||||
type: 'image/png',
|
type: 'image/png',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
src: 'images/fv-apple-icon-152x152.png',
|
src: 'images/pcb-apple-icon-152x152.png',
|
||||||
sizes: '152x152',
|
sizes: '152x152',
|
||||||
type: 'image/png',
|
type: 'image/png',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
src: 'images/fv-apple-icon-180x180.png',
|
src: 'images/pcb-apple-icon-180x180.png',
|
||||||
sizes: '180x180',
|
sizes: '180x180',
|
||||||
type: 'image/png',
|
type: 'image/png',
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
related_applications: [{
|
related_applications: [{
|
||||||
"platform": "webapp",
|
"platform": "webapp",
|
||||||
"url": "https://www.riso.app/manifest.json"
|
"url": "https://www.piuchebuono.app/manifest.json"
|
||||||
}]
|
}]
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
Binary file not shown.
|
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |
@@ -115,7 +115,7 @@
|
|||||||
<div v-if="site.confpages && site.confpages.showMsgs">
|
<div v-if="site.confpages && site.confpages.showMsgs">
|
||||||
<message-popover></message-popover>
|
<message-popover></message-popover>
|
||||||
</div>
|
</div>
|
||||||
<div v-if="site.confpages && site.confpages.showCoins">
|
<div v-if="site.confpages && site.confpages.showCoins || site.confpages.showRIS">
|
||||||
<coinsPopover v-model="rightCoinsOpen"></coinsPopover>
|
<coinsPopover v-model="rightCoinsOpen"></coinsPopover>
|
||||||
</div>
|
</div>
|
||||||
<div v-if="site.confpages && site.confpages.showNotif">
|
<div v-if="site.confpages && site.confpages.showNotif">
|
||||||
|
|||||||
@@ -233,6 +233,7 @@ export interface IConfPages {
|
|||||||
showMsgs: boolean
|
showMsgs: boolean
|
||||||
showNotif: boolean
|
showNotif: boolean
|
||||||
showCoins: boolean
|
showCoins: boolean
|
||||||
|
showRIS: boolean
|
||||||
showMenuCoins: boolean
|
showMenuCoins: boolean
|
||||||
showNameSurname: boolean
|
showNameSurname: boolean
|
||||||
showCompetenze: boolean
|
showCompetenze: boolean
|
||||||
|
|||||||
@@ -493,6 +493,16 @@
|
|||||||
:type="costanti.FieldType.boolean"
|
:type="costanti.FieldType.boolean"
|
||||||
>
|
>
|
||||||
</CMyFieldDb>
|
</CMyFieldDb>
|
||||||
|
<CMyFieldDb
|
||||||
|
table="sites"
|
||||||
|
:title="$t('confpages.showRIS')"
|
||||||
|
:id="mysite._id"
|
||||||
|
:rec="mysite"
|
||||||
|
mykey="confpages"
|
||||||
|
mysubkey="showRIS"
|
||||||
|
:type="costanti.FieldType.boolean"
|
||||||
|
>
|
||||||
|
</CMyFieldDb>
|
||||||
<CMyFieldDb
|
<CMyFieldDb
|
||||||
table="sites"
|
table="sites"
|
||||||
:title="$t('confpages.showMenuCoins')"
|
:title="$t('confpages.showMenuCoins')"
|
||||||
|
|||||||
@@ -1557,7 +1557,8 @@ const msg_it = {
|
|||||||
sendNewsletter: 'Menu Invia Newsletter',
|
sendNewsletter: 'Menu Invia Newsletter',
|
||||||
showMsgs: 'Messaggi',
|
showMsgs: 'Messaggi',
|
||||||
showNotif: 'Notifiche',
|
showNotif: 'Notifiche',
|
||||||
showCoins: 'RIS',
|
showCoins: 'Monete',
|
||||||
|
showRIS: 'RIS',
|
||||||
showMenuCoins: 'Menu Monete',
|
showMenuCoins: 'Menu Monete',
|
||||||
showNameSurname: 'Mostra Nome e Cognome',
|
showNameSurname: 'Mostra Nome e Cognome',
|
||||||
showCompetenze: 'Mostra Competenze',
|
showCompetenze: 'Mostra Competenze',
|
||||||
|
|||||||
@@ -1931,7 +1931,7 @@ export const useUserStore = defineStore('UserStore', {
|
|||||||
|
|
||||||
const globalStore = useGlobalStore()
|
const globalStore = useGlobalStore()
|
||||||
|
|
||||||
if (globalStore.site && !globalStore.site.confpages.showCoins) {
|
if (globalStore.site && (!globalStore.site.confpages.showCoins && !globalStore.site.confpages.showRIS)) {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -162,6 +162,7 @@ export const useGlobalStore = defineStore('GlobalStore', {
|
|||||||
showMsgs: false,
|
showMsgs: false,
|
||||||
showNotif: false,
|
showNotif: false,
|
||||||
showCoins: false,
|
showCoins: false,
|
||||||
|
showRIS: false,
|
||||||
showMenuCoins: false,
|
showMenuCoins: false,
|
||||||
showNameSurname: false,
|
showNameSurname: false,
|
||||||
showCompetenze: false,
|
showCompetenze: false,
|
||||||
|
|||||||
@@ -38,6 +38,7 @@ export default defineComponent({
|
|||||||
props: {},
|
props: {},
|
||||||
setup() {
|
setup() {
|
||||||
const userStore = useUserStore()
|
const userStore = useUserStore()
|
||||||
|
const globalStore = useGlobalStore()
|
||||||
const notifStore = useNotifStore()
|
const notifStore = useNotifStore()
|
||||||
const circuitStore = useCircuitStore()
|
const circuitStore = useCircuitStore()
|
||||||
const $route = useRoute()
|
const $route = useRoute()
|
||||||
@@ -550,6 +551,7 @@ export default defineComponent({
|
|||||||
aggiornaSaldo,
|
aggiornaSaldo,
|
||||||
loadSaldo,
|
loadSaldo,
|
||||||
optionsmov,
|
optionsmov,
|
||||||
|
globalStore,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -316,6 +316,7 @@
|
|||||||
v-if="
|
v-if="
|
||||||
userStore.my.profile &&
|
userStore.my.profile &&
|
||||||
userStore.my.profile.calc.numGoodsAndServices <= 0 &&
|
userStore.my.profile.calc.numGoodsAndServices <= 0 &&
|
||||||
|
globalStore.site.confpages.showRIS &&
|
||||||
userStore.IsMyCircuitByName(circuit.name)
|
userStore.IsMyCircuitByName(circuit.name)
|
||||||
"
|
"
|
||||||
rounded
|
rounded
|
||||||
@@ -332,7 +333,10 @@
|
|||||||
><br />
|
><br />
|
||||||
</q-banner>
|
</q-banner>
|
||||||
<q-banner
|
<q-banner
|
||||||
v-else-if="userStore.my.profile.calc.numGoodsAndServices <= 0"
|
v-else-if="
|
||||||
|
globalStore.site.confpages.showRIS &&
|
||||||
|
userStore.my.profile.calc.numGoodsAndServices <= 0
|
||||||
|
"
|
||||||
rounded
|
rounded
|
||||||
class="bg-deep-purple text-white"
|
class="bg-deep-purple text-white"
|
||||||
style="text-align: center"
|
style="text-align: center"
|
||||||
|
|||||||
Reference in New Issue
Block a user