Escape everything that should be escaped. Add nonce checks where needed. Sanitize all inputs. Apply Code style changes across the codebase. Correct many deprecation notices. Optimize load order of many filters.
82 lines
1.8 KiB
PHP
82 lines
1.8 KiB
PHP
<?php
|
|
/**
|
|
* DNS table view.
|
|
*
|
|
* @since 2.0.0
|
|
*/
|
|
?>
|
|
<div id="wu-dns-table" class="wu-widget-list-table wu-advanced-filters wu--m-3 wu-mt-2 wu--mb-3 wu-border-0 wu-border-t wu-border-solid wu-border-gray-400">
|
|
|
|
<table class="wp-list-table widefat fixed striped wu-border-t-0" v-cloak>
|
|
|
|
<thead>
|
|
<tr>
|
|
<th class="wu-w-4/12"><?php esc_html_e('Host', 'wp-multisite-waas'); ?></th>
|
|
<th class="wu-w-2/12"><?php esc_html_e('Type', 'wp-multisite-waas'); ?></th>
|
|
<th class="wu-w-4/12"><?php esc_html_e('IP / Target', 'wp-multisite-waas'); ?></th>
|
|
<th class="wu-w-2/12"><?php esc_html_e('TTL', 'wp-multisite-waas'); ?></th>
|
|
</tr>
|
|
</thead>
|
|
|
|
<tbody v-if="loading">
|
|
|
|
<tr>
|
|
|
|
<td colspan="4">
|
|
|
|
<?php esc_html_e('Loading DNS entries...', 'wp-multisite-waas'); ?>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
<tbody v-if="!loading && error">
|
|
|
|
<tr>
|
|
|
|
<td colspan="4">
|
|
|
|
<div class="wu-mt-0 wu-p-4 wu-bg-red-100 wu-border wu-border-solid wu-border-red-200 wu-rounded-sm wu-text-red-500" v-html="error[0].message"></div>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
<tbody v-if="!loading && !error">
|
|
|
|
<tr v-for="dns in results.entries">
|
|
<td>{{ dns.host }}<span v-html="dns.tag" v-if="dns.tag"></span></td>
|
|
<td>{{ dns.type }}</td>
|
|
<td>{{ dns.data }}</td>
|
|
<td>{{ dns.ttl }}</td>
|
|
</tr>
|
|
|
|
<tr v-for="dns in results.auth">
|
|
<td>{{ dns.host }}<span v-html="dns.tag" v-if="dns.tag"></span></td>
|
|
<td>{{ dns.type }}</td>
|
|
<td>{{ dns.data }}</td>
|
|
<td>{{ dns.ttl }}</td>
|
|
</tr>
|
|
|
|
<tr v-for="dns in results.additional">
|
|
<td>{{ dns.host }}<span v-html="dns.tag" v-if="dns.tag"></span></td>
|
|
<td>{{ dns.type }}</td>
|
|
<td>{{ dns.data }}</td>
|
|
<td>{{ dns.ttl }}</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td colspan="2"><?php esc_html_e('Your Network IP', 'wp-multisite-waas'); ?></td>
|
|
<td colspan="2" class="wu-text-left">{{ results.network_ip }}</td>
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|