mirror of
https://github.com/maelgangloff/domain-watchdog.git
synced 2025-12-17 09:45:29 +00:00
feat: update email template
This commit is contained in:
parent
543a8a495e
commit
0dfc0cdd58
@ -4,8 +4,6 @@ import {Grid, Paper} from "@mui/material";
|
||||
|
||||
|
||||
export default function DashboardPage() {
|
||||
|
||||
|
||||
return (
|
||||
<>
|
||||
<Container maxWidth="lg" sx={{mt: 4, mb: 4}}>
|
||||
@ -19,6 +17,7 @@ export default function DashboardPage() {
|
||||
height: 240,
|
||||
}}
|
||||
>
|
||||
|
||||
</Paper>
|
||||
</Grid>
|
||||
</Grid>
|
||||
27
assets/pages/EntityFinderPage.tsx
Normal file
27
assets/pages/EntityFinderPage.tsx
Normal file
@ -0,0 +1,27 @@
|
||||
import React from 'react';
|
||||
import Container from "@mui/material/Container";
|
||||
import {Grid, Paper} from "@mui/material";
|
||||
|
||||
|
||||
export default function DomainFinderPage() {
|
||||
return (
|
||||
<>
|
||||
<Container maxWidth="lg" sx={{mt: 4, mb: 4}}>
|
||||
<Grid container spacing={3}>
|
||||
<Grid item xs={12} md={8} lg={9}>
|
||||
<Paper
|
||||
sx={{
|
||||
p: 2,
|
||||
display: 'flex',
|
||||
flexDirection: 'column',
|
||||
height: 240,
|
||||
}}
|
||||
>
|
||||
|
||||
</Paper>
|
||||
</Grid>
|
||||
</Grid>
|
||||
</Container>
|
||||
</>
|
||||
);
|
||||
};
|
||||
27
assets/pages/NameserverFinderPage.tsx
Normal file
27
assets/pages/NameserverFinderPage.tsx
Normal file
@ -0,0 +1,27 @@
|
||||
import React from 'react';
|
||||
import Container from "@mui/material/Container";
|
||||
import {Grid, Paper} from "@mui/material";
|
||||
|
||||
|
||||
export default function NameserverPage() {
|
||||
return (
|
||||
<>
|
||||
<Container maxWidth="lg" sx={{mt: 4, mb: 4}}>
|
||||
<Grid container spacing={3}>
|
||||
<Grid item xs={12} md={8} lg={9}>
|
||||
<Paper
|
||||
sx={{
|
||||
p: 2,
|
||||
display: 'flex',
|
||||
flexDirection: 'column',
|
||||
height: 240,
|
||||
}}
|
||||
>
|
||||
|
||||
</Paper>
|
||||
</Grid>
|
||||
</Grid>
|
||||
</Container>
|
||||
</>
|
||||
);
|
||||
};
|
||||
27
assets/pages/NameserverPage.tsx
Normal file
27
assets/pages/NameserverPage.tsx
Normal file
@ -0,0 +1,27 @@
|
||||
import React from 'react';
|
||||
import Container from "@mui/material/Container";
|
||||
import {Grid, Paper} from "@mui/material";
|
||||
|
||||
|
||||
export default function DomainFinderPage() {
|
||||
return (
|
||||
<>
|
||||
<Container maxWidth="lg" sx={{mt: 4, mb: 4}}>
|
||||
<Grid container spacing={3}>
|
||||
<Grid item xs={12} md={8} lg={9}>
|
||||
<Paper
|
||||
sx={{
|
||||
p: 2,
|
||||
display: 'flex',
|
||||
flexDirection: 'column',
|
||||
height: 240,
|
||||
}}
|
||||
>
|
||||
|
||||
</Paper>
|
||||
</Grid>
|
||||
</Grid>
|
||||
</Container>
|
||||
</>
|
||||
);
|
||||
};
|
||||
27
assets/pages/ReverseDirectoryPage.tsx
Normal file
27
assets/pages/ReverseDirectoryPage.tsx
Normal file
@ -0,0 +1,27 @@
|
||||
import React from 'react';
|
||||
import Container from "@mui/material/Container";
|
||||
import {Grid, Paper} from "@mui/material";
|
||||
|
||||
|
||||
export default function DomainFinderPage() {
|
||||
return (
|
||||
<>
|
||||
<Container maxWidth="lg" sx={{mt: 4, mb: 4}}>
|
||||
<Grid container spacing={3}>
|
||||
<Grid item xs={12} md={8} lg={9}>
|
||||
<Paper
|
||||
sx={{
|
||||
p: 2,
|
||||
display: 'flex',
|
||||
flexDirection: 'column',
|
||||
height: 240,
|
||||
}}
|
||||
>
|
||||
|
||||
</Paper>
|
||||
</Grid>
|
||||
</Grid>
|
||||
</Container>
|
||||
</>
|
||||
);
|
||||
};
|
||||
27
assets/pages/TldPage.tsx
Normal file
27
assets/pages/TldPage.tsx
Normal file
@ -0,0 +1,27 @@
|
||||
import React from 'react';
|
||||
import Container from "@mui/material/Container";
|
||||
import {Grid, Paper} from "@mui/material";
|
||||
|
||||
|
||||
export default function DomainFinderPage() {
|
||||
return (
|
||||
<>
|
||||
<Container maxWidth="lg" sx={{mt: 4, mb: 4}}>
|
||||
<Grid container spacing={3}>
|
||||
<Grid item xs={12} md={8} lg={9}>
|
||||
<Paper
|
||||
sx={{
|
||||
p: 2,
|
||||
display: 'flex',
|
||||
flexDirection: 'column',
|
||||
height: 240,
|
||||
}}
|
||||
>
|
||||
|
||||
</Paper>
|
||||
</Grid>
|
||||
</Grid>
|
||||
</Container>
|
||||
</>
|
||||
);
|
||||
};
|
||||
27
assets/pages/WatchlistsPage.tsx
Normal file
27
assets/pages/WatchlistsPage.tsx
Normal file
@ -0,0 +1,27 @@
|
||||
import React from 'react';
|
||||
import Container from "@mui/material/Container";
|
||||
import {Grid, Paper} from "@mui/material";
|
||||
|
||||
|
||||
export default function DomainFinderPage() {
|
||||
return (
|
||||
<>
|
||||
<Container maxWidth="lg" sx={{mt: 4, mb: 4}}>
|
||||
<Grid container spacing={3}>
|
||||
<Grid item xs={12} md={8} lg={9}>
|
||||
<Paper
|
||||
sx={{
|
||||
p: 2,
|
||||
display: 'flex',
|
||||
flexDirection: 'column',
|
||||
height: 240,
|
||||
}}
|
||||
>
|
||||
|
||||
</Paper>
|
||||
</Grid>
|
||||
</Grid>
|
||||
</Container>
|
||||
</>
|
||||
);
|
||||
};
|
||||
@ -18,6 +18,7 @@ use Symfony\Component\Serializer\Attribute\SerializedName;
|
||||
#[ORM\Entity(repositoryClass: DomainRepository::class)]
|
||||
#[ApiResource(
|
||||
operations: [
|
||||
/*
|
||||
new GetCollection(
|
||||
normalizationContext: [
|
||||
'groups' => [
|
||||
@ -25,6 +26,7 @@ use Symfony\Component\Serializer\Attribute\SerializedName;
|
||||
]
|
||||
]
|
||||
),
|
||||
*/
|
||||
new Get(
|
||||
uriTemplate: '/domains/{ldhName}', # Do not delete this line, otherwise Symfony interprets the TLD of the domain name as a return type
|
||||
controller: DomainRefreshController::class,
|
||||
|
||||
@ -1,14 +1,66 @@
|
||||
<p>
|
||||
Hello,<br />
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<style>
|
||||
body {
|
||||
font-family: Arial, sans-serif;
|
||||
line-height: 1.6;
|
||||
color: #333;
|
||||
}
|
||||
|
||||
.container {
|
||||
max-width: 600px;
|
||||
margin: 0 auto;
|
||||
padding: 20px;
|
||||
border: 1px solid #ddd;
|
||||
border-radius: 5px;
|
||||
background-color: #f9f9f9;
|
||||
}
|
||||
|
||||
.header {
|
||||
text-align: center;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
.header h1 {
|
||||
font-size: 24px;
|
||||
color: #0056b3;
|
||||
}
|
||||
|
||||
.content {
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
.content p {
|
||||
margin: 0 0 10px;
|
||||
}
|
||||
|
||||
.footer {
|
||||
text-align: center;
|
||||
color: #777;
|
||||
}
|
||||
</style>
|
||||
<title>Domain Watchdog Alert</title>
|
||||
</head>
|
||||
<body>
|
||||
<div class="container">
|
||||
<div class="header">
|
||||
<h1>Domain Watchdog Alert</h1>
|
||||
</div>
|
||||
<div class="content">
|
||||
<p>Hello,</p>
|
||||
<p>We are pleased to inform you that a new action has been detected on a domain name in your watchlist.</p>
|
||||
<p><strong>Domain name:</strong> {{ event.domain.ldhName }}</p>
|
||||
<p><strong>Action:</strong> {{ event.action.value }}</p>
|
||||
<p><strong>Effective Date:</strong> {{ event.date | date("c") }}</p>
|
||||
<br/>
|
||||
We are pleased to inform you that a new action has been detected on a domain name in your watchlist.<br />
|
||||
Domain name : <b>{{ event.domain.ldhName }}</b><br />
|
||||
Action : <b>{{ event.action.value }}</b><br />
|
||||
Effective Date : <b>{{ event.date | date("c") }}</b><br />
|
||||
<br />
|
||||
<br />
|
||||
Thank you for your understanding,<br />
|
||||
Sincerely<br />
|
||||
<br />
|
||||
Domain Watchdog
|
||||
</p>
|
||||
<p>Thank you for your understanding,</p>
|
||||
<p>Sincerely,</p>
|
||||
<p>Domain Watchdog</p>
|
||||
</div>
|
||||
<div class="footer">
|
||||
<p>© Domain Watchdog</p>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@ -1,17 +1,77 @@
|
||||
<p>
|
||||
Hello,<br />
|
||||
<br />
|
||||
We would like to inform you that an error occurred while updating the information for the following domain name.
|
||||
<br/>
|
||||
Domain name : <b>{{ domain.ldhName }}</b><br/>
|
||||
<br/>
|
||||
Here are some possible explanations:<br/>
|
||||
* It is likely that the domain will be available for registration again.<br/>
|
||||
* A temporary outage affects the provision of domain name information.<br/>
|
||||
<br/>
|
||||
<br/>
|
||||
Thank you for your understanding,<br/>
|
||||
Sincerely<br/>
|
||||
<br/>
|
||||
Domain Watchdog
|
||||
</p>
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<style>
|
||||
body {
|
||||
font-family: Arial, sans-serif;
|
||||
line-height: 1.6;
|
||||
color: #333;
|
||||
}
|
||||
|
||||
.container {
|
||||
max-width: 600px;
|
||||
margin: 0 auto;
|
||||
padding: 20px;
|
||||
border: 1px solid #ddd;
|
||||
border-radius: 5px;
|
||||
background-color: #f9f9f9;
|
||||
}
|
||||
|
||||
.header {
|
||||
text-align: center;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
.header h1 {
|
||||
font-size: 24px;
|
||||
color: #d9534f;
|
||||
}
|
||||
|
||||
.content {
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
.content p {
|
||||
margin: 0 0 10px;
|
||||
}
|
||||
|
||||
.footer {
|
||||
text-align: center;
|
||||
color: #777;
|
||||
}
|
||||
|
||||
ul {
|
||||
padding-left: 20px;
|
||||
}
|
||||
|
||||
ul li {
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
</style>
|
||||
<title>Domain Watchdog Error</title>
|
||||
</head>
|
||||
<body>
|
||||
<div class="container">
|
||||
<div class="header">
|
||||
<h1>Domain Watchdog Error</h1>
|
||||
</div>
|
||||
<div class="content">
|
||||
<p>Hello,</p>
|
||||
<p>We would like to inform you that an error occurred while updating the information for the following domain
|
||||
name:</p>
|
||||
<p><strong>Domain name:</strong> {{ domain.ldhName }}</p>
|
||||
<p>Here are some possible explanations:</p>
|
||||
<ul>
|
||||
<li>It is likely that the domain will be available for registration again.</li>
|
||||
<li>A temporary outage affects the provision of domain name information.</li>
|
||||
</ul>
|
||||
<p>Thank you for your understanding,</p>
|
||||
<p>Sincerely,</p>
|
||||
<p>Domain Watchdog</p>
|
||||
</div>
|
||||
<div class="footer">
|
||||
<p>© Domain Watchdog</p>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user