- Installazione primo Sito Web del server
- Creazione prima pagina Home
This commit is contained in:
@@ -1,30 +1,26 @@
|
|||||||
DATABASE=PiuCheBuono
|
APP_VERSION="1.0.22"
|
||||||
UDB=paofreeplanet
|
SERVICE_WORKER_FILE="service-worker.js"
|
||||||
PDB=suerteFreePlanet@1A
|
APP_ID="17"
|
||||||
SEND_EMAIL=1
|
DIRECTORY_LOCAL=newfreeplanet
|
||||||
PORT=3000
|
|
||||||
appTelegram_TEST=["17"]
|
|
||||||
appTelegram=["17"]
|
|
||||||
ENABLE_PUSHNOTIFICATION=1
|
|
||||||
DIRECTORY_SERVER=freeplanet_serverside
|
DIRECTORY_SERVER=freeplanet_serverside
|
||||||
SERVERDIR_WEBSITE=www.freeplanet_server
|
SERVERDIR_WEBSITE="/var/customers/webs/paolouser/piuchebuono.app/"
|
||||||
PORT_APP1="0"
|
APP_URL="https://piuchebuono.app"
|
||||||
DOMAIN=mongodb://localhost:32001/
|
URL_FACEBOOK=""
|
||||||
AUTH_MONGODB=1
|
PROVA_PAOLO=""
|
||||||
MONGODB_USER=admin
|
LANG_DEFAULT="it"
|
||||||
MONGODB_PWD=mypwadminREAL@1A
|
PAO_APP_ID="KKPPAA5KJK435J3KSS9F9D8S9F8SD98F9SDF"
|
||||||
SIGNCODE=SU2134hncaskjdbo231oihJSDNHEI$1@AB
|
MASTER_KEY="KKPPSS5KJK435J3KSS9F9D8S9F8SD3CR3T"
|
||||||
DEBUG=0
|
MONGODB_HOST="https://srv.piuchebuono.app:3000"
|
||||||
LOCALE=0
|
LOGO_REG='piuchebuono-logo-full.png'
|
||||||
DELAY_SENDEMAIL=1000
|
TEST_NAME=""
|
||||||
VAPI_KEY_SUBJECT="mailto:surya@riso.app"
|
TEST_SURNAME=""
|
||||||
PUBLIC_VAPI_KEY="BJgo8XR_upbnbMLWgCAUELo6DK7dRXffYAnFOxbaMMz5favBgcQBKT-eISqouO-jRad4Sw8l5nd2wCF6KorGiTc"
|
TEST_EMAIL=""
|
||||||
PRIVATE_VAPI_KEY="LVpFDJuKscdHuQr5pe20dFuYuWX1-ZRb6x72PP-Pp4I"
|
TEST_USERNAME=""
|
||||||
GCM_API_KEY="AIzaSyD7w1jztfVV05mX1iyxoI-r1pZWxuxdUK8"
|
TEST_PASSWORD=""
|
||||||
PATH_CERT_KEY=key.pem
|
TEST_APORTADOR="------"
|
||||||
PATH_SERVER_CRT=cert.pem
|
PUBLICKEY_PUSH="BJgo8XR_upbnbMLWgCAUELo6DK7dRXffYAnFOxbaMMz5favBgcQBKT-eISqouO-jRad4Sw8l5nd2wCF6KorGiTc"
|
||||||
PATH_SSL_ROOT_PEM=root.pem
|
DEBUG="1"
|
||||||
PATH_SSL_CHAIN_PEM=chain.pem
|
TELEGRAM_SUPPORT=""
|
||||||
PROD=0
|
PROJECT_ID_MAIN="5cc0a13fe5c9d156728f400a"
|
||||||
PROJECT_DESCR_MAIN='__PROJECTS'
|
TEST_CELL=""
|
||||||
SECRK=iUUb38v23jjDFaosWj92axkBOXCQ
|
ISTEST=0
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ LANG_DEFAULT="it"
|
|||||||
PAO_APP_ID="KKPPAA5KJK435J3KSS9F9D8S9F8SD98F9SDF"
|
PAO_APP_ID="KKPPAA5KJK435J3KSS9F9D8S9F8SD98F9SDF"
|
||||||
MASTER_KEY="KKPPSS5KJK435J3KSS9F9D8S9F8SD3CR3T"
|
MASTER_KEY="KKPPSS5KJK435J3KSS9F9D8S9F8SD3CR3T"
|
||||||
MONGODB_HOST="https://srv.piuchebuono.app:3001"
|
MONGODB_HOST="https://srv.piuchebuono.app:3001"
|
||||||
LOGO_REG='riso-logo-full.png'
|
LOGO_REG='piuchebuono-logo-full.png'
|
||||||
TEST_NAME=""
|
TEST_NAME=""
|
||||||
TEST_SURNAME=""
|
TEST_SURNAME=""
|
||||||
TEST_EMAIL=""
|
TEST_EMAIL=""
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ SERVICE_WORKER_FILE="service-worker.js"
|
|||||||
APP_ID="13"
|
APP_ID="13"
|
||||||
DIRECTORY_LOCAL=newfreeplanet
|
DIRECTORY_LOCAL=newfreeplanet
|
||||||
DIRECTORY_SERVER=test.freeplanet_serverside
|
DIRECTORY_SERVER=test.freeplanet_serverside
|
||||||
SERVERDIR_WEBSITE="/var/customers/webs/paolouser/testriso/"
|
SERVERDIR_WEBSITE="/var/customers/webs/paolouser/test.piuchebuono.app/"
|
||||||
APP_URL="https://testriso.piuchebuono.app"
|
APP_URL="https://testriso.piuchebuono.app"
|
||||||
URL_FACEBOOK=""
|
URL_FACEBOOK=""
|
||||||
PROVA_PAOLO=""
|
PROVA_PAOLO=""
|
||||||
|
|||||||
15
.vscode/settings.json
vendored
15
.vscode/settings.json
vendored
@@ -1,7 +1,16 @@
|
|||||||
{
|
{
|
||||||
"vetur.validation.template": false,
|
"vetur.validation.template": false,
|
||||||
"vetur.format.enable": false,
|
"vetur.format.enable": false,
|
||||||
"eslint.validate": ["javascript", "javascriptreact", "typescript", "vue"],
|
"eslint.validate": [
|
||||||
|
"javascript",
|
||||||
|
"javascriptreact",
|
||||||
|
"typescript",
|
||||||
|
"vue"
|
||||||
|
],
|
||||||
"typescript.tsdk": "node_modules/typescript/lib",
|
"typescript.tsdk": "node_modules/typescript/lib",
|
||||||
"vetur.experimental.templateInterpolationService": true
|
"vetur.experimental.templateInterpolationService": true,
|
||||||
}
|
"files.watcherExclude": {
|
||||||
|
"**/.git/objects/**": true,
|
||||||
|
"**/node_modules/**": true
|
||||||
|
},
|
||||||
|
}
|
||||||
26
deploy_on_prod_pcb.sh
Executable file
26
deploy_on_prod_pcb.sh
Executable file
@@ -0,0 +1,26 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
source ./.env.prod.pcb
|
||||||
|
|
||||||
|
cp .env.prod.pcb .env.production
|
||||||
|
|
||||||
|
msg="*** IN PRODUZIONE !!!!! SEI SICURO DI INVIARE GLI AGGIORNAMENTI SUL SERVER DI PRODUZIONE ?? $SERVERDIR_WEBSITE (Y/N) ? "
|
||||||
|
|
||||||
|
if [ "$1" = "" ]; then
|
||||||
|
read -p "$msg" risposta
|
||||||
|
else
|
||||||
|
echo $msg
|
||||||
|
risposta=$1
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
if [[ $risposta == "Y" || $risposta == "y" ]]; then
|
||||||
|
|
||||||
|
npm run buildpwa
|
||||||
|
|
||||||
|
echo "Sincronizzazione in remoto $SERVERDIR_WEBSITE ..."
|
||||||
|
rsync -e 'ssh -p 8822' -a dist/pwa/ pcbuser@pcb:$SERVERDIR_WEBSITE
|
||||||
|
|
||||||
|
echo "Finito $SERVERDIR_WEBSITE "
|
||||||
|
|
||||||
|
fi
|
||||||
@@ -3,7 +3,7 @@ import { useQuasar } from 'quasar'
|
|||||||
import { useI18n } from '@src/boot/i18n'
|
import { useI18n } from '@src/boot/i18n'
|
||||||
import { useUserStore } from '@store/UserStore'
|
import { useUserStore } from '@store/UserStore'
|
||||||
import { useGlobalStore } from '@store/globalStore'
|
import { useGlobalStore } from '@store/globalStore'
|
||||||
import { defineComponent, PropType, ref } from 'vue'
|
import { defineComponent, computed, PropType, ref } from 'vue'
|
||||||
import { IUserFields } from 'model'
|
import { IUserFields } from 'model'
|
||||||
import { shared_consts } from '@/common/shared_vuejs'
|
import { shared_consts } from '@/common/shared_vuejs'
|
||||||
import { CLabel } from '@/components/CLabel'
|
import { CLabel } from '@/components/CLabel'
|
||||||
@@ -35,6 +35,8 @@ export default defineComponent({
|
|||||||
const showsendCoinTo = ref(false)
|
const showsendCoinTo = ref(false)
|
||||||
const showingtooltip = ref(false)
|
const showingtooltip = ref(false)
|
||||||
|
|
||||||
|
const site = computed(() => globalStore.site)
|
||||||
|
|
||||||
function myusername() {
|
function myusername() {
|
||||||
return userStore.my.username
|
return userStore.my.username
|
||||||
}
|
}
|
||||||
@@ -84,6 +86,7 @@ export default defineComponent({
|
|||||||
myusername,
|
myusername,
|
||||||
showingtooltip,
|
showingtooltip,
|
||||||
clickOpenSendCoin,
|
clickOpenSendCoin,
|
||||||
|
site,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -22,6 +22,7 @@
|
|||||||
|
|
||||||
>
|
>
|
||||||
<q-btn
|
<q-btn
|
||||||
|
v-if="site.confpages && site.confpages.showCompetenze"
|
||||||
icon="fas fa-house-user"
|
icon="fas fa-house-user"
|
||||||
size="md"
|
size="md"
|
||||||
color="orange"
|
color="orange"
|
||||||
|
|||||||
@@ -5,6 +5,7 @@ import { CImgText } from '@/components/CImgText'
|
|||||||
import { CCard } from '@/components/CCard'
|
import { CCard } from '@/components/CCard'
|
||||||
import { CMyPage } from '@/components/CMyPage'
|
import { CMyPage } from '@/components/CMyPage'
|
||||||
import { CTitleBanner } from '@/components/CTitleBanner'
|
import { CTitleBanner } from '@/components/CTitleBanner'
|
||||||
|
import { useRouter } from 'vue-router'
|
||||||
|
|
||||||
export default defineComponent({
|
export default defineComponent({
|
||||||
name: 'CMyInnerPage',
|
name: 'CMyInnerPage',
|
||||||
@@ -21,10 +22,13 @@ export default defineComponent({
|
|||||||
const rec = ref(<IMyPage | undefined>{})
|
const rec = ref(<IMyPage | undefined>{})
|
||||||
const globalStore = useGlobalStore()
|
const globalStore = useGlobalStore()
|
||||||
|
|
||||||
|
const $router = useRouter()
|
||||||
|
|
||||||
function mounted() {
|
function mounted() {
|
||||||
// console.log('$route.path', $route.path)
|
// console.log('$route.path', $route.path)
|
||||||
rec.value = globalStore.getPage(props.path)
|
rec.value = globalStore.getPage(props.path)
|
||||||
console.log(rec)
|
|
||||||
|
console.log('rec', rec)
|
||||||
}
|
}
|
||||||
|
|
||||||
onMounted(mounted)
|
onMounted(mounted)
|
||||||
|
|||||||
@@ -8,6 +8,7 @@ import { LandingFooter } from '@/components/LandingFooter'
|
|||||||
|
|
||||||
import { CImgTitle } from '../CImgTitle/index'
|
import { CImgTitle } from '../CImgTitle/index'
|
||||||
import { CTitle } from '../CTitle/index'
|
import { CTitle } from '../CTitle/index'
|
||||||
|
import { useRouter } from 'vue-router'
|
||||||
|
|
||||||
export default defineComponent({
|
export default defineComponent({
|
||||||
name: 'CMyPage',
|
name: 'CMyPage',
|
||||||
@@ -51,10 +52,12 @@ export default defineComponent({
|
|||||||
const mypath = toRef(props, 'mypath')
|
const mypath = toRef(props, 'mypath')
|
||||||
|
|
||||||
const globalStore = useGlobalStore()
|
const globalStore = useGlobalStore()
|
||||||
|
const $router = useRouter()
|
||||||
|
|
||||||
const load = async (): Promise<void> => {
|
const load = async (): Promise<void> => {
|
||||||
// console.log('load', mypath.value)
|
// console.log('load', mypath.value)
|
||||||
if (mypath.value !== '') rec.value = await globalStore.loadPage('/' + mypath.value, 'cmypage')
|
if (mypath.value !== '') rec.value = await globalStore.loadPage('/' + mypath.value, 'cmypage')
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
watch(() => props.mypath, async (to: string, from: string) => {
|
watch(() => props.mypath, async (to: string, from: string) => {
|
||||||
|
|||||||
@@ -17,6 +17,7 @@ import { useQuasar } from 'quasar'
|
|||||||
import { useI18n } from '@/boot/i18n'
|
import { useI18n } from '@/boot/i18n'
|
||||||
import { shared_consts } from '@/common/shared_vuejs'
|
import { shared_consts } from '@/common/shared_vuejs'
|
||||||
import objectId from '@src/js/objectId'
|
import objectId from '@src/js/objectId'
|
||||||
|
import { useRouter } from 'vue-router'
|
||||||
|
|
||||||
export default defineComponent({
|
export default defineComponent({
|
||||||
name: 'CMyPageElem',
|
name: 'CMyPageElem',
|
||||||
@@ -62,6 +63,7 @@ export default defineComponent({
|
|||||||
|
|
||||||
const { t } = useI18n()
|
const { t } = useI18n()
|
||||||
const globalStore = useGlobalStore()
|
const globalStore = useGlobalStore()
|
||||||
|
const $router = useRouter()
|
||||||
|
|
||||||
const editOn = computed({
|
const editOn = computed({
|
||||||
get (): boolean {
|
get (): boolean {
|
||||||
@@ -96,6 +98,10 @@ export default defineComponent({
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (mypathin.value === 'home_logout' && globalStore.site.name === 'local' && !rec.value) {
|
||||||
|
$router.replace('/install_site')
|
||||||
|
}
|
||||||
|
|
||||||
if (tools.isManager()) {
|
if (tools.isManager()) {
|
||||||
// console.log('getcookie: ', editOn.value, mypathin.value)
|
// console.log('getcookie: ', editOn.value, mypathin.value)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -17,6 +17,8 @@ import { useI18n } from '@/boot/i18n'
|
|||||||
import { shared_consts } from '@/common/shared_vuejs'
|
import { shared_consts } from '@/common/shared_vuejs'
|
||||||
import objectId from '@src/js/objectId'
|
import objectId from '@src/js/objectId'
|
||||||
|
|
||||||
|
import { useRouter } from 'vue-router'
|
||||||
|
|
||||||
export default defineComponent({
|
export default defineComponent({
|
||||||
name: 'CMyPageElem2',
|
name: 'CMyPageElem2',
|
||||||
components: { LandingFooter, CImgTitle, CTitle, CMyElem, CMyEditElem },
|
components: { LandingFooter, CImgTitle, CTitle, CMyElem, CMyEditElem },
|
||||||
@@ -61,6 +63,7 @@ export default defineComponent({
|
|||||||
|
|
||||||
const { t } = useI18n()
|
const { t } = useI18n()
|
||||||
const globalStore = useGlobalStore()
|
const globalStore = useGlobalStore()
|
||||||
|
const $router = useRouter()
|
||||||
|
|
||||||
const visuEditor = ref(false)
|
const visuEditor = ref(false)
|
||||||
const addOn = ref(false)
|
const addOn = ref(false)
|
||||||
|
|||||||
@@ -21,8 +21,8 @@
|
|||||||
:rules="[
|
:rules="[
|
||||||
(val) => !!val || $t('reg.err.required'),
|
(val) => !!val || $t('reg.err.required'),
|
||||||
(val) =>
|
(val) =>
|
||||||
val.length >= 6 ||
|
val.length >= 5 ||
|
||||||
$t('reg.err.atleast') + ' 6 ' + $t('reg.err.char'),
|
$t('reg.err.atleast') + ' 5 ' + $t('reg.err.char'),
|
||||||
]"
|
]"
|
||||||
>
|
>
|
||||||
<template v-slot:prepend>
|
<template v-slot:prepend>
|
||||||
|
|||||||
@@ -8,6 +8,7 @@ const msg_website_enUs = {
|
|||||||
products: {
|
products: {
|
||||||
quantity: 'Quantità',
|
quantity: 'Quantità',
|
||||||
quantityAvailable: 'Disponibili',
|
quantityAvailable: 'Disponibili',
|
||||||
|
stockQty: 'In Magazzino',
|
||||||
weight: 'Peso',
|
weight: 'Peso',
|
||||||
stars: 'Voto',
|
stars: 'Voto',
|
||||||
color: 'Colore',
|
color: 'Colore',
|
||||||
|
|||||||
@@ -8,6 +8,7 @@ const msg_website_es = {
|
|||||||
products: {
|
products: {
|
||||||
quantity: 'Quantità',
|
quantity: 'Quantità',
|
||||||
quantityAvailable: 'Disponibili',
|
quantityAvailable: 'Disponibili',
|
||||||
|
stockQty: 'In Magazzino',
|
||||||
weight: 'Peso',
|
weight: 'Peso',
|
||||||
stars: 'Voto',
|
stars: 'Voto',
|
||||||
color: 'Colore',
|
color: 'Colore',
|
||||||
|
|||||||
@@ -45,7 +45,7 @@ function getDynamicPages(site: ISites): IListRoutes[] {
|
|||||||
infooter: true,
|
infooter: true,
|
||||||
},*/
|
},*/
|
||||||
{
|
{
|
||||||
active: true,
|
active: site.confpages && site.confpages.showProfile,
|
||||||
order: 120,
|
order: 120,
|
||||||
path: '/myprofile',
|
path: '/myprofile',
|
||||||
materialIcon: 'fas fa-user',
|
materialIcon: 'fas fa-user',
|
||||||
@@ -67,7 +67,7 @@ function getDynamicPages(site: ISites): IListRoutes[] {
|
|||||||
infooter: false,
|
infooter: false,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
active: true,
|
active: site.confpages && site.confpages.showProfile,
|
||||||
order: 120,
|
order: 120,
|
||||||
path: '/editprofile',
|
path: '/editprofile',
|
||||||
materialIcon: 'fas fa-user',
|
materialIcon: 'fas fa-user',
|
||||||
@@ -78,7 +78,7 @@ function getDynamicPages(site: ISites): IListRoutes[] {
|
|||||||
infooter: false,
|
infooter: false,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
active: true,
|
active: site.confpages && site.confpages.showiscrittiMenu,
|
||||||
order: 130,
|
order: 130,
|
||||||
path: '/friends',
|
path: '/friends',
|
||||||
materialIcon: 'fas fa-user-friends',
|
materialIcon: 'fas fa-user-friends',
|
||||||
|
|||||||
@@ -225,9 +225,11 @@ export interface IConfPages {
|
|||||||
showButtHome: boolean
|
showButtHome: boolean
|
||||||
showProfile: boolean
|
showProfile: boolean
|
||||||
showUserMenu: boolean
|
showUserMenu: boolean
|
||||||
|
showiscrittiMenu: boolean
|
||||||
showRegButton: boolean
|
showRegButton: boolean
|
||||||
enableReg: boolean
|
enableReg: boolean
|
||||||
showNL: boolean
|
showNL: boolean
|
||||||
|
sendNewsletter: boolean
|
||||||
showMsgs: boolean
|
showMsgs: boolean
|
||||||
showNotif: boolean
|
showNotif: boolean
|
||||||
showCoins: boolean
|
showCoins: boolean
|
||||||
|
|||||||
@@ -15,6 +15,7 @@ export interface IProduct {
|
|||||||
color?: string,
|
color?: string,
|
||||||
size?: string,
|
size?: string,
|
||||||
quantityAvailable?: number,
|
quantityAvailable?: number,
|
||||||
|
stockQty?: number,
|
||||||
canBeShipped?: boolean,
|
canBeShipped?: boolean,
|
||||||
canBeBuyOnline?: boolean,
|
canBeBuyOnline?: boolean,
|
||||||
weight?: number,
|
weight?: number,
|
||||||
|
|||||||
@@ -413,6 +413,16 @@
|
|||||||
:type="costanti.FieldType.boolean"
|
:type="costanti.FieldType.boolean"
|
||||||
>
|
>
|
||||||
</CMyFieldDb>
|
</CMyFieldDb>
|
||||||
|
<CMyFieldDb
|
||||||
|
table="sites"
|
||||||
|
:title="$t('confpages.showiscrittiMenu')"
|
||||||
|
:id="mysite._id"
|
||||||
|
:rec="mysite"
|
||||||
|
mykey="confpages"
|
||||||
|
mysubkey="showiscrittiMenu"
|
||||||
|
:type="costanti.FieldType.boolean"
|
||||||
|
>
|
||||||
|
</CMyFieldDb>
|
||||||
<CMyFieldDb
|
<CMyFieldDb
|
||||||
table="sites"
|
table="sites"
|
||||||
:title="$t('confpages.showRegButton')"
|
:title="$t('confpages.showRegButton')"
|
||||||
@@ -443,6 +453,16 @@
|
|||||||
:type="costanti.FieldType.boolean"
|
:type="costanti.FieldType.boolean"
|
||||||
>
|
>
|
||||||
</CMyFieldDb>
|
</CMyFieldDb>
|
||||||
|
<CMyFieldDb
|
||||||
|
table="sites"
|
||||||
|
:title="$t('confpages.sendNewsletter')"
|
||||||
|
:id="mysite._id"
|
||||||
|
:rec="mysite"
|
||||||
|
mykey="confpages"
|
||||||
|
mysubkey="sendNewsletter"
|
||||||
|
:type="costanti.FieldType.boolean"
|
||||||
|
>
|
||||||
|
</CMyFieldDb>
|
||||||
<CMyFieldDb
|
<CMyFieldDb
|
||||||
table="sites"
|
table="sites"
|
||||||
:title="$t('confpages.showMsgs')"
|
:title="$t('confpages.showMsgs')"
|
||||||
|
|||||||
@@ -227,7 +227,7 @@ function getRoutesAd(site: ISites) {
|
|||||||
|
|
||||||
*/
|
*/
|
||||||
{
|
{
|
||||||
active: true,
|
active: site.confpages.showCoins,
|
||||||
path: '/admin/ris',
|
path: '/admin/ris',
|
||||||
order: 60,
|
order: 60,
|
||||||
faIcon: 'fa fa-list-alt',
|
faIcon: 'fa fa-list-alt',
|
||||||
@@ -325,7 +325,7 @@ function getRoutesAd(site: ISites) {
|
|||||||
onlyEditor: true
|
onlyEditor: true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
active: true,
|
active: site.confpages && site.confpages.sendNewsletter,
|
||||||
path: '/admin/newsletter',
|
path: '/admin/newsletter',
|
||||||
order: 60,
|
order: 60,
|
||||||
faIcon: 'fa fa-list-alt',
|
faIcon: 'fa fa-list-alt',
|
||||||
|
|||||||
@@ -61,6 +61,7 @@ const msg_it = {
|
|||||||
date: 'Data',
|
date: 'Data',
|
||||||
quantity: 'Quantità',
|
quantity: 'Quantità',
|
||||||
quantityAvailable: 'Disponibili',
|
quantityAvailable: 'Disponibili',
|
||||||
|
stockQty: 'In Magazzino',
|
||||||
weight: 'Peso',
|
weight: 'Peso',
|
||||||
unit: 'Unità di Misura',
|
unit: 'Unità di Misura',
|
||||||
stars: 'Voto',
|
stars: 'Voto',
|
||||||
@@ -73,6 +74,8 @@ const msg_it = {
|
|||||||
ingredienti: 'ingredienti',
|
ingredienti: 'ingredienti',
|
||||||
valori_nutrizionali: 'Valori Nutrizionali',
|
valori_nutrizionali: 'Valori Nutrizionali',
|
||||||
note: 'Note',
|
note: 'Note',
|
||||||
|
codice_EAN: 'EAN',
|
||||||
|
barcode: 'BarCode',
|
||||||
},
|
},
|
||||||
storehouses: {
|
storehouses: {
|
||||||
name: 'Magazzino',
|
name: 'Magazzino',
|
||||||
@@ -1262,7 +1265,7 @@ const msg_it = {
|
|||||||
circuit: {
|
circuit: {
|
||||||
apri: 'Entra !',
|
apri: 'Entra !',
|
||||||
invia_msg_dest: 'Invia la richiesta a {name}',
|
invia_msg_dest: 'Invia la richiesta a {name}',
|
||||||
non_hai_circuito_nazionale: 'Per poter inviare dei RIS ad una persona di un altro territorio, è necessario entrare sul "Circuito RIS Italia"',
|
non_hai_circuito_nazionale: 'Per poter inviare dei RIS ad una persona di un altro territorio, è necessario che entriate entrambi sul "Circuito RIS Italia"',
|
||||||
destin_non_ha_circuito_naz: 'Il tuo Destinatario non è ancora dentro al Circuito RIS Italia',
|
destin_non_ha_circuito_naz: 'Il tuo Destinatario non è ancora dentro al Circuito RIS Italia',
|
||||||
|
|
||||||
beforeentertolocalcircuit: 'Prima di entrare nel Circuito Nazionale occorre accedere in quello della tua Provincia',
|
beforeentertolocalcircuit: 'Prima di entrare nel Circuito Nazionale occorre accedere in quello della tua Provincia',
|
||||||
@@ -1505,9 +1508,11 @@ const msg_it = {
|
|||||||
showButtHome: 'Bottone Home',
|
showButtHome: 'Bottone Home',
|
||||||
showProfile: 'Profilo',
|
showProfile: 'Profilo',
|
||||||
showUserMenu: 'Menu Utente',
|
showUserMenu: 'Menu Utente',
|
||||||
|
showiscrittiMenu: 'Menu Iscritti',
|
||||||
showRegButton: 'Bottone Registrazione',
|
showRegButton: 'Bottone Registrazione',
|
||||||
enableReg: 'Attiva Registrazione',
|
enableReg: 'Attiva Registrazione',
|
||||||
showNL: 'Newsletter',
|
showNL: 'Newsletter',
|
||||||
|
sendNewsletter: 'Menu Invia Newsletter',
|
||||||
showMsgs: 'Messaggi',
|
showMsgs: 'Messaggi',
|
||||||
showNotif: 'Notifiche',
|
showNotif: 'Notifiche',
|
||||||
showCoins: 'RIS',
|
showCoins: 'RIS',
|
||||||
|
|||||||
@@ -1953,6 +1953,11 @@ export const colTableProducts = [
|
|||||||
label_trans: 'products.quantityAvailable',
|
label_trans: 'products.quantityAvailable',
|
||||||
fieldtype: costanti.FieldType.number
|
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: 'canBeShipped', label_trans: 'products.canBeShipped', fieldtype: costanti.FieldType.boolean }),
|
||||||
AddCol({ name: 'canBeBuyOnline', label_trans: 'products.canBeBuyOnline', 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 }),
|
AddCol({ name: 'weight', label_trans: 'products.weight', fieldtype: costanti.FieldType.number }),
|
||||||
|
|||||||
@@ -5588,11 +5588,11 @@ export const tools = {
|
|||||||
.then((res: any) => {
|
.then((res: any) => {
|
||||||
if (res) {
|
if (res) {
|
||||||
userStore.my.profile.userstoverify = userStore.my.profile.userstoverify.filter((rec: any) => rec.username !== usernameDest)
|
userStore.my.profile.userstoverify = userStore.my.profile.userstoverify.filter((rec: any) => rec.username !== usernameDest)
|
||||||
|
|
||||||
if (value)
|
if (value)
|
||||||
tools.showPositiveNotif($q, t('db.enabled_to_app', {username: usernameDest}))
|
tools.showPositiveNotif($q, t('db.enabled_to_app', { username: usernameDest }))
|
||||||
else
|
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
|
return 0
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
||||||
// FINE !
|
// FINE !
|
||||||
|
|
||||||
// getLocale() {
|
// getLocale() {
|
||||||
|
|||||||
@@ -76,6 +76,7 @@ export const useProducts = defineStore('Products', {
|
|||||||
color: '',
|
color: '',
|
||||||
size: '',
|
size: '',
|
||||||
quantityAvailable: 0,
|
quantityAvailable: 0,
|
||||||
|
stockQty: 0,
|
||||||
canBeShipped: false,
|
canBeShipped: false,
|
||||||
canBeBuyOnline: false,
|
canBeBuyOnline: false,
|
||||||
weight: 0,
|
weight: 0,
|
||||||
|
|||||||
@@ -641,7 +641,12 @@ export const useUserStore = defineStore('UserStore', {
|
|||||||
if (globalStore.site.confpages && globalStore.site.confpages.enableRegMultiChoice) {
|
if (globalStore.site.confpages && globalStore.site.confpages.enableRegMultiChoice) {
|
||||||
return ((this.isTelegIdOk() && this.isUsernameTelegOk()) || this.my.verified_email!) && this.my.verified_by_aportador!
|
return ((this.isTelegIdOk() && this.isUsernameTelegOk()) || this.my.verified_email!) && this.my.verified_by_aportador!
|
||||||
} else {
|
} 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!
|
// 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)
|
// 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 })
|
await todos.dbLoad({ checkPending: true })
|
||||||
|
|
||||||
if (globalStore.site.confpages.enableProj)
|
if (globalStore.site.confpages.enableProj)
|
||||||
@@ -1909,6 +1914,12 @@ export const useUserStore = defineStore('UserStore', {
|
|||||||
showButtonSendCoin(myuser: IUserFields) {
|
showButtonSendCoin(myuser: IUserFields) {
|
||||||
const oldway = false
|
const oldway = false
|
||||||
|
|
||||||
|
const globalStore = useGlobalStore()
|
||||||
|
|
||||||
|
if (globalStore.site && !globalStore.site.confpages.showCoins) {
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
|
||||||
if (oldway)
|
if (oldway)
|
||||||
return this.getMyCircuitsInCommonByUser(myuser).length > 0
|
return this.getMyCircuitsInCommonByUser(myuser).length > 0
|
||||||
|
|
||||||
|
|||||||
@@ -150,9 +150,11 @@ export const useGlobalStore = defineStore('GlobalStore', {
|
|||||||
show_darkopt: true,
|
show_darkopt: true,
|
||||||
showProfile: false,
|
showProfile: false,
|
||||||
showUserMenu: true,
|
showUserMenu: true,
|
||||||
|
showiscrittiMenu: false,
|
||||||
showRegButton: false,
|
showRegButton: false,
|
||||||
enableReg: false,
|
enableReg: false,
|
||||||
showNL: false,
|
showNL: false,
|
||||||
|
sendNewsletter: false,
|
||||||
showMsgs: false,
|
showMsgs: false,
|
||||||
showNotif: false,
|
showNotif: false,
|
||||||
showCoins: false,
|
showCoins: false,
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ export const validations = {
|
|||||||
},
|
},
|
||||||
username: {
|
username: {
|
||||||
required,
|
required,
|
||||||
minLength: minLength(8),
|
minLength: minLength(5),
|
||||||
complexityUser,
|
complexityUser,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -58,6 +58,7 @@ export default defineComponent({
|
|||||||
emailsent.value = true
|
emailsent.value = true
|
||||||
idapp.value = ris.idapp
|
idapp.value = ris.idapp
|
||||||
tools.showPositiveNotif($q, t('install.created', {idapp: ris.idapp}))
|
tools.showPositiveNotif($q, t('install.created', {idapp: ris.idapp}))
|
||||||
|
$router.replace('/signin')
|
||||||
form.password = ''
|
form.password = ''
|
||||||
} else
|
} else
|
||||||
tools.showNegativeNotif($q, t('reg.err.site_not_created'))
|
tools.showNegativeNotif($q, t('reg.err.site_not_created'))
|
||||||
|
|||||||
Reference in New Issue
Block a user