- aggiornati anche i ContribTypes che appaiono sulla card degli annunci

This commit is contained in:
Surya Paolo
2025-12-07 10:26:35 +01:00
parent 139d3fe241
commit 086e4ab8ba
3 changed files with 141 additions and 117 deletions

View File

@@ -19,6 +19,12 @@ const ContribtypeSchema = new Schema({
label: { label: {
type: String, type: String,
}, },
icon: {
type: String,
},
color: {
type: String,
},
showprice: { showprice: {
type: Boolean, type: Boolean,
} }

View File

@@ -3,187 +3,205 @@ const { ObjectId } = require('mongodb');
module.exports = { module.exports = {
list: [ list: [
{ {
"_id": new ObjectId("615a353c002c8298f4495be7"), _id: new ObjectId('615a353c002c8298f4495be7'),
"idapp": "1", idapp: '1',
"label": "Dono", label: 'Dono',
"__v": 0 __v: 0,
}, },
{ {
"_id": new ObjectId("61bc466567de9a1f54b25494"), _id: new ObjectId('61bc466567de9a1f54b25494'),
"idapp": "1", idapp: '1',
"label": "Offerta Libera", label: 'Offerta Libera',
"__v": 0 __v: 0,
}, },
{ {
"_id": new ObjectId("61bc454867de9a1f54b25462"), _id: new ObjectId('61bc454867de9a1f54b25462'),
"idapp": "1", idapp: '1',
"label": "Baratto (scambio Beni o Servizi)", label: 'Baratto (scambio Beni o Servizi)',
"__v": 0 __v: 0,
}, },
{ {
"_id": new ObjectId("61bc482667de9a1f54b2549c"), _id: new ObjectId('61bc482667de9a1f54b2549c'),
"idapp": "1", idapp: '1',
"label": "Scambio Lavoro", label: 'Scambio Lavoro',
"__v": 0 __v: 0,
}, },
{ {
"_id": new ObjectId("61bc482667de9a1f54b2649c"), _id: new ObjectId('61bc482667de9a1f54b2649c'),
"idapp": "1", idapp: '1',
"label": "Monete Alternative", label: 'Monete Alternative',
"__v": 0 __v: 0,
}, },
{ {
"_id": new ObjectId("61bc482667de9a1f54b3549e"), _id: new ObjectId('61bc482667de9a1f54b3549e'),
"idapp": "1", idapp: '1',
"label": "Euro", label: 'Euro',
"__v": 0 __v: 0,
}, },
{ {
"_id": new ObjectId("615a353c002c8298f4495bf7"), _id: new ObjectId('615a353c002c8298f4495bf7'),
"idapp": "12", idapp: '12',
"label": "Dono", label: 'Dono',
"__v": 0 __v: 0,
}, },
{ {
"_id": new ObjectId("61bc466567de9a1f54b254f4"), _id: new ObjectId('61bc466567de9a1f54b254f4'),
"idapp": "12", idapp: '12',
"label": "Offerta Libera", label: 'Offerta Libera',
"__v": 0 __v: 0,
}, },
{ {
"_id": new ObjectId("61bc454867de9a1f54b254f2"), _id: new ObjectId('61bc454867de9a1f54b254f2'),
"idapp": "12", idapp: '12',
"label": "Baratto", label: 'Baratto',
"__v": 0 __v: 0,
}, },
{ {
"_id": new ObjectId("61bc482667de9a1f54b25412"), _id: new ObjectId('61bc482667de9a1f54b25412'),
"idapp": "12", idapp: '12',
"label": "Scambio Lavoro", label: 'Scambio Lavoro',
"__v": 0 __v: 0,
}, },
{ {
"_id": new ObjectId("61bc482667de9a1f64b254ab"), _id: new ObjectId('61bc482667de9a1f64b254ab'),
"idapp": "12", idapp: '12',
"label": "Monete Alternative", label: 'Monete Alternative',
"__v": 0 __v: 0,
}, },
{ {
"_id": new ObjectId("61bc482667de9a1f64b254fb"), _id: new ObjectId('61bc482667de9a1f64b254fb'),
"idapp": "12", idapp: '12',
"label": "Euro", label: 'Euro',
"__v": 0 __v: 0,
}, },
{ {
"_id": new ObjectId("5dbc6b0801234f629f75e98d"), _id: new ObjectId('5dbc6b0801234f629f75e98d'),
"idapp": "2", idapp: '2',
"__v": 0, __v: 0,
"label": "Offerta Libera" label: 'Offerta Libera',
}, },
/* 2 */ /* 2 */
{ {
"_id": new ObjectId("5dbc6b1001234f629f75e98e"), _id: new ObjectId('5dbc6b1001234f629f75e98e'),
"idapp": "2", idapp: '2',
"__v": 0, __v: 0,
"label": "Ingresso Gratuito" label: 'Ingresso Gratuito',
}, },
/* 3 */ /* 3 */
{ {
"_id": new ObjectId("5dbc6b1801234f629f75e98f"), _id: new ObjectId('5dbc6b1801234f629f75e98f'),
"idapp": "2", idapp: '2',
"__v": 0, __v: 0,
"label": "Contributo", label: 'Contributo',
"showprice": true showprice: true,
}, },
/* 4 */ /* 4 */
{ {
"_id": new ObjectId("5dbc6b3001234f629f75e990"), _id: new ObjectId('5dbc6b3001234f629f75e990'),
"idapp": "2", idapp: '2',
"__v": 0 __v: 0,
}, },
{ {
"_id": new ObjectId("602c315137d9f0738ded312f"), _id: new ObjectId('602c315137d9f0738ded312f'),
"idapp": "10", idapp: '10',
"__v": 0, __v: 0,
"label": "Contributo", label: 'Contributo',
"showprice": true showprice: true,
}, },
/* 7 */ /* 7 */
{ {
"_id": new ObjectId("602c316037d9f0738ded3132"), _id: new ObjectId('602c316037d9f0738ded3132'),
"idapp": "10", idapp: '10',
"__v": 0, __v: 0,
"label": "Gratuito" label: 'Gratuito',
}, },
/* 8 */ /* 8 */
{ {
"_id": new ObjectId("60514b3f733ce468d09366f2"), _id: new ObjectId('60514b3f733ce468d09366f2'),
"idapp": "10", idapp: '10',
"__v": 0, __v: 0,
"label": "Evento ONLINE Gratuito" label: 'Evento ONLINE Gratuito',
}, },
{ {
"_id": new ObjectId("515a353c002c8298f4495bf7"), _id: new ObjectId('515a353c002c8298f4495bf7'),
"idapp": "13", idapp: '13',
"label": "🎁 Dono", label: '🎁 Dono',
"__v": 0 icon: '🎁',
color: '#e91e63',
__v: 0,
}, },
{ {
"_id": new ObjectId("51bc466567de9a1f54b254f4"), _id: new ObjectId('51bc466567de9a1f54b254f4'),
"idapp": "13", idapp: '13',
"label": "💸 Offerta Libera", label: '💸 Offerta Libera',
"__v": 0 icon: '💸',
color: '#2196f3',
__v: 0,
}, },
{ {
"_id": new ObjectId("51bc454867de9a1f54b254f2"), _id: new ObjectId('51bc454867de9a1f54b254f2'),
"idapp": "13", idapp: '13',
"label": "🤝 Baratto", label: '🤝 Baratto',
"__v": 0 icon: '🤝',
color: '#ff9800',
__v: 0,
}, },
{ {
"_id": new ObjectId("51bc482667de9a1f54b25412"), _id: new ObjectId('51bc482667de9a1f54b25412'),
"idapp": "13", idapp: '13',
"label": "💪 Scambio Lavoro", label: '💪 Scambio Lavoro',
"__v": 0 icon: '💪',
color: '#9c27b0',
__v: 0,
}, },
{ {
"_id": new ObjectId("51bc482667de9a1f64b254ab"), _id: new ObjectId('51bc482667de9a1f64b254ab'),
"idapp": "13", idapp: '13',
"label": "🪙 Monete Alternative", label: '🪙 Monete Alternative',
"__v": 0 icon: '🪙',
color: '#795548',
__v: 0,
}, },
{ {
"_id": new ObjectId("51bc482667de9a1f64b254ac"), _id: new ObjectId('51bc482667de9a1f64b254ac'),
"idapp": "13", idapp: '13',
"label": "🍚 RIS", label: '🍚 RIS',
"__v": 0 icon: '🍚',
color: '#ffc107',
__v: 0,
}, },
{ {
"_id": new ObjectId("51bc482667de9a1f64b254fb"), _id: new ObjectId('51bc482667de9a1f64b254fb'),
"idapp": "13", idapp: '13',
"label": "💶 Euro", label: '💶 Euro',
"__v": 0 icon: '💶',
color: '#4caf50',
__v: 0,
}, },
{ {
"_id": new ObjectId("51bc482667de9a1f64b254ff"), _id: new ObjectId('51bc482667de9a1f64b254ff'),
"idapp": "13", idapp: '13',
"label": "₿ Bitcoin", label: '₿ Bitcoin',
"__v": 0 icon: '₿',
color: '#ff9800',
__v: 0,
}, },
{ {
"_id": new ObjectId("51bc482667de9a1f64b255ff"), _id: new ObjectId('51bc482667de9a1f64b255ff'),
"idapp": "13", idapp: '13',
"label": "⏳ Banca del Tempo", label: '⏳ Banca del Tempo',
"__v": 0 icon: '⏳',
} color: '#00bcd4',
] __v: 0,
} },
],
};

View File

@@ -144,7 +144,7 @@ module.exports = {
// Tempo Libero e Cultura // Tempo Libero e Cultura
{ _id: 170, idSector: [15], descr: 'Arte e Pittura', icon: 'fas fa-palette' }, { _id: 170, idSector: [15], descr: 'Arte e Pittura', icon: 'fas fa-palette' },
{ _id: 171, idSector: [15], descr: 'Ballo', icon: 'fas fa-dancing' }, { _id: 171, idSector: [15], descr: 'Ballo', icon: 'groups' },
{ _id: 172, idSector: [15], descr: 'Canto', icon: 'fas fa-microphone' }, { _id: 172, idSector: [15], descr: 'Canto', icon: 'fas fa-microphone' },
{ _id: 173, idSector: [15], descr: 'Film Making', icon: 'fas fa-video' }, { _id: 173, idSector: [15], descr: 'Film Making', icon: 'fas fa-video' },
{ _id: 174, idSector: [15], descr: 'Fotografia', icon: 'fas fa-camera' }, { _id: 174, idSector: [15], descr: 'Fotografia', icon: 'fas fa-camera' },