+
-
+
diff --git a/src/components/index.ts b/src/components/index.ts
index 3b72a8ee..5fa22770 100755
--- a/src/components/index.ts
+++ b/src/components/index.ts
@@ -1,5 +1,6 @@
export * from './logo'
export * from './CMyPage'
+export * from './CMyAvatar'
export * from './CTitle'
export * from './CImgTitle'
export * from './BannerCookies'
diff --git a/src/db/lang/ws_it.js b/src/db/lang/ws_it.js
index 834701e9..92ce554e 100755
--- a/src/db/lang/ws_it.js
+++ b/src/db/lang/ws_it.js
@@ -95,13 +95,14 @@ const msg_website_it = {
hours: 'Ore',
},
msg: {
- myAppDescription: '',
- keywords_base: '',
+ myAppName: 'FreePlanet',
+ myAppDescription: 'Il primo Vero Social Libero, Equo e Solidale, dove Vive Consapevolezza e Aiuto Comunitario. Gratuito e senza Pubblicità',
+ underconstruction: 'App in costruzione...',
myDescriz: '',
sottoTitoloApp: 'Il primo Vero Social',
- sottoTitoloApp2: '',
- sottoTitoloApp3: '',
- sottoTitoloApp4: '',
+ sottoTitoloApp2: 'Libero, Equo e Solidale',
+ sottoTitoloApp3: 'dove Vive Consapevolezza e Aiuto Comunitario',
+ sottoTitoloApp4: 'Gratuito e senza Pubblicità',
},
homepage: {
descrapp_title1: 'Uniti per Evolvere e Sperimentare',
@@ -111,11 +112,86 @@ const msg_website_it = {
descrapp_pag2: 'E\' giunta l\'ora di utilizzare i nuovi strumenti
Tecnologici a nostro
favore, per
Liberarci '
+ 'così piano piano dalla
schiavitù del
"Lavoro per generare Denaro" e trasformando le nostre
Capacitá in '
+ '
Risorse Umane per poterci sostenere e vivere in
Armonia con gli altri.',
- nostra_missione: 'Nostra Missione',
- associazione: '',
- tit_come_associarsi: 'Come Associarsi',
- testo_come_associarsi: '',
- titlecontatti: 'CONTATTI',
+ freesocial: {
+ title: 'Free Social',
+ descr: 'Una Community organizzata per
Categorie, dove potrai unirti a
Gruppi Tematici, '
+ + 'Condividere
Esperienze e unire Competenze per organizzare e sostenere
Progetti Innovativi per il Popolo.
'
+ + 'Verranno evidenziati sviluppi
Etici come l\'
Auto-Produzione, la
Sostenibilitá, '
+ + 'la Buona
Salute Naturale e il
Rispetto per l\'Ambiente e per tutti gli
Esseri Viventi di questo '
+ + '
Pianeta. Chiunque potrá esprimere il proprio
Consenso o Dissenso partecipando a
Sondaggi Interattivi'
+ + ' e realizzare insieme i
Cambiamenti necessari alla nostra Società.',
+ },
+ freetalent: {
+ title: 'Free Talent',
+ descr: 'Condividi i tuoi
Talenti e
Abilità, '
+ + 'al posto del denaro guadagnagnerai
Tempo.
'
+ + '
"1 ora" diventa moneta di scambio, uguale per tutti.
'
+ + 'Potrai utilizzare questi tuoi
"Crediti Tempo" per soddisfare le tue necessità, cercando nelle
Competenze Disponibili.
'
+ + 'Nel Dare e Ricevere, si creeranno così legami di
Amicizia, Solidarietà, Cooperazione e Divertimento'
+ + 'Questo progetto vuole diffondere, ora in maniera informatizzata, questa realtà che gia esiste da tanti anni, e viene chiamata
"Banca del Tempo". '
+ + 'Le
segreterie sparse in tutto il mondo, serviranno a dare maggiore
affidabilità e
fiducia negli scambi di talenti tra persone sconosciute. '
+ + 'Creeremo così una
rete di fiducia nel vicinato, come giá viene praticato in numerosi
Ecovillaggi e Comunità del mondo.',
+ },
+ freegas: {
+ title: 'Free G.A.S.',
+ descr: 'Ti piacerebbe utilizzare una App che ti permetta facilmente di acquistare Prodotti Locali direttamente dal
Produttore?
'
+ + 'Con i
Gruppi di Acquisto Solidale si evitano intermediazioni inutili, ottenendo parecchi benefici tra cui:
'
+ + '
- Qualitá Superiore del prodotto
'
+ + '- Le Recensioni dei consumatori favoriranno i Produttori con Sani Intenti
'
+ + '- Possiblità d\'interagire con il Produttore
'
+ + '- Apertura alle Relazioni tra persone, condividendo Ricette e Consigli preziosi
'
+ + '- Risparmio di soldi (prezzi all\'Ingrosso)
'
+ + '- Valorizzare il Territorio e l\'Economia Locale
'
+ + '- Condizioni Eque per i Lavoratori
'
+ + '- Ridotto Impatto Ambientale
',
+ },
+ freeliving: {
+ title: 'Free Co-Living',
+ descr: 'Unire più realtà, condividendo l\'esperienza di abitare insieme, per un periodo definito:
'
+ + '1) C\'è chi
Vive solo ed ha una casa.
'
+ + '2) Chi ha bisogno di un
alloggio temporaneo.
'
+ + 'Oggi sempre più persone
abitano da sole e vorrebbero continuare a vivere nella propria abitazione.
'
+ + 'Altre persone invece hanno bisogno di una
stanza, per scelta o per necessita, ed in cambio sono disponibili a '
+ + '
contribuire alle spese per le utenze domestiche o magari
aiutare la persona a
fare la spesa, cucinare,
pulire casa oppure offrendogli semplicemente
compagnia.
'
+ + 'Tramite questo strumento, le persone potranno trovarsi, mettersi in contatto e decidere in che forma
co-abitare e per quanto tempo. Le
recensioni rilasciate ed il
dettaglio dei profili utenti, '
+ + 'aiuterà nella scelta della persona più in
sintonia.',
+
+ },
+ freecollabora: {
+ title: 'Chi può Collaborare?',
+ descr: 'Tutti coloro che sono in linea con
Princìpi Etici e ricerca del
Benessere Globale del Pianeta'
+ + 'Pertanto sono i benvenuti:'
+ + '
'
+ + '- Associazioni no-profit, Ecovillaggi, Comunità
'
+ + '- Gruppi che intendono promuovere Progetti Sociali Innovativi per una Decrescita Felice
'
+ + '- Chi gestisce un Gruppo di Acquisto Solidale (G.A.S.)
'
+ + '- Produttori Locali Etici
'
+ + '- Chi gestisce una Banca del Tempo
'
+ + '- Chiunque voglia partecipare, nella forma che ritiene più opportuna.
'
+ + '
',
+ },
+ freesostieni: {
+ title: 'Come Sostenere il progetto?',
+ descr: '
'
+ + '- Condividendolo a tutti coloro che vogliono far parte insieme della crescita e sviluppo di una Nuova Era
'
+ + '- Rispondendo ai Sondaggi Popolari e lasciando Feedback
'
+ + '- Tramite una donazione (anche 1€ ) per le spese.
'
+ + '
'
+ + 'Vedo un
futuro dove non si utilizzerà più denaro. Dove le persone si
aiuteranno a vicenda e non avranno bisogno di "possedere" cose, ma le
condivideranno con gli altri.
',
+ },
+ multiplatform: {
+ title: 'Multi-piattaforma',
+ descr: 'E\' compatibile con Google Chrome, Firefox, Safari, iOS, Android e PC. L\'Applicazione s\'installa facilmente, senza passare dallo store. '
+ + 'basta condividere il nome del sito
www.freeplanet.app.
'
+ + 'Dopo la registrazione chiederà di aggiungerlo alla lista delle applicazioni e sullo sfondo',
+ },
+ free: {
+ title: 'Gratuita, Open Source e Niente Pubblicità',
+ descr: 'Questa App
non è in vendita, non ha scopi commerciali,
non ha prezzo ed appartiene al
Popolo del Nuovo Mondo.
Chiunque potrá utilizzarla e beneficiarne.
A me il compito di gestirla e proteggerla. '
+ + 'Verranno accettate solo donazioni Libere di privati ed Associazioni no-profit, in linea con i Principi, che serviranno per coprire le spese.
'
+ + '
Grazie a Tutti per il sostegno. ',
+ },
+ contacts: 'Contatti',
},
};
diff --git a/src/globalroutines/index.ts b/src/globalroutines/index.ts
index 41dea926..75a74ca7 100755
--- a/src/globalroutines/index.ts
+++ b/src/globalroutines/index.ts
@@ -3,7 +3,7 @@
import { idbKeyval as storage } from '@src/js/storage'
-export default async (context: any, cmd: string, table: string, data: any = null, id = '') => {
+export default async (cmd: string, table: string, data: any = null, id = '') => {
// const globalStore = useGlobalStore()
// const descr = data !== null ? data.descr : ''
diff --git a/src/layouts/toolbar/messagePopover/messagePopover.ts b/src/layouts/toolbar/messagePopover/messagePopover.ts
index 1afcaa7d..3c14cffc 100755
--- a/src/layouts/toolbar/messagePopover/messagePopover.ts
+++ b/src/layouts/toolbar/messagePopover/messagePopover.ts
@@ -15,8 +15,6 @@ const namespace = 'MessageModule'
export default defineComponent({
name: 'MessagePopover',
- mixins: [MixinUsers],
-
setup(props) {
const $router = useRouter()
// function lasts_messages (state: IUserState) => IMessage[] {
diff --git a/src/mixins/mixin-users.ts b/src/mixins/mixin-users.ts
index 665a41fa..2e28a4b2 100755
--- a/src/mixins/mixin-users.ts
+++ b/src/mixins/mixin-users.ts
@@ -1,153 +1,167 @@
-import { Vue, Options } from 'vue-class-component'
-import { defineComponent, ref } from 'vue'
-
import { IMessage } from '@src/model'
import { useUserStore } from '@store/UserStore'
import { useGlobalStore } from '@store/globalStore'
-import { tools } from '../store/Modules/tools'
-import { func_tools } from '../store/Modules/toolsext'
// You can declare a mixin as the same style as components.
-export default defineComponent({
- name: 'MixinUsers',
- setup(props) {
- function getUserByUsername(username: string) {
- const userStore = useUserStore()
- return userStore.getNameSurnameByUsername(username)
- }
+export default function () {
+ function getUserByUsername(username: string) {
+ const userStore = useUserStore()
+ return userStore.getNameSurnameByUsername(username)
+ }
- function getImgByUsername(username: string) {
- const userStore = useUserStore()
- return `public/${userStore.getImgByUsername(username)}`
- }
+ function getImgByUsername(username: string) {
+ const userStore = useUserStore()
+ return `public/${userStore.getImgByUsername(username)}`
+ }
- function isValidUsername(username: string) {
- return username && username !== 'nessuno' && username !== 'none'
- }
+ function isValidUsername(username: string) {
+ return username && username !== 'nessuno' && username !== 'none'
+ }
- function getMyUsername() {
- const userStore = useUserStore()
- return userStore.my.username
- }
+ function getMyUsername() {
+ const userStore = useUserStore()
+ return userStore.my.username
+ }
- function getUsernameChatByMsg(msg: IMessage) {
- if (msg) {
- if (msg.dest) {
- if (msg.dest.username !== getMyUsername()) return msg.dest.username
- return msg.origin ? msg.origin.username : {}
- }
- } else {
- return ''
+ function getUsernameChatByMsg(msg: IMessage) {
+ if (msg) {
+ if (msg.dest) {
+ if (msg.dest.username !== getMyUsername()) return msg.dest.username
+ return msg.origin ? msg.origin.username : {}
}
+ } else {
return ''
}
+ return ''
+ }
- function getnumItemsCart(): any {
- // ++Todo: conv
- /* const arrcart = Products.cart
- if (!!arrcart) {
- if (!!arrcart.items) {
- // @ts-ignore
- const total = arrcart.items.reduce((sum, item) => sum + item.order.quantity, 0)
- return total
- }
- } */
- return 0
- }
+ function getnumItemsCart(): any {
+ // ++Todo: conv
+ /* const arrcart = Products.cart
+ if (!!arrcart) {
+ if (!!arrcart.items) {
+ // @ts-ignore
+ const total = arrcart.items.reduce((sum, item) => sum + item.order.quantity, 0)
+ return total
+ }
+ } */
+ return 0
+ }
- function getImgByMsg(msg: IMessage) {
- const userStore = useUserStore()
- // @ts-ignore
- return `public/${userStore.getImgByUsername(this.getUsernameChatByMsg(msg))}`
- }
+ function getImgByMsg(msg: IMessage) {
+ const userStore = useUserStore()
+ // @ts-ignore
+ return `public/${userStore.getImgByUsername(this.getUsernameChatByMsg(msg))}`
+ }
- function getMyImg() {
- const userStore = useUserStore()
- const ris = userStore.getImgByUsername(userStore.my.username)
- return (ris !== '') ? `public/${ris}` : ''
- }
+ function getMyImg() {
+ const userStore = useUserStore()
+ const ris = userStore.getImgByUsername(userStore.my.username)
+ return (ris !== '') ? `public/${ris}` : ''
+ }
- function getMyImgforIcon() {
- const userStore = useUserStore()
- const ris = userStore.getImgByUsername(userStore.my.username)
- return (ris !== '') ? `img:public/${ris}` : 'fas fa-user'
- }
+ function getMyImgforIcon() {
+ const userStore = useUserStore()
+ const ris = userStore.getImgByUsername(userStore.my.username)
+ return (ris !== '') ? `img:public/${ris}` : 'fas fa-user'
+ }
- function getIconCart() {
- const iconcart = 'fas fa-shopping-cart'
+ function getIconCart() {
+ const iconcart = 'fas fa-shopping-cart'
- return iconcart
- }
+ return iconcart
+ }
- function MenuCollapse() {
- const globalStore = useGlobalStore()
- return globalStore.menuCollapse
- // return true
- }
+ function MenuCollapse() {
+ const globalStore = useGlobalStore()
+ return globalStore.menuCollapse
+ // return true
+ }
- function Username() {
- const userStore = useUserStore()
- return userStore.my.username
- }
+ function Username() {
+ const userStore = useUserStore()
+ return userStore.my.username
+ }
- function myName() {
- const userStore = useUserStore()
- return userStore.my.name
- }
+ function myName() {
+ const userStore = useUserStore()
+ return userStore.my.name
+ }
- function mySurname() {
- const userStore = useUserStore()
- return userStore.my.surname
- }
+ function mySurname() {
+ const userStore = useUserStore()
+ return userStore.my.surname
+ }
- function myCell() {
- const userStore = useUserStore()
- return userStore.my.profile.cell
- }
+ function myCell() {
+ const userStore = useUserStore()
+ return userStore.my.profile.cell
+ }
- function Verificato() {
- const userStore = useUserStore()
- return userStore.my.verified_email
- }
+ function Verificato() {
+ const userStore = useUserStore()
+ return userStore.my.verified_email
+ }
- function MadeGift() {
- const userStore = useUserStore()
- return userStore.my.made_gift
- }
+ function paotest() {
+ return 'Ciaoooooooooooooooo!'
+ }
- function Email() {
- const userStore = useUserStore()
- return userStore.my.email
- }
+ function MadeGift() {
+ const userStore = useUserStore()
+ return userStore.my.made_gift
+ }
- function getNumMsg() {
- // ++Todo: conv
- /*
- return MessageStore.getlasts_messages().length
- */
+ function Email() {
+ const userStore = useUserStore()
+ return userStore.my.email
+ }
- return 0
- }
+ function getNumMsg() {
+ // ++Todo: conv
+ /*
+ return MessageStore.getlasts_messages().length
+ */
- function getNumMsgUnread() {
- // return userStore.getlasts_messages().length
- // ++Todo: conv
- // return MessageStore.getnumMsgUnread()
- return 0
- }
+ return 0
+ }
- function getMsgText(msg: IMessage, inarray: boolean) {
- let add = ''
- if (msg.origin && msg.origin.username === getMyUsername()) add = 'Tu: '
+ function getNumMsgUnread() {
+ // return userStore.getlasts_messages().length
+ // ++Todo: conv
+ // return MessageStore.getnumMsgUnread()
+ return 0
+ }
- const ris = add + msg.message
- if (inarray) return [ris]
- return ris
- }
+ function getMsgText(msg: IMessage, inarray: boolean) {
+ let add = ''
+ if (msg.origin && msg.origin.username === getMyUsername()) add = 'Tu: '
- return {
- getUsernameChatByMsg,
- getMyUsername,
- }
- },
-})
+ const ris = add + msg.message
+ if (inarray) return [ris]
+ return ris
+ }
+
+ return {
+ getUsernameChatByMsg,
+ getMyUsername,
+ Username,
+ myName,
+ mySurname,
+ myCell,
+ Verificato,
+ MadeGift,
+ Email,
+ getMyImg,
+ getMyImgforIcon,
+ getImgByMsg,
+ getnumItemsCart,
+ getUserByUsername,
+ getImgByUsername,
+ isValidUsername,
+ getNumMsg,
+ getNumMsgUnread,
+ getMsgText,
+ paotest,
+ }
+}
diff --git a/src/model/Products.ts b/src/model/Products.ts
index 4488d157..fa71d49a 100755
--- a/src/model/Products.ts
+++ b/src/model/Products.ts
@@ -3,8 +3,8 @@ export interface IProduct {
active?: boolean
idProducer?: string,
idStorehouses?: string[],
- producer?: IProducer,
- storehouses?: IStorehouse[],
+ producer: IProducer,
+ storehouses: IStorehouse[],
code?: string,
name?: string,
description?: string,
@@ -25,7 +25,7 @@ export interface IProduct {
}
export interface IBaseOrder {
- order?: IOrder
+ order: IOrder
}
export interface IOrder {
diff --git a/src/model/Todos.ts b/src/model/Todos.ts
index ba75d094..d99b7812 100755
--- a/src/model/Todos.ts
+++ b/src/model/Todos.ts
@@ -50,7 +50,7 @@ export interface IDrag {
export interface ITodosState {
showtype: number
- todos: {}
+ todos: any
categories: string[]
// todos_changed: number
reload_fromServer: number
diff --git a/src/root/home/home.vue b/src/root/home/home.vue
index 3c166863..2676fab6 100755
--- a/src/root/home/home.vue
+++ b/src/root/home/home.vue
@@ -50,7 +50,7 @@