mirror of
https://github.com/maelgangloff/domain-watchdog.git
synced 2025-12-17 17:55:42 +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() {
|
export default function DashboardPage() {
|
||||||
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<Container maxWidth="lg" sx={{mt: 4, mb: 4}}>
|
<Container maxWidth="lg" sx={{mt: 4, mb: 4}}>
|
||||||
@ -19,6 +17,7 @@ export default function DashboardPage() {
|
|||||||
height: 240,
|
height: 240,
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
|
|
||||||
</Paper>
|
</Paper>
|
||||||
</Grid>
|
</Grid>
|
||||||
</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)]
|
#[ORM\Entity(repositoryClass: DomainRepository::class)]
|
||||||
#[ApiResource(
|
#[ApiResource(
|
||||||
operations: [
|
operations: [
|
||||||
|
/*
|
||||||
new GetCollection(
|
new GetCollection(
|
||||||
normalizationContext: [
|
normalizationContext: [
|
||||||
'groups' => [
|
'groups' => [
|
||||||
@ -25,6 +26,7 @@ use Symfony\Component\Serializer\Attribute\SerializedName;
|
|||||||
]
|
]
|
||||||
]
|
]
|
||||||
),
|
),
|
||||||
|
*/
|
||||||
new Get(
|
new Get(
|
||||||
uriTemplate: '/domains/{ldhName}', # Do not delete this line, otherwise Symfony interprets the TLD of the domain name as a return type
|
uriTemplate: '/domains/{ldhName}', # Do not delete this line, otherwise Symfony interprets the TLD of the domain name as a return type
|
||||||
controller: DomainRefreshController::class,
|
controller: DomainRefreshController::class,
|
||||||
|
|||||||
@ -1,14 +1,66 @@
|
|||||||
<p>
|
<!DOCTYPE html>
|
||||||
Hello,<br />
|
<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/>
|
<br/>
|
||||||
We are pleased to inform you that a new action has been detected on a domain name in your watchlist.<br />
|
<p>Thank you for your understanding,</p>
|
||||||
Domain name : <b>{{ event.domain.ldhName }}</b><br />
|
<p>Sincerely,</p>
|
||||||
Action : <b>{{ event.action.value }}</b><br />
|
<p>Domain Watchdog</p>
|
||||||
Effective Date : <b>{{ event.date | date("c") }}</b><br />
|
</div>
|
||||||
<br />
|
<div class="footer">
|
||||||
<br />
|
<p>© Domain Watchdog</p>
|
||||||
Thank you for your understanding,<br />
|
</div>
|
||||||
Sincerely<br />
|
</div>
|
||||||
<br />
|
</body>
|
||||||
Domain Watchdog
|
</html>
|
||||||
</p>
|
|
||||||
@ -1,17 +1,77 @@
|
|||||||
<p>
|
<!DOCTYPE html>
|
||||||
Hello,<br />
|
<html lang="en">
|
||||||
<br />
|
<head>
|
||||||
We would like to inform you that an error occurred while updating the information for the following domain name.
|
<style>
|
||||||
<br/>
|
body {
|
||||||
Domain name : <b>{{ domain.ldhName }}</b><br/>
|
font-family: Arial, sans-serif;
|
||||||
<br/>
|
line-height: 1.6;
|
||||||
Here are some possible explanations:<br/>
|
color: #333;
|
||||||
* 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/>
|
.container {
|
||||||
<br/>
|
max-width: 600px;
|
||||||
Thank you for your understanding,<br/>
|
margin: 0 auto;
|
||||||
Sincerely<br/>
|
padding: 20px;
|
||||||
<br/>
|
border: 1px solid #ddd;
|
||||||
Domain Watchdog
|
border-radius: 5px;
|
||||||
</p>
|
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