clean architecture
This commit is contained in:
@@ -4,7 +4,7 @@ const glob = require("glob");
|
||||
const jwt = require("jwt-simple");
|
||||
const axios = require("axios");
|
||||
const path = require("path");
|
||||
const conf = require(`../../../../conf/townconf.json`);
|
||||
const conf = require(`../../../conf.json`);
|
||||
const Odmdb = require("./Odmdb.js");
|
||||
// lowercase 1st letter is normal
|
||||
const towns = require("./Towns.js");
|
||||
|
@@ -6,7 +6,7 @@ const dayjs = require("dayjs");
|
||||
const Checkjson = require(`./Checkjson.js`);
|
||||
//const smtp = require("smtp-client");
|
||||
const nodemailer = require("nodemailer");
|
||||
const conf = require(`../../../../conf/townconf.json`);
|
||||
const conf = require(`../../../conf.json`);
|
||||
const currentmod = "Notifications";
|
||||
const log = conf.api.activelog.includes(currentmod);
|
||||
/**
|
||||
|
@@ -3,7 +3,7 @@ const path = require("path");
|
||||
const fs = require("fs-extra");
|
||||
const dayjs = require("dayjs");
|
||||
const axios = require("axios");
|
||||
const conf = require(`../../../../conf/townconf.json`);
|
||||
const conf = require(`../../../conf.json`);
|
||||
const Checkjson = require(`./Checkjson.js`);
|
||||
const { promiseHooks } = require("v8");
|
||||
const currentmod = "Odmdb";
|
||||
|
@@ -8,7 +8,7 @@ const openpgp = require("openpgp");
|
||||
const Notifications = require("./Notifications.js");
|
||||
const Odmdb = require("./Odmdb.js");
|
||||
|
||||
const conf = require(`../../../../conf/townconf.json`);
|
||||
const conf = require(`../../../conf.json`);
|
||||
const currentmod = "Pagans";
|
||||
const log = conf.api.activelog.includes(currentmod);
|
||||
/**
|
||||
@@ -128,7 +128,7 @@ Pagans.sendmailkey = (data) => {
|
||||
|
||||
let tplfile=`../../../${data.tribe}/template/createidentity_${data.lg}.js`;
|
||||
if (!fs.existsSync(tplfile)){
|
||||
tplfile=`../../../adminapi/template/createidentity_${data.lg}.js`;
|
||||
tplfile=`../../adminapi/template/createidentity_${data.lg}.js`;
|
||||
if (!fs.existsSync(tplfile)){
|
||||
return {
|
||||
status:406,
|
||||
|
@@ -4,7 +4,7 @@ const glob = require("glob");
|
||||
const moment = require("moment");
|
||||
const jwt = require("jwt-simple");
|
||||
const UUID = require("uuid");
|
||||
const conf = require(`../../../../conf/townconf.json`);
|
||||
const conf = require(`../../../conf.json`);
|
||||
const Checkjson = require(`./Checkjson.js`);
|
||||
const Odmdb = require("./Odmdb.js");
|
||||
|
||||
|
@@ -3,7 +3,7 @@ const path = require("path");
|
||||
const fs = require("fs-extra");
|
||||
const dayjs = require("dayjs");
|
||||
const axios = require("axios");
|
||||
const conf = require(`../../../../conf/townconf.json`);
|
||||
const conf = require(`../../../conf.json`);
|
||||
const Checkjson = require(`./Checkjson.js`);
|
||||
|
||||
const Trackings = {}
|
||||
|
@@ -10,7 +10,7 @@ const jwt = require( 'jwt-simple' );
|
||||
const moment = require( 'moment' );
|
||||
const UUID = require( 'uuid' );
|
||||
const Pagans = require( './Pagans.js' );
|
||||
const conf = require(`../../../../conf/townconf.json`);
|
||||
const conf = require(`../../../conf.json`);
|
||||
const Checkjson = require( `./Checkjson.js`);
|
||||
/*
|
||||
tribeid manager
|
||||
|
@@ -3,7 +3,7 @@ const path = require("path");
|
||||
const dnsSync = require("dns-sync");
|
||||
const mustache = require("mustache");
|
||||
const readlineSync = require("readline-sync");
|
||||
const conf = require(`../../../../conf/townconf.json`);
|
||||
const conf = require(`../../../conf.json`);
|
||||
const Wwws = {};
|
||||
|
||||
/*Wwws.apxtriinstall = (paramconf) => {
|
||||
|
@@ -3,7 +3,7 @@ Unit testing
|
||||
*/
|
||||
const assert = require("assert");
|
||||
const Checkjson = require("../Checkjson.js");
|
||||
const conf = require(`../../../../conf/townconf.json`);
|
||||
const conf = require(`../../../conf.json`);
|
||||
|
||||
const ut = { name: "Checkjson" };
|
||||
|
||||
|
@@ -6,7 +6,7 @@ const fs = require("fs-extra");
|
||||
const path = require("path");
|
||||
const Odmdb = require("../Odmdb.js");
|
||||
const { generemdp } = require("../toolsbox.js");
|
||||
const conf = require(`../../../../conf/townconf.json`);
|
||||
const conf = require(`../../../conf.json`);
|
||||
|
||||
const ut = { name: "Odmdb" };
|
||||
/*
|
||||
@@ -26,7 +26,7 @@ ut.crud = (objectPathname, itm, profils) => {
|
||||
const testvar={alias:"tutu", passphrase:"",privatekey:"", publickey:""}
|
||||
|
||||
const testitms=[
|
||||
{objectPathname:`../../../../adminapi/opjects/pagans`,
|
||||
{objectPathname:`../../../adminapi/opjects/pagans`,
|
||||
itm:{alias:'toutou', publickey:}}
|
||||
]
|
||||
|
||||
|
Reference in New Issue
Block a user