mirror of
https://github.com/nocodb/nocodb.git
synced 2026-02-02 02:37:33 +00:00
fix: use html escape syntax in ejs template
This commit is contained in:
@@ -3,10 +3,10 @@ export default `<!DOCTYPE html>
|
||||
<head>
|
||||
<title>NocoDB - Verify Email</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no, minimal-ui">
|
||||
<link href="<%- ncPublicUrl %>/css/fonts.roboto.css" rel="stylesheet">
|
||||
<link href="<%- ncPublicUrl %>/css/materialdesignicons.5.x.min.css" rel="stylesheet">
|
||||
<link href="<%- ncPublicUrl %>/css/vuetify.2.x.min.css" rel="stylesheet">
|
||||
<script src="<%- ncPublicUrl %>/js/vue.2.6.14.min.js"></script>
|
||||
<link href="<%= ncPublicUrl %>/css/fonts.roboto.css" rel="stylesheet">
|
||||
<link href="<%= ncPublicUrl %>/css/materialdesignicons.5.x.min.css" rel="stylesheet">
|
||||
<link href="<%= ncPublicUrl %>/css/vuetify.2.x.min.css" rel="stylesheet">
|
||||
<script src="<%= ncPublicUrl %>/js/vue.2.6.14.min.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<div id="app">
|
||||
@@ -31,8 +31,8 @@ export default `<!DOCTYPE html>
|
||||
</v-container>
|
||||
</v-app>
|
||||
</div>
|
||||
<script src="<%- ncPublicUrl %>/js/vuetify.2.x.min.js"></script>
|
||||
<script src="<%- ncPublicUrl %>/js/axios.0.19.2.min.js"></script>
|
||||
<script src="<%= ncPublicUrl %>/js/vuetify.2.x.min.js"></script>
|
||||
<script src="<%= ncPublicUrl %>/js/axios.0.19.2.min.js"></script>
|
||||
|
||||
<script>
|
||||
var app = new Vue({
|
||||
@@ -53,7 +53,7 @@ export default `<!DOCTYPE html>
|
||||
methods: {},
|
||||
async created() {
|
||||
try {
|
||||
const valid = (await axios.post('<%- baseUrl %>/api/v1/auth/email/validate/' + this.token)).data;
|
||||
const valid = (await axios.post('<%= baseUrl %>/api/v1/auth/email/validate/' + this.token)).data;
|
||||
this.valid = !!valid;
|
||||
} catch (e) {
|
||||
this.valid = false;
|
||||
|
||||
@@ -3,10 +3,10 @@ export default `<!DOCTYPE html>
|
||||
<head>
|
||||
<title>NocoDB - Reset Password</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no, minimal-ui">
|
||||
<link href="<%- ncPublicUrl %>/css/fonts.roboto.css" rel="stylesheet">
|
||||
<link href="<%- ncPublicUrl %>/css/materialdesignicons.5.x.min.css" rel="stylesheet">
|
||||
<link href="<%- ncPublicUrl %>/css/vuetify.2.x.min.css" rel="stylesheet">
|
||||
<script src="<%- ncPublicUrl %>/js/vue.2.6.14.min.js"></script>
|
||||
<link href="<%= ncPublicUrl %>/css/fonts.roboto.css" rel="stylesheet">
|
||||
<link href="<%= ncPublicUrl %>/css/materialdesignicons.5.x.min.css" rel="stylesheet">
|
||||
<link href="<%= ncPublicUrl %>/css/vuetify.2.x.min.css" rel="stylesheet">
|
||||
<script src="<%= ncPublicUrl %>/js/vue.2.6.14.min.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<div id="app">
|
||||
@@ -58,8 +58,8 @@ export default `<!DOCTYPE html>
|
||||
</v-container>
|
||||
</v-app>
|
||||
</div>
|
||||
<script src="<%- ncPublicUrl %>/js/vuetify.2.x.min.js"></script>
|
||||
<script src="<%- ncPublicUrl %>/js/axios.0.19.2.min.js"></script>
|
||||
<script src="<%= ncPublicUrl %>/js/vuetify.2.x.min.js"></script>
|
||||
<script src="<%= ncPublicUrl %>/js/axios.0.19.2.min.js"></script>
|
||||
|
||||
<script>
|
||||
var app = new Vue({
|
||||
@@ -80,7 +80,7 @@ export default `<!DOCTYPE html>
|
||||
async resetPassword() {
|
||||
if (this.$refs.form.validate()) {
|
||||
try {
|
||||
const res = await axios.post('<%- baseUrl %>api/v1/db/auth/password/reset/' + this.token, {
|
||||
const res = await axios.post('<%= baseUrl %>api/v1/db/auth/password/reset/' + this.token, {
|
||||
...this.formdata
|
||||
});
|
||||
this.success = true;
|
||||
@@ -96,7 +96,7 @@ export default `<!DOCTYPE html>
|
||||
},
|
||||
async created() {
|
||||
try {
|
||||
const valid = (await axios.post('<%- baseUrl %>api/v1/db/auth/token/validate/' + this.token)).data;
|
||||
const valid = (await axios.post('<%= baseUrl %>api/v1/db/auth/token/validate/' + this.token)).data;
|
||||
this.valid = !!valid;
|
||||
} catch (e) {
|
||||
this.valid = false;
|
||||
|
||||
@@ -123,7 +123,7 @@ table[class=body] .article {
|
||||
<table role="presentation" border="0" cellpadding="0" cellspacing="0" style="border-collapse: separate; mso-table-lspace: 0pt; mso-table-rspace: 0pt; width: auto;">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td style="font-family: sans-serif; font-size: 14px; vertical-align: top; border-radius: 5px; text-align: center; background-color: #3498db;" valign="top" align="center" bgcolor="#1088ff"> <a href="<%- resetLink %>" target="_blank" style="border: solid 1px rgb(23, 139, 255); border-radius: 5px; box-sizing: border-box; cursor: pointer; display: inline-block; font-size: 14px; font-weight: bold; margin: 0; padding: 12px 25px; text-decoration: none; text-transform: capitalize; background-color: rgb(23, 139, 255); border-color: #3498db; color: #ffffff;">Reset Password</a> </td>
|
||||
<td style="font-family: sans-serif; font-size: 14px; vertical-align: top; border-radius: 5px; text-align: center; background-color: #3498db;" valign="top" align="center" bgcolor="#1088ff"> <a href="<%= resetLink %>" target="_blank" style="border: solid 1px rgb(23, 139, 255); border-radius: 5px; box-sizing: border-box; cursor: pointer; display: inline-block; font-size: 14px; font-weight: bold; margin: 0; padding: 12px 25px; text-decoration: none; text-transform: capitalize; background-color: rgb(23, 139, 255); border-color: #3498db; color: #ffffff;">Reset Password</a> </td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
@@ -132,7 +132,7 @@ export default `<!doctype html>
|
||||
<p style="font-family: sans-serif; font-size: 14px; font-weight: normal; margin: 0; margin-bottom: 15px;">
|
||||
Hi,</p>
|
||||
<p style="font-family: sans-serif; font-size: 14px; font-weight: normal; margin: 0; margin-bottom: 15px;">
|
||||
You have been invited to become "<%- roles -%>" of the NocoDB base "<%- baseName %>".
|
||||
You have been invited to become "<%= roles -%>" of the NocoDB base "<%= baseName %>".
|
||||
Click the button below to accept the invitation.</p>
|
||||
<table role="presentation" border="0" cellpadding="0" cellspacing="0"
|
||||
class="btn btn-primary"
|
||||
@@ -150,7 +150,7 @@ export default `<!doctype html>
|
||||
<tr>
|
||||
<td style="font-family: sans-serif; font-size: 14px; vertical-align: top; border-radius: 5px; text-align: center; background-color: #3498db;"
|
||||
valign="top" align="center" bgcolor="#1088ff"><a
|
||||
href="<%- signupLink %>" target="_blank"
|
||||
href="<%= signupLink %>" target="_blank"
|
||||
style="border: solid 1px rgb(23, 139, 255); border-radius: 5px; box-sizing: border-box; cursor: pointer; display: inline-block; font-size: 14px; font-weight: bold; margin: 0; padding: 12px 25px; text-decoration: none; text-transform: capitalize; background-color: rgb(23, 139, 255); border-color: #3498db; color: #ffffff;">Signup</a>
|
||||
</td>
|
||||
</tr>
|
||||
@@ -161,7 +161,7 @@ export default `<!doctype html>
|
||||
</tbody>
|
||||
</table>
|
||||
<p style="font-family: sans-serif; font-size: 14px; font-weight: normal; margin: 0; margin-bottom: 15px;">
|
||||
Have a nice day,<br><%- adminEmail %></p>
|
||||
Have a nice day,<br><%= adminEmail %></p>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
@@ -149,7 +149,7 @@ export default `<!doctype html>
|
||||
<tr>
|
||||
<td style="font-family: sans-serif; font-size: 14px; vertical-align: top; border-radius: 5px; text-align: center; background-color: #3498db;"
|
||||
valign="top" align="center" bgcolor="#1088ff"><a
|
||||
href="<%- verifyLink %>" target="_blank"
|
||||
href="<%= verifyLink %>" target="_blank"
|
||||
style="border: solid 1px rgb(23, 139, 255); border-radius: 5px; box-sizing: border-box; cursor: pointer; display: inline-block; font-size: 14px; font-weight: bold; margin: 0; padding: 12px 25px; text-decoration: none; text-transform: capitalize; background-color: rgb(23, 139, 255); border-color: #3498db; color: #ffffff;">Verify</a>
|
||||
</td>
|
||||
</tr>
|
||||
@@ -160,7 +160,7 @@ export default `<!doctype html>
|
||||
</tbody>
|
||||
</table>
|
||||
<p style="font-family: sans-serif; font-size: 14px; font-weight: normal; margin: 0; margin-bottom: 15px;">
|
||||
Thank you and have a nice day,<br><%- adminEmail %></p>
|
||||
Thank you and have a nice day,<br><%= adminEmail %></p>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
@@ -3,10 +3,10 @@ export default `<!DOCTYPE html>
|
||||
<head>
|
||||
<title>NocoDB - Verify Email</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no, minimal-ui">
|
||||
<link href="<%- ncPublicUrl %>/css/fonts.roboto.css" rel="stylesheet">
|
||||
<link href="<%- ncPublicUrl %>/css/materialdesignicons.5.x.min.css" rel="stylesheet">
|
||||
<link href="<%- ncPublicUrl %>/css/vuetify.2.x.min.css" rel="stylesheet">
|
||||
<script src="<%- ncPublicUrl %>/js/vue.2.6.14.min.js"></script>
|
||||
<link href="<%= ncPublicUrl %>/css/fonts.roboto.css" rel="stylesheet">
|
||||
<link href="<%= ncPublicUrl %>/css/materialdesignicons.5.x.min.css" rel="stylesheet">
|
||||
<link href="<%= ncPublicUrl %>/css/vuetify.2.x.min.css" rel="stylesheet">
|
||||
<script src="<%= ncPublicUrl %>/js/vue.2.6.14.min.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<div id="app">
|
||||
@@ -31,8 +31,8 @@ export default `<!DOCTYPE html>
|
||||
</v-container>
|
||||
</v-app>
|
||||
</div>
|
||||
<script src="<%- ncPublicUrl %>/js/vuetify.2.x.min.js"></script>
|
||||
<script src="<%- ncPublicUrl %>/js/axios.0.19.2.min.js"></script>
|
||||
<script src="<%= ncPublicUrl %>/js/vuetify.2.x.min.js"></script>
|
||||
<script src="<%= ncPublicUrl %>/js/axios.0.19.2.min.js"></script>
|
||||
|
||||
<script>
|
||||
var app = new Vue({
|
||||
@@ -53,7 +53,7 @@ export default `<!DOCTYPE html>
|
||||
methods: {},
|
||||
async created() {
|
||||
try {
|
||||
const valid = (await axios.post('<%- baseUrl %>/api/v1/auth/email/validate/' + this.token)).data;
|
||||
const valid = (await axios.post('<%= baseUrl %>/api/v1/auth/email/validate/' + this.token)).data;
|
||||
this.valid = !!valid;
|
||||
} catch (e) {
|
||||
this.valid = false;
|
||||
|
||||
@@ -3,10 +3,10 @@ export default `<!DOCTYPE html>
|
||||
<head>
|
||||
<title>NocoDB - Reset Password</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no, minimal-ui">
|
||||
<link href="<%- ncPublicUrl %>/css/fonts.roboto.css" rel="stylesheet">
|
||||
<link href="<%- ncPublicUrl %>/css/materialdesignicons.5.x.min.css" rel="stylesheet">
|
||||
<link href="<%- ncPublicUrl %>/css/vuetify.2.x.min.css" rel="stylesheet">
|
||||
<script src="<%- ncPublicUrl %>/js/vue.2.6.14.min.js"></script>
|
||||
<link href="<%= ncPublicUrl %>/css/fonts.roboto.css" rel="stylesheet">
|
||||
<link href="<%= ncPublicUrl %>/css/materialdesignicons.5.x.min.css" rel="stylesheet">
|
||||
<link href="<%= ncPublicUrl %>/css/vuetify.2.x.min.css" rel="stylesheet">
|
||||
<script src="<%= ncPublicUrl %>/js/vue.2.6.14.min.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<div id="app">
|
||||
@@ -58,8 +58,8 @@ export default `<!DOCTYPE html>
|
||||
</v-container>
|
||||
</v-app>
|
||||
</div>
|
||||
<script src="<%- ncPublicUrl %>/js/vuetify.2.x.min.js"></script>
|
||||
<script src="<%- ncPublicUrl %>/js/axios.0.19.2.min.js"></script>
|
||||
<script src="<%= ncPublicUrl %>/js/vuetify.2.x.min.js"></script>
|
||||
<script src="<%= ncPublicUrl %>/js/axios.0.19.2.min.js"></script>
|
||||
|
||||
<script>
|
||||
var app = new Vue({
|
||||
@@ -80,7 +80,7 @@ export default `<!DOCTYPE html>
|
||||
async resetPassword() {
|
||||
if (this.$refs.form.validate()) {
|
||||
try {
|
||||
const res = await axios.post('<%- baseUrl %>api/v1/db/auth/password/reset/' + this.token, {
|
||||
const res = await axios.post('<%= baseUrl %>api/v1/db/auth/password/reset/' + this.token, {
|
||||
...this.formdata
|
||||
});
|
||||
this.success = true;
|
||||
@@ -96,7 +96,7 @@ export default `<!DOCTYPE html>
|
||||
},
|
||||
async created() {
|
||||
try {
|
||||
const valid = (await axios.post('<%- baseUrl %>api/v1/db/auth/token/validate/' + this.token)).data;
|
||||
const valid = (await axios.post('<%= baseUrl %>api/v1/db/auth/token/validate/' + this.token)).data;
|
||||
this.valid = !!valid;
|
||||
} catch (e) {
|
||||
this.valid = false;
|
||||
|
||||
@@ -123,7 +123,7 @@ table[class=body] .article {
|
||||
<table role="presentation" border="0" cellpadding="0" cellspacing="0" style="border-collapse: separate; mso-table-lspace: 0pt; mso-table-rspace: 0pt; width: auto;">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td style="font-family: sans-serif; font-size: 14px; vertical-align: top; border-radius: 5px; text-align: center; background-color: #3498db;" valign="top" align="center" bgcolor="#1088ff"> <a href="<%- resetLink %>" target="_blank" style="border: solid 1px rgb(23, 139, 255); border-radius: 5px; box-sizing: border-box; cursor: pointer; display: inline-block; font-size: 14px; font-weight: bold; margin: 0; padding: 12px 25px; text-decoration: none; text-transform: capitalize; background-color: rgb(23, 139, 255); border-color: #3498db; color: #ffffff;">Reset Password</a> </td>
|
||||
<td style="font-family: sans-serif; font-size: 14px; vertical-align: top; border-radius: 5px; text-align: center; background-color: #3498db;" valign="top" align="center" bgcolor="#1088ff"> <a href="<%= resetLink %>" target="_blank" style="border: solid 1px rgb(23, 139, 255); border-radius: 5px; box-sizing: border-box; cursor: pointer; display: inline-block; font-size: 14px; font-weight: bold; margin: 0; padding: 12px 25px; text-decoration: none; text-transform: capitalize; background-color: rgb(23, 139, 255); border-color: #3498db; color: #ffffff;">Reset Password</a> </td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
@@ -132,7 +132,7 @@ export default `<!doctype html>
|
||||
<p style="font-family: sans-serif; font-size: 14px; font-weight: normal; margin: 0; margin-bottom: 15px;">
|
||||
Hi,</p>
|
||||
<p style="font-family: sans-serif; font-size: 14px; font-weight: normal; margin: 0; margin-bottom: 15px;">
|
||||
You have been invited to become "<%- roles -%>" of the NocoDB base "<%- baseName %>".
|
||||
You have been invited to become "<%= roles -%>" of the NocoDB base "<%= baseName %>".
|
||||
Click the button below to accept the invitation.</p>
|
||||
<table role="presentation" border="0" cellpadding="0" cellspacing="0"
|
||||
class="btn btn-primary"
|
||||
@@ -150,7 +150,7 @@ export default `<!doctype html>
|
||||
<tr>
|
||||
<td style="font-family: sans-serif; font-size: 14px; vertical-align: top; border-radius: 5px; text-align: center; background-color: #3498db;"
|
||||
valign="top" align="center" bgcolor="#1088ff"><a
|
||||
href="<%- signupLink %>" target="_blank"
|
||||
href="<%= signupLink %>" target="_blank"
|
||||
style="border: solid 1px rgb(23, 139, 255); border-radius: 5px; box-sizing: border-box; cursor: pointer; display: inline-block; font-size: 14px; font-weight: bold; margin: 0; padding: 12px 25px; text-decoration: none; text-transform: capitalize; background-color: rgb(23, 139, 255); border-color: #3498db; color: #ffffff;">Signup</a>
|
||||
</td>
|
||||
</tr>
|
||||
@@ -161,7 +161,7 @@ export default `<!doctype html>
|
||||
</tbody>
|
||||
</table>
|
||||
<p style="font-family: sans-serif; font-size: 14px; font-weight: normal; margin: 0; margin-bottom: 15px;">
|
||||
Have a nice day,<br><%- adminEmail %></p>
|
||||
Have a nice day,<br><%= adminEmail %></p>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
@@ -149,7 +149,7 @@ export default `<!doctype html>
|
||||
<tr>
|
||||
<td style="font-family: sans-serif; font-size: 14px; vertical-align: top; border-radius: 5px; text-align: center; background-color: #3498db;"
|
||||
valign="top" align="center" bgcolor="#1088ff"><a
|
||||
href="<%- verifyLink %>" target="_blank"
|
||||
href="<%= verifyLink %>" target="_blank"
|
||||
style="border: solid 1px rgb(23, 139, 255); border-radius: 5px; box-sizing: border-box; cursor: pointer; display: inline-block; font-size: 14px; font-weight: bold; margin: 0; padding: 12px 25px; text-decoration: none; text-transform: capitalize; background-color: rgb(23, 139, 255); border-color: #3498db; color: #ffffff;">Verify</a>
|
||||
</td>
|
||||
</tr>
|
||||
@@ -160,7 +160,7 @@ export default `<!doctype html>
|
||||
</tbody>
|
||||
</table>
|
||||
<p style="font-family: sans-serif; font-size: 14px; font-weight: normal; margin: 0; margin-bottom: 15px;">
|
||||
Thank you and have a nice day,<br><%- adminEmail %>
|
||||
Thank you and have a nice day,<br><%= adminEmail %>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
@@ -136,7 +136,7 @@ export default `<!doctype html>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="font-family: sans-serif; font-size: 14px;line-height: 20px; vertical-align: top;padding: 10px 5px 40px 5px; " colspan="2">
|
||||
Someone has responded to Form. A record has been added to the subscriptions table in <span style="font-weight: bold"><%- _tn %></span>.
|
||||
Someone has responded to Form. A record has been added to the subscriptions table in <span style="font-weight: bold"><%= _tn %></span>.
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
@@ -146,11 +146,11 @@ export default `<!doctype html>
|
||||
<tr>
|
||||
<td style="font-family: sans-serif; font-size: 14px; vertical-align: top;padding: 20px 5px 20px 5px;text-transform: capitalize "
|
||||
valign="top">
|
||||
<%- prop %>
|
||||
<%= prop %>
|
||||
</td>
|
||||
<td style="font-family: sans-serif; font-size: 14px; vertical-align: top;padding: 20px 5px 20px 5px;"
|
||||
valign="top">
|
||||
<%- data[prop] %>
|
||||
<%= data[prop] %>
|
||||
</td>
|
||||
</tr>
|
||||
<% }
|
||||
|
||||
Reference in New Issue
Block a user