Skip to content

Commit a185ae0

Browse files
committed
base url added as an environment variable
1 parent 40ee2cd commit a185ae0

33 files changed

+34
-26
lines changed

api/article/controller.js

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -160,8 +160,15 @@ exports.authenticateArticle = asyncHandler(async (req, res, next) => {
160160
to: [articleDetails.author.contact], // list of receivers
161161
subject: `Anubhav - ${articleDetails.title} - Article Approved`, // Subject line
162162
html: `
163-
<h3>Your article on Anubhav has been published on <a href="https://anubhav.aitoss.club>Anubhav</a>.</h3>
164-
<p>You can view your article by clicking <a href="https://anubhav.aitoss.club/article/${articleDetails._id}">here</a></p>
163+
<html>
164+
<head></head>
165+
<body>
166+
<div>
167+
<h3>Your article has been published on <a href="${process.env.BASE_LINK}">Anubhav</a>.</h3>
168+
<p>You can view your article by clicking <a href="${process.env.BASE_LINK}/article/${articleDetails._id}">here</a></p>
169+
</div>
170+
<body>
171+
</html>
165172
`
166173
});
167174
res.status(200).json({
@@ -198,7 +205,8 @@ const sendMail = async (body, encryptedString) => {
198205
const params = {
199206
body,
200207
parsedHTML,
201-
encryptedString
208+
encryptedString,
209+
base_link: process.env.BASE_LINK
202210
}
203211
const html = compileTemplate(htmlTemplate, params);
204212
await transporter.sendMail({

api/feedback/controller.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@ exports.getFeedbacks = asyncHandler(async (req, res, next)=>{
2020
success: true,
2121
feedbacks
2222
});
23-
});
23+
});

public/build/asset-manifest.json

100755100644
Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,31 @@
11
{
22
"files": {
3-
"main.css": "/static/css/main.c103fbbb.chunk.css",
4-
"main.js": "/static/js/main.d6e5be32.chunk.js",
5-
"main.js.map": "/static/js/main.d6e5be32.chunk.js.map",
3+
"main.css": "/static/css/main.df4f3c99.chunk.css",
4+
"main.js": "/static/js/main.7520a6cb.chunk.js",
5+
"main.js.map": "/static/js/main.7520a6cb.chunk.js.map",
66
"runtime-main.js": "/static/js/runtime-main.de4f6170.js",
77
"runtime-main.js.map": "/static/js/runtime-main.de4f6170.js.map",
88
"static/css/2.05bb1782.chunk.css": "/static/css/2.05bb1782.chunk.css",
99
"static/js/2.58748757.chunk.js": "/static/js/2.58748757.chunk.js",
1010
"static/js/2.58748757.chunk.js.map": "/static/js/2.58748757.chunk.js.map",
1111
"index.html": "/index.html",
1212
"static/css/2.05bb1782.chunk.css.map": "/static/css/2.05bb1782.chunk.css.map",
13-
"static/css/main.c103fbbb.chunk.css.map": "/static/css/main.c103fbbb.chunk.css.map",
13+
"static/css/main.df4f3c99.chunk.css.map": "/static/css/main.df4f3c99.chunk.css.map",
1414
"static/js/2.58748757.chunk.js.LICENSE.txt": "/static/js/2.58748757.chunk.js.LICENSE.txt",
15-
"static/media/creatorLogo.b3f17ee1.svg": "/static/media/creatorLogo.b3f17ee1.svg",
16-
"static/media/facebook1.fd1df3cb.svg": "/static/media/facebook1.fd1df3cb.svg",
17-
"static/media/frame_1.261ddf36.svg": "/static/media/frame_1.261ddf36.svg",
18-
"static/media/frame_2.8824a331.svg": "/static/media/frame_2.8824a331.svg",
19-
"static/media/frame_3.dc3328d0.svg": "/static/media/frame_3.dc3328d0.svg",
20-
"static/media/github1.099cc4b0.svg": "/static/media/github1.099cc4b0.svg",
21-
"static/media/instagram1.e6ecf832.svg": "/static/media/instagram1.e6ecf832.svg",
22-
"static/media/linkedin1.bb89ae91.svg": "/static/media/linkedin1.bb89ae91.svg"
15+
"static/media/creatorLogo.da1b53b4.svg": "/static/media/creatorLogo.da1b53b4.svg",
16+
"static/media/facebook1.5218a0fe.svg": "/static/media/facebook1.5218a0fe.svg",
17+
"static/media/frame_1.a3ce7715.svg": "/static/media/frame_1.a3ce7715.svg",
18+
"static/media/frame_2.fa2ca61e.svg": "/static/media/frame_2.fa2ca61e.svg",
19+
"static/media/frame_3.78aa3af0.svg": "/static/media/frame_3.78aa3af0.svg",
20+
"static/media/github1.8ef0b40b.svg": "/static/media/github1.8ef0b40b.svg",
21+
"static/media/instagram1.9636bcc8.svg": "/static/media/instagram1.9636bcc8.svg",
22+
"static/media/linkedin1.7734208c.svg": "/static/media/linkedin1.7734208c.svg"
2323
},
2424
"entrypoints": [
2525
"static/js/runtime-main.de4f6170.js",
2626
"static/css/2.05bb1782.chunk.css",
2727
"static/js/2.58748757.chunk.js",
28-
"static/css/main.c103fbbb.chunk.css",
29-
"static/js/main.d6e5be32.chunk.js"
28+
"static/css/main.df4f3c99.chunk.css",
29+
"static/js/main.7520a6cb.chunk.js"
3030
]
3131
}

public/build/favicon.ico

100755100644
File mode changed.

public/build/index.html

100755100644
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@
66
open source technologies ,kali linux , amazon interview , microsoft interveiw , microsoft , gs interveiw , coding ,
77
, linux , ait technical board , tech board , oss club , ait pune ,
88
ait what is open source software , open source software, open source ,
9-
open source projects ,what is open source , ait oss, "/><meta name="copyright" content="Anubhav © 2020 - AIT OSS CLUB"/><meta name="robots" content="index, follow"/><meta name="author" content="AIT OSS CLUB"/><meta name="revisit-after" content="2 days"/><meta name="rating" content="general, mature"/><link rel="preconnect" href="https://fonts.gstatic.com"><link href="https://fonts.googleapis.com/css2?family=Kumar+One&family=Raleway:wght@400;600&family=Roboto:wght@100&display=swap" rel="stylesheet"><link href="https://fonts.googleapis.com/css?family=Righteous%7CMerriweather:300,300i,400,400i,700,700i" rel="stylesheet"><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"><link rel="manifest" href="/manifest.json"/><title>Anubhav: Experience Sharing Point (A-ESP)</title><link href="/static/css/2.05bb1782.chunk.css" rel="stylesheet"><link href="/static/css/main.c103fbbb.chunk.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div><script>!function(e){function r(r){for(var n,a,f=r[0],l=r[1],i=r[2],c=0,s=[];c<f.length;c++)a=f[c],Object.prototype.hasOwnProperty.call(o,a)&&o[a]&&s.push(o[a][0]),o[a]=0;for(n in l)Object.prototype.hasOwnProperty.call(l,n)&&(e[n]=l[n]);for(p&&p(r);s.length;)s.shift()();return u.push.apply(u,i||[]),t()}function t(){for(var e,r=0;r<u.length;r++){for(var t=u[r],n=!0,f=1;f<t.length;f++){var l=t[f];0!==o[l]&&(n=!1)}n&&(u.splice(r--,1),e=a(a.s=t[0]))}return e}var n={},o={1:0},u=[];function a(r){if(n[r])return n[r].exports;var t=n[r]={i:r,l:!1,exports:{}};return e[r].call(t.exports,t,t.exports,a),t.l=!0,t.exports}a.m=e,a.c=n,a.d=function(e,r,t){a.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.t=function(e,r){if(1&r&&(e=a(e)),8&r)return e;if(4&r&&"object"==typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(a.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var n in e)a.d(t,n,function(r){return e[r]}.bind(null,n));return t},a.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(r,"a",r),r},a.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},a.p="/";var f=this["webpackJsonpanubhav-frontend"]=this["webpackJsonpanubhav-frontend"]||[],l=f.push.bind(f);f.push=r,f=f.slice();for(var i=0;i<f.length;i++)r(f[i]);var p=l;t()}([])</script><script src="/static/js/2.58748757.chunk.js"></script><script src="/static/js/main.d6e5be32.chunk.js"></script></body></html>
9+
open source projects ,what is open source , ait oss, "/><meta name="copyright" content="Anubhav © 2020 - AIT OSS CLUB"/><meta name="robots" content="index, follow"/><meta name="author" content="AIT OSS CLUB"/><meta name="revisit-after" content="2 days"/><meta name="rating" content="general, mature"/><link rel="preconnect" href="https://fonts.gstatic.com"><link href="https://fonts.googleapis.com/css2?family=Kumar+One&family=Raleway:wght@400;600&family=Roboto:wght@100&display=swap" rel="stylesheet"><link href="https://fonts.googleapis.com/css?family=Righteous%7CMerriweather:300,300i,400,400i,700,700i" rel="stylesheet"><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"><link rel="manifest" href="/manifest.json"/><title>Anubhav: Experience Sharing Point (A-ESP)</title><link href="/static/css/2.05bb1782.chunk.css" rel="stylesheet"><link href="/static/css/main.df4f3c99.chunk.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div><script>!function(e){function r(r){for(var n,a,f=r[0],l=r[1],i=r[2],c=0,s=[];c<f.length;c++)a=f[c],Object.prototype.hasOwnProperty.call(o,a)&&o[a]&&s.push(o[a][0]),o[a]=0;for(n in l)Object.prototype.hasOwnProperty.call(l,n)&&(e[n]=l[n]);for(p&&p(r);s.length;)s.shift()();return u.push.apply(u,i||[]),t()}function t(){for(var e,r=0;r<u.length;r++){for(var t=u[r],n=!0,f=1;f<t.length;f++){var l=t[f];0!==o[l]&&(n=!1)}n&&(u.splice(r--,1),e=a(a.s=t[0]))}return e}var n={},o={1:0},u=[];function a(r){if(n[r])return n[r].exports;var t=n[r]={i:r,l:!1,exports:{}};return e[r].call(t.exports,t,t.exports,a),t.l=!0,t.exports}a.m=e,a.c=n,a.d=function(e,r,t){a.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.t=function(e,r){if(1&r&&(e=a(e)),8&r)return e;if(4&r&&"object"==typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(a.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var n in e)a.d(t,n,function(r){return e[r]}.bind(null,n));return t},a.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(r,"a",r),r},a.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},a.p="/";var f=this["webpackJsonpanubhav-frontend"]=this["webpackJsonpanubhav-frontend"]||[],l=f.push.bind(f);f.push=r,f=f.slice();for(var i=0;i<f.length;i++)r(f[i]);var p=l;t()}([])</script><script src="/static/js/2.58748757.chunk.js"></script><script src="/static/js/main.7520a6cb.chunk.js"></script></body></html>

public/build/logo192.png

100755100644
File mode changed.

public/build/logo512.png

100755100644
File mode changed.

public/build/manifest.json

100755100644
File mode changed.

public/build/osslogo.png

100755100644
File mode changed.

public/build/robots.txt

100755100644
File mode changed.

0 commit comments

Comments
 (0)