From 3fb1de9b70128e455249285a4b16f993bb768e05 Mon Sep 17 00:00:00 2001 From: Paolo Arena Date: Tue, 19 May 2020 00:18:55 +0200 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=E2=9C=A8=E2=9C=A8=20AGGIORNAMENTO=20S?= =?UTF-8?q?ITO=20=E2=9C=A8=E2=9C=A8=E2=9C=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 👉🏻 E' possibile ora visualizzare la Posizione Reale d'imbarco di quando si verrà aggiunti alle prossime Navi Definitive. Le posizioni verranno aggiornate ogni ora in automatico! 👉🏻 Ora gli imbarchi comprendono anche le navi provvisorie, pertanto è possibile annullarli oppure cambiare l'Invitante, dalla lista imbarchi. 👉🏻 E' ora possibile spostare gli invitati solo se si hanno piu' di 2 invitati per ogni Nave già partita. 👨🏻‍💻 Per i Tutor: 👉🏻- Sostituzioni : Cliccando su "Cerca il Primo Disponibile" vi suggerirà in automatico il primo passeggero disponibile per la sostituzione. ✨✨✨✨✨✨✨✨✨✨✨✨✨✨✨✨ --- src/common/shared_vuejs.ts | 2 + src/components/CCardStat/CCardStat.vue | 2 +- src/components/CCardState/CCardState.vue | 2 +- .../CGridTableRec/CGridTableRec.scss | 7 + .../CGridTableRec/CGridTableRec.vue | 15 +- .../CListNationality/CListNationality.scss | 18 +- .../CListNationality/CListNationality.vue | 4 +- src/components/CMyDashboard/CMyDashboard.scss | 2 +- src/components/CMyDashboard/CMyDashboard.ts | 111 +++++------ src/components/CMyDashboard/CMyDashboard.vue | 55 +++--- src/components/CMyNave/CMyNave.ts | 37 ++++ src/components/CMyNave/CMyNave.vue | 26 ++- src/components/CStatusReg/CStatusReg.vue | 182 ++++++++++-------- src/components/CUserBadge/CUserBadge.vue | 6 +- src/model/NotevoleStore.ts | 2 + src/model/UserStore.ts | 1 + src/rootgen/admin/usersList/usersList.ts | 8 + src/statics/lang/enUs.js | 2 + src/statics/lang/es.js | 2 + src/statics/lang/fr.js | 2 + src/statics/lang/it.js | 6 +- src/statics/lang/pt.js | 25 +-- src/statics/lang/si.js | 2 + src/store/Modules/GlobalStore.ts | 21 +- src/store/Modules/NotevoleStore.ts | 2 + src/store/Modules/fieldsTable.ts | 31 ++- src/store/Modules/lists.ts | 1 + src/store/Modules/tools.ts | 92 +++++---- src/views/admin/dbop/dbop.vue | 33 +++- 29 files changed, 430 insertions(+), 269 deletions(-) diff --git a/src/common/shared_vuejs.ts b/src/common/shared_vuejs.ts index 5bf704a..48c6a00 100755 --- a/src/common/shared_vuejs.ts +++ b/src/common/shared_vuejs.ts @@ -31,6 +31,8 @@ export const shared_consts = { FILTER_USER_NO_DREAM: 256, FILTER_EXTRALIST_DELETED: 512, FILTER_USER_TELEGRAM_BLOCKED: 1024, + FILTER_ATTIVI: 2048, + FILTER_NASCOSTI: 4096, Permissions: { Admin: { diff --git a/src/components/CCardStat/CCardStat.vue b/src/components/CCardStat/CCardStat.vue index 0b2b88d..eb7defa 100755 --- a/src/components/CCardStat/CCardStat.vue +++ b/src/components/CCardStat/CCardStat.vue @@ -1,6 +1,6 @@ - @@ -101,7 +102,8 @@
- +
@@ -109,12 +111,12 @@ diff --git a/src/components/CUserBadge/CUserBadge.vue b/src/components/CUserBadge/CUserBadge.vue index db4644b..85b5f66 100755 --- a/src/components/CUserBadge/CUserBadge.vue +++ b/src/components/CUserBadge/CUserBadge.vue @@ -14,7 +14,7 @@ {{ user.name }} {{ user.surname }} {{ getindorder(user) }}
- ({{ getusername(user) }}) {{ getquanti(user)}} + ({{ getusername(user) }}) {{ getquanti(user)}}
@@ -24,13 +24,13 @@
- +
- +
TUTOR, con lui devi:
    ' + - '
  1. Aprire la tua Gift Chat (tu come proprietario e il Tutor ' + - 'come amministratore) con questo nome:
    {nomenave}
  2. ' + - '
  3. Clicca sul nome della chat in alto -> Modifica -> Amministratori -> "Aggiungi Amministratore", seleziona il Tutor nell’elenco.
  4. ' + - '
  5. Devi configurare la chat in modo che chi entra vede anche i post precedenti (clicca sul nome della chat in alto, clicca su modifica, ' + - 'cambia la "cronologia per i nuovi membri" da nascosta a visibile.
  6. ' + - '
  7. Per trovare il link della Chat appena creata: clicca sul nome della chat in alto, clicca sulla Matita -> "Tipo di Gruppo" -> "invita nel gruppo tramite link", clicca su "copia link" e incollalo qui sotto, sulla casella "Link Gift Chat"
  8. ' + - '
  9. Invia il Link della Gift Chat a tutti i Donatori, cliccando sul bottone qui sotto.
', - sonodonatore: '
  1. Quando sei in questa posizione, verrai invitato (tramite un messaggio su AYNI BOT) ad entrare in una Gift Chat (Telegram) e qui troverai anche gli altri 7 Donatori, il Mediatore, il Sognatore e un rappresentante dello Staff.
  2. ' + - '
  3. Avrai tempo 4 giorni per entrare nella chat e massimo 7 gg per fare il tuo Dono, nella modalità di pagamento che troverai scritto qui.
', - sonodonatore_seconda_tessitura: '
  1. Qui tu sei Mediatore e anche Donatore, ma essendo la seconda Tessitura, non avrai bisogno di effettuare nuovamente il tuo dono
', + sonomediatore: 'Quando você se torna um mediador, um TUTOR entra em contato com você, e deve:
' + + '
  1. Abrir seu bate-papo do presente (você como proprietário e o tutor como administrador) com este nome:
    {nomenave}
  2. ' + + '
  3. Clique no nome do bate-papo na parte superior - > Editar -> Administradores -> "Adicionar administrador", selecione o Tutor na lista.
  4. ' + + '
  5. Você deve configurar o bate-papo de forma que quem entra depois também veja as postagens anteriores (clique no nome do bate-papo na parte superior, clique em editar' + + ' altere o "histórico de novos membros" de oculto para visível.
  6. ' + + '
  7. Para encontrar o link Bate-papo Recém-criado: Clique no nome do bate-papo na parte superior, clique no lápis -> "Tipo de grupo" -> "Convidar grupo via link", clique em "Copiar link" e cole-o abaixo' + + ', na caixa "Link do bate-papo para presente"'+ + 'Envie o link do bate-papo para presente a todos os doadores, clicando no botão abaixo.
', + + sonodonatore: '
  1. Quando você estiver nessa posição, você será convidado (por meio de uma mensagem em AYNI BOT) a entrar em um bate-papo de presentes (Telegram) e aqui também encontrará os outros 7 doadores, o mediador, o sonhador e um representante da equipe.
  2. '+ + '
  3. Você terá 4 dias para entrar no bate-papo e, no máximo, 7 dias para fazer seu presente, na forma de pagamento que você encontrará por escrito aqui.
', + soydonante_secundo_tejido: '
  1. Aqui você é Mediador e também Doador, mas sendo o segundo Tecido, você não terá que fazer seu presente novamente
', controlla_donatori: 'Verifique a Lista de Doadores', link_chat: 'Links de telegramas para o Gift Chat', tragitto: 'Rota', diff --git a/src/statics/lang/si.js b/src/statics/lang/si.js index 6ba74ed..34a8c0e 100755 --- a/src/statics/lang/si.js +++ b/src/statics/lang/si.js @@ -197,6 +197,8 @@ const msg_si = { loggati: 'Uporabnik ni prijavljen' }, dashboard: { + data: 'Data', + ritorno: 'Vrnitev', invitante: 'povabljenca', num_tessitura: 'Numero di Tessitura:', attenzione: 'Pozornosti', diff --git a/src/store/Modules/GlobalStore.ts b/src/store/Modules/GlobalStore.ts index 3876f08..deddd88 100755 --- a/src/store/Modules/GlobalStore.ts +++ b/src/store/Modules/GlobalStore.ts @@ -539,7 +539,10 @@ namespace Actions { // If is not already stored in DB, then show the message to the user. if (!state.wasAlreadySubscribed || notreg) { options = { - title: tools.translate('notification.title_subscribed', [{strin: 'sitename', strout: translate('ws.sitename')}]), + title: tools.translate('notification.title_subscribed', [{ + strin: 'sitename', + strout: translate('ws.sitename') + }]), content: translate('notification.subscribed'), openUrl: '/' } @@ -766,6 +769,18 @@ namespace Actions { }) } + async function askFunz(context, { mydata }) { + // console.log('saveFieldValue', mydata) + + return await Api.SendReq(`/askfunz`, 'PATCH', { data: mydata }) + .then((ris) => { + return ris.data.out + }) + .catch((error) => { + return null + }) + } + async function DeleteRec(context, { table, id }) { console.log('DeleteRec', table, id) @@ -787,7 +802,7 @@ namespace Actions { async function DeleteFile(context, { filename }) { console.log('DeleteFile', filename) - return await Api.SendReq('/delfile', 'DELETE', {filename}) + return await Api.SendReq('/delfile', 'DELETE', { filename }) .then((res) => { if (res.status === 200) { if (res.data.code === serv_constants.RIS_CODE_OK) { @@ -848,6 +863,7 @@ namespace Actions { return null }) } + async function GetArrNavi(context) { console.log('GetArrNavi') @@ -1119,6 +1135,7 @@ namespace Actions { checkUpdates: b.dispatch(checkUpdates), saveFieldValue: b.dispatch(saveFieldValue), callFunz: b.dispatch(callFunz), + askFunz: b.dispatch(askFunz), sendPushNotif: b.dispatch(sendPushNotif), loadTable: b.dispatch(loadTable), saveTable: b.dispatch(saveTable), diff --git a/src/store/Modules/NotevoleStore.ts b/src/store/Modules/NotevoleStore.ts index c69ce51..660430d 100755 --- a/src/store/Modules/NotevoleStore.ts +++ b/src/store/Modules/NotevoleStore.ts @@ -63,6 +63,8 @@ namespace Actions { state.datastat = res.data.datastat state.datastat.arr_nations = JSON.parse(state.datastat.arr_nations) state.datastat.reg_daily = JSON.parse(state.datastat.reg_daily) + state.datastat.imbarcati_daily = JSON.parse(state.datastat.imbarcati_daily) + state.datastat.imbarcati_weekly = JSON.parse(state.datastat.imbarcati_weekly) state.datastat.reg_weekly = JSON.parse(state.datastat.reg_weekly) state.datastat.checkuser = JSON.parse(state.datastat.checkuser) diff --git a/src/store/Modules/fieldsTable.ts b/src/store/Modules/fieldsTable.ts index 90284d3..2364af5 100755 --- a/src/store/Modules/fieldsTable.ts +++ b/src/store/Modules/fieldsTable.ts @@ -161,6 +161,7 @@ const colpaymenttype = [ const colnavi = [ AddCol({ name: '_id', label_trans: 'others.value' }), + AddCol({ name: 'idListaIngresso', label_trans: 'idListaIngresso' }), AddCol({ name: 'riga', label_trans: 'reg.riga' }), AddCol({ name: 'col', label_trans: 'reg.col' }), AddCol({ name: 'ind_order', label_trans: 'ind_order' }), @@ -175,6 +176,7 @@ const colnavi = [ AddCol({ name: 'date_made_gift', label_trans: 'date_made_gift', fieldtype: tools.FieldType.date }), // AddCol({ name: 'received_gift', label_trans: 'received_gift', fieldtype: tools.FieldType.boolean }), // AddCol({ name: 'date_received_gift', label_trans: 'date_received_gift', fieldtype: tools.FieldType.date }), + AddCol({ name: 'offerta_al_fondo', label_trans: 'offerta_al_fondo', fieldtype: tools.FieldType.number }), AddCol({ name: 'num_tess', label_trans: 'num_tess', fieldtype: tools.FieldType.number }), AddCol({ name: 'note', label_trans: 'note', fieldtype: tools.FieldType.string }), // AddCol({ name: 'note_interne', label_trans: 'note_interne', fieldtype: tools.FieldType.string }), @@ -211,6 +213,26 @@ const collistaingresso = [ AddCol(DeleteRec) ] +const colgraduatoria = [ + AddCol({ name: 'index', label_trans: 'index' }), + AddCol({ name: 'punteggio', label_trans: 'Punt', fieldtype: tools.FieldType.number }), + AddCol({ name: 'ind_order', label_trans: 'ind_order' }), + AddCol({ name: 'num_tess', label_trans: 'num_tess', fieldtype: tools.FieldType.number }), + AddCol({ name: 'username', label_trans: 'reg.username_short' }), + AddCol({ name: 'name', label_trans: 'reg.name' }), + AddCol({ name: 'surname', label_trans: 'reg.surname' }), + AddCol({ name: 'numNaviEntrato', label_trans: 'Navi', fieldtype: tools.FieldType.number }), + AddCol({ name: 'indimbarco', label_trans: 'Imbarco', fieldtype: tools.FieldType.number }), + // AddCol({ name: 'numinvitati', label_trans: 'Inv.', fieldtype: tools.FieldType.number }), + // AddCol({ name: 'numinvitatiattivi', label_trans: 'Att.', fieldtype: tools.FieldType.number }), + AddCol({ name: 'numinvitatiTot', label_trans: 'Inv (Tot)', fieldtype: tools.FieldType.number }), + AddCol({ name: 'numinvitatiattiviTot', label_trans: 'Att. Tot', fieldtype: tools.FieldType.number }), + AddCol({ name: 'invitante_username', label_trans: 'reg.aportador_solidario' }), + AddCol({ name: 'date_added', label_trans: 'date_added', fieldtype: tools.FieldType.date }), + AddCol(DuplicateRec), + AddCol(DeleteRec) +] + const coldisciplines = [ AddCol({ name: 'typol_code', label_trans: 'disc.typol_code' }), AddCol({ name: 'order', label_trans: 'disc.order', fieldtype: tools.FieldType.number }), @@ -479,7 +501,7 @@ export const fieldsTable = { colTableUsers: [ // AddCol({ name: '_id', label_trans: 'reg.id' }), AddCol({ name: 'index', label_trans: 'reg.index', fieldtype: tools.FieldType.number }), - AddCol({ name: 'ind_order', label_trans: 'reg.ind_order' }), + // AddCol({ name: 'ind_order', label_trans: 'reg.ind_order' }), AddCol({ name: 'old_order', label_trans: 'old_order' }), AddCol({ name: 'sospeso', label_trans: 'reg.sospeso', fieldtype: tools.FieldType.boolean }), AddCol({ name: 'deleted', label_trans: 'reg.deleted', fieldtype: tools.FieldType.boolean }), @@ -643,6 +665,13 @@ export const fieldsTable = { colkey: '_id', collabel: 'ind_order', }, + { + value: 'graduatorias', + label: 'Graduatoria', + columns: colgraduatoria, + colkey: '_id', + collabel: 'index', + }, { value: 'disciplines', label: 'Discipline', diff --git a/src/store/Modules/lists.ts b/src/store/Modules/lists.ts index 7e10605..4d9e95b 100755 --- a/src/store/Modules/lists.ts +++ b/src/store/Modules/lists.ts @@ -29,6 +29,7 @@ export const lists = { DONO_RICEVUTO: 370, AGGIUNGI_NUOVO_IMBARCO: 380, CANCELLA_IMBARCO: 385, + DAMMI_PRIMO_UTENTE_LIBERO: 390, CAN_EDIT_TABLE: 400, SHOW_PREV_REC: 401 diff --git a/src/store/Modules/tools.ts b/src/store/Modules/tools.ts index 3af04b9..4b204bc 100755 --- a/src/store/Modules/tools.ts +++ b/src/store/Modules/tools.ts @@ -91,6 +91,7 @@ export const tools = { TABUSER: 'users', TABNAVI: 'navi', TABLISTAINGRESSO: 'listaingressos', + TABGRADUATORIA: 'graduatorias', TABEVENTS: 'myevents', TABEXTRALIST: 'extralist', TABNEWSLETTER: 'newstosent', @@ -1480,7 +1481,7 @@ export const tools = { table: '', fieldsvalue: {}, notifBot: {} - }; + } if (!!par.param1.invitante_username) { mydatatosave = { @@ -1548,6 +1549,7 @@ export const tools = { if (func === lists.MenuAction.CANCELLA_IMBARCO) { mydatatosave.ind_order = par.param1.ind_order + mydatatosave.data.id = par.param2.rec._id } if (func === lists.MenuAction.AGGIUNGI_NUOVO_IMBARCO) { mydatatosave.invitante_username = par.param1.invitante_username @@ -3396,55 +3398,19 @@ export const tools = { if (langin === '') return '' try { - let lang = langin.toUpperCase() - if (lang === 'IT') - return 'fa-flag-it' - else if (lang === 'ES') - return 'fa-flag-es' - else if (lang === 'PT') - return 'fa-flag-pt' - else if (lang === 'BR') - return 'fa-flag-br' - else if (lang === 'US') - return 'fa-flag-us' - else if ((lang === 'GB') || (lang === 'UK')) - return 'fa-flag-gb' - else if (lang === 'DE') - return 'fa-flag-de' - else if (lang === 'FR') - return 'fa-flag-fr' - else if (lang === 'SI') - return 'fa-flag-si' - else if (lang === 'MD') - return 'fa-flag-md' - else if (lang === 'NG') - return 'fa-flag-ng' - else if (lang === 'SK') - return 'fa-flag-sk' - else if (lang === 'CH') - return 'fa-flag-ch' - else if (lang === 'CM') - return 'fa-flag-cm' - else if (lang === 'CO') - return 'fa-flag-co' - else if (lang === 'PE') - return 'fa-flag-pe' - else if (lang === 'SM') - return 'fa-flag-sm' - else if (lang === 'HR') - return 'fa-flag-hr' - else if (lang === 'RO') - return 'fa-flag-ro' - else if (lang === 'VE') - return 'fa-flag-ve' - else if (lang === 'CL') - return 'fa-flag-cl' - else if (lang === 'PL') - return 'fa-flag-pl' - else if (lang === 'EG') - return 'fa-flag-eg' + const lang = langin.toUpperCase() + + const arrlang = ['IT', 'ES', 'PT', 'BR', 'US', 'GB', 'UK', 'DE', 'FR', 'SI', 'MD', + 'NG', 'SK', 'CH', 'CM', 'CO', 'CG', 'PE', 'MS', 'SM', 'HR', 'RO', 'VE', 'CL', 'PL', 'EG', 'AR', 'MX', 'SN', 'PK', 'AT', 'NP', + 'CU', 'MA', 'PH', 'BA', 'UA', 'BE', 'NL', 'CI'] + + const flag = arrlang.find((mylang) => mylang === lang) + if (!!flag) { + return 'fa-flag-' + flag.toLowerCase() + } return '' + } catch (e) { return '' } @@ -3528,6 +3494,36 @@ export const tools = { return 'Egypt' } else if (nat === 'BR') { return 'Brazil' + } else if (nat === 'CG') { + return 'Congo' + } else if (nat === 'AR') { + return 'Argentina' + } else if (nat === 'MX') { + return 'Mexico' + } else if (nat === 'SN') { + return 'Senegal' + } else if (nat === 'PK') { + return 'Pakistan' + } else if (nat === 'AT') { + return 'Austria' + } else if (nat === 'NP') { + return 'Nepal' + } else if (nat === 'CU') { + return 'Cuba' + } else if (nat === 'MA') { + return 'Morocco' + } else if (nat === 'PH') { + return 'Philippines' + } else if (nat === 'BA') { + return 'Bosnia and Herzegovina' + } else if (nat === 'BE') { + return 'Belgium' + } else if (nat === 'NL') { + return 'Netherlands' + } else if (nat === 'MS') { + return 'Montserrat' + } else if (nat === 'CI') { + return 'Cote d\'Ivoire' } }, diff --git a/src/views/admin/dbop/dbop.vue b/src/views/admin/dbop/dbop.vue index cf2061d..f81661c 100755 --- a/src/views/admin/dbop/dbop.vue +++ b/src/views/admin/dbop/dbop.vue @@ -9,6 +9,13 @@
+ + +
+
@@ -32,8 +39,6 @@ -->
- +
+ + + +
+
+ +
+ +
- + +
+
-
+ + + +