CHANGE SLD+TLD to FQDN, CHANGE dedublication to show all entries
This commit is contained in:
parent
6ce10f673e
commit
fc72f6f51c
3 changed files with 83 additions and 142 deletions
|
@ -53,7 +53,7 @@
|
|||
tr:hover {
|
||||
background-color: #f5f5f5;
|
||||
}
|
||||
.sld-badge {
|
||||
.domain-badge {
|
||||
display: inline-block;
|
||||
padding: 3px 7px;
|
||||
background-color: #d1e7dd;
|
||||
|
@ -61,14 +61,6 @@
|
|||
font-size: 0.9em;
|
||||
color: #0f5132;
|
||||
}
|
||||
.tld-badge {
|
||||
display: inline-block;
|
||||
padding: 3px 7px;
|
||||
background-color: #cfe2ff;
|
||||
border-radius: 4px;
|
||||
font-size: 0.9em;
|
||||
color: #0a58ca;
|
||||
}
|
||||
.api-section {
|
||||
margin-top: 30px;
|
||||
padding: 15px;
|
||||
|
@ -149,7 +141,7 @@
|
|||
<h1>Domain Management System</h1>
|
||||
|
||||
<div class="nav">
|
||||
<a href="/" class="nav-link">SLD View</a>
|
||||
<a href="/" class="nav-link">Domains</a>
|
||||
<a href="/dns-records" class="nav-link">DNS Records</a>
|
||||
</div>
|
||||
|
||||
|
@ -222,9 +214,9 @@
|
|||
<div class="api-section">
|
||||
<h3>API Endpoints</h3>
|
||||
<p>Get all uploads: <code>/api/uploads</code></p>
|
||||
<p>Get all domains: <code>/api/slds</code></p>
|
||||
<p>Get domains by SLD: <code>/api/slds/{sld}</code></p>
|
||||
<p>Filter by upload: <code>/api/slds?upload_id={upload_id}</code></p>
|
||||
<p>Get all domains: <code>/api/domains</code></p>
|
||||
<p>Get domains by name: <code>/api/domains/{domain}</code></p>
|
||||
<p>Filter by upload: <code>/api/domains?upload_id={upload_id}</code></p>
|
||||
</div>
|
||||
|
||||
{% if domains %}
|
||||
|
@ -232,20 +224,14 @@
|
|||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>SLD</th>
|
||||
<th>TLD</th>
|
||||
<th>Subdomain</th>
|
||||
<th>Full Domain</th>
|
||||
<th>Domain</th>
|
||||
<th>Upload Date</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for item in domains %}
|
||||
<tr>
|
||||
<td><span class="sld-badge">{{ item.sld }}</span></td>
|
||||
<td><span class="tld-badge">{{ item.tld }}</span></td>
|
||||
<td>{{ item.get('subdomain', 'N/A') }}</td>
|
||||
<td>{{ item.full_domain }}</td>
|
||||
<td><span class="domain-badge">{{ item.full_domain }}</span></td>
|
||||
<td>{{ item.timestamp.replace('T', ' ').split('.')[0] if item.get('timestamp') else 'N/A' }}</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue