1
0
forked from apxtri/apxtri

modif cc in notification and Wwws change

This commit is contained in:
philc 2024-08-06 07:34:25 +02:00
parent e56e29e2b6
commit 57db217ee4
3 changed files with 15 additions and 4 deletions

View File

@ -243,12 +243,14 @@ Notifications.manageemail = (data, template, tribe) => {
dat.text = Mustache.render(tplemail.text, data);
dat.Cc=tplemail.Cc
dat.Bcc=tplemail.Bcc
/* @TODO issue with data.Cc need to test
if (data.Cc){
dat.Cc+=","+data.Cc.join(',')
}
if (data.Bcc){
dat.Bcc+=","+data.Bcc.join(',')
}
*/
if (data.attachments){
data.attachments.forEach(a=>tplemail.attachments.push(a))
}

View File

@ -7,6 +7,15 @@ const Odmdb = require("./Odmdb.js");
const conf = require(`../../../conf.json`);
const Wwws = {};
Wwws.initlocalwco=(tribwco,profils,lg)=>{
const wco={}
Object.keys(tribwco).forEach(t=>{
if (!fs.existsSync(`../../../${tribwco}`)){}
})
}
Wwws.initlocaldata = (tribe, appname, pagename, version, profils, lg) => {
const fileparam = `../../${tribe}/objects/wwws/itm/${appname}.json`;
console.log(fileparam);

View File

@ -28,12 +28,12 @@ router.post(
);
/**
* @api {put} /adminapi/wwws/updatelocalwcoanonymous - Get local web component for app anonymous only
* @api {put} /adminapi/wwws/webcomponents - Get local web components
* @apiGroup Wwws
* @apiName getappcontextforanonymous
* @apiDescription Get web component from backend to localstorage for anonymous
* @apiName getwco
* @apiDescription Get web component from backend to localstorage for development. This is anonymous but must be authenticated with accessright to other tribe to get their web component.<br> For production it will generate a unique id that store to add in updatelocaldb with in production space /js/uniqueid.js css/uniqueid.css pagename.html with link in it
*
* @apiBody {object} tribelistwco {tribe:[wconame]}
* @apiBody {object} tribelistwco { wco:{tribe:[wconame]}, mode:"dev"|"prod"}
*/
router.put(
"/updatelocalwcoanonymous",