Compare commits
6 commits
b23b0ae31a
...
ea0e0df57d
Author | SHA1 | Date | |
---|---|---|---|
ea0e0df57d | |||
c3c18ced05 | |||
44722f6b43 | |||
babe61258a | |||
7b5287fe9a | |||
f2cc795dc2 |
|
@ -1,33 +0,0 @@
|
|||
<script lang="ts">
|
||||
export let cc: string;
|
||||
export let country_name: string;
|
||||
export let city: string;
|
||||
export let asn: number;
|
||||
export let asn_name: string;
|
||||
|
||||
$: lowerCc = cc.toLowerCase();
|
||||
</script>
|
||||
|
||||
{#if cc != ''}
|
||||
{#if city !== ''}
|
||||
{city},
|
||||
{/if}
|
||||
{country_name}
|
||||
<img class="inline-block" src="/img/cf/{lowerCc}.svg" alt="{cc} Flag" width="22px" />
|
||||
{/if}
|
||||
|
||||
{#if asn !== 0}
|
||||
<br /><a
|
||||
class="external !text-purple-800 dark:!text-purple-400"
|
||||
href="https://www.ditatompel.com/asn/{asn}"
|
||||
target="_blank"
|
||||
rel="noopener">AS{asn}</a
|
||||
>
|
||||
(<span class="font-semibold text-green-800 dark:text-green-500">{asn_name}</span>)
|
||||
{/if}
|
||||
|
||||
<style lang="postcss">
|
||||
a {
|
||||
@apply font-semibold text-sky-800 underline dark:text-sky-500;
|
||||
}
|
||||
</style>
|
|
@ -1,56 +0,0 @@
|
|||
<script>
|
||||
import { getModalStore } from '@skeletonlabs/skeleton';
|
||||
import { formatHostname } from '$lib/utils/strings';
|
||||
|
||||
const modalStore = getModalStore();
|
||||
|
||||
/**
|
||||
* @type {{
|
||||
* is_tor: boolean,
|
||||
* hostname: string,
|
||||
* port: number,
|
||||
* ipv6_only: boolean
|
||||
* }}
|
||||
*/
|
||||
export let is_tor;
|
||||
export let hostname;
|
||||
export let port;
|
||||
export let ipv6_only;
|
||||
/** @type {string} */
|
||||
export let ip_addresses;
|
||||
|
||||
/**
|
||||
* @param {string} onionAddr
|
||||
* @param {number} port
|
||||
*/
|
||||
function modalAlert(onionAddr, port) {
|
||||
/** @typedef {import('@skeletonlabs/skeleton').ModalSettings} ModalSettings */
|
||||
/** @type {ModalSettings} */
|
||||
const modal = {
|
||||
type: 'alert',
|
||||
title: 'Hostname:',
|
||||
body: '<code class="code">' + onionAddr + ':' + port + '</code>'
|
||||
};
|
||||
modalStore.trigger(modal);
|
||||
}
|
||||
</script>
|
||||
|
||||
{#if is_tor}
|
||||
<button
|
||||
class="max-w-40 truncate text-orange-800 dark:text-orange-300"
|
||||
on:click={() => modalAlert(hostname, port)}
|
||||
>
|
||||
👁 {hostname}
|
||||
</button><br />.onion:<span class="text-indigo-800 dark:text-indigo-400">{port}</span>
|
||||
<span class="text-gray-700 dark:text-gray-400">(TOR)</span>
|
||||
{:else}
|
||||
{formatHostname(hostname)}:<span class="text-indigo-800 dark:text-indigo-400">{port}</span><br />
|
||||
<div class="max-w-40 text-ellipsis overflow-x-auto md:overflow-hidden hover:overflow-visible">
|
||||
<span class="whitespace-break-spaces text-gray-700 dark:text-gray-400"
|
||||
>{ip_addresses.replace(/,/g, ' ')}</span
|
||||
>
|
||||
{#if ipv6_only}
|
||||
<span class="text-rose-800 dark:text-rose-400">(IPv6 only)</span>
|
||||
{/if}
|
||||
</div>
|
||||
{/if}
|
|
@ -1,15 +0,0 @@
|
|||
<script>
|
||||
/** @type {string} */
|
||||
export let nettype;
|
||||
/** @type {number} */
|
||||
export let height;
|
||||
</script>
|
||||
|
||||
{#if nettype === 'stagenet'}
|
||||
<span class="font-semibold uppercase text-sky-800 dark:text-sky-500">{nettype}</span>
|
||||
{:else if nettype === 'testnet'}
|
||||
<span class="font-semibold uppercase text-rose-800 dark:text-rose-400">{nettype}</span>
|
||||
{:else}
|
||||
<span class="font-semibold uppercase text-green-800 dark:text-green-500">{nettype}</span>
|
||||
{/if}
|
||||
<br />{height}
|
|
@ -1,16 +0,0 @@
|
|||
<script>
|
||||
/** @type {string} */
|
||||
export let protocol;
|
||||
/** @type {boolean} */
|
||||
export let cors;
|
||||
</script>
|
||||
|
||||
{#if protocol === 'http'}
|
||||
<span class="font-semibold uppercase text-sky-800 dark:text-sky-500">{protocol}</span>
|
||||
{:else}
|
||||
<span class="font-semibold uppercase text-green-800 dark:text-green-500">{protocol}</span>
|
||||
{/if}
|
||||
|
||||
{#if cors}
|
||||
<br />(CORS 💪)
|
||||
{/if}
|
Before Width: | Height: | Size: 46 KiB After Width: | Height: | Size: 46 KiB |
Before Width: | Height: | Size: 200 B After Width: | Height: | Size: 200 B |
Before Width: | Height: | Size: 184 KiB After Width: | Height: | Size: 184 KiB |
Before Width: | Height: | Size: 553 B After Width: | Height: | Size: 553 B |
Before Width: | Height: | Size: 3.4 KiB After Width: | Height: | Size: 3.4 KiB |
Before Width: | Height: | Size: 8.4 KiB After Width: | Height: | Size: 8.4 KiB |
Before Width: | Height: | Size: 178 B After Width: | Height: | Size: 178 B |
Before Width: | Height: | Size: 2.2 KiB After Width: | Height: | Size: 2.2 KiB |
Before Width: | Height: | Size: 4.7 KiB After Width: | Height: | Size: 4.7 KiB |
Before Width: | Height: | Size: 3.8 KiB After Width: | Height: | Size: 3.8 KiB |
Before Width: | Height: | Size: 45 KiB After Width: | Height: | Size: 45 KiB |
Before Width: | Height: | Size: 137 B After Width: | Height: | Size: 137 B |
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 311 B After Width: | Height: | Size: 311 B |
Before Width: | Height: | Size: 251 B After Width: | Height: | Size: 251 B |
Before Width: | Height: | Size: 516 B After Width: | Height: | Size: 516 B |
Before Width: | Height: | Size: 504 B After Width: | Height: | Size: 504 B |
Before Width: | Height: | Size: 579 B After Width: | Height: | Size: 579 B |
Before Width: | Height: | Size: 150 B After Width: | Height: | Size: 150 B |
Before Width: | Height: | Size: 171 B After Width: | Height: | Size: 171 B |
Before Width: | Height: | Size: 551 B After Width: | Height: | Size: 551 B |
Before Width: | Height: | Size: 175 B After Width: | Height: | Size: 175 B |
Before Width: | Height: | Size: 221 B After Width: | Height: | Size: 221 B |
Before Width: | Height: | Size: 878 B After Width: | Height: | Size: 878 B |
Before Width: | Height: | Size: 180 B After Width: | Height: | Size: 180 B |
Before Width: | Height: | Size: 175 B After Width: | Height: | Size: 175 B |
Before Width: | Height: | Size: 31 KiB After Width: | Height: | Size: 31 KiB |
Before Width: | Height: | Size: 20 KiB After Width: | Height: | Size: 20 KiB |
Before Width: | Height: | Size: 228 KiB After Width: | Height: | Size: 228 KiB |
Before Width: | Height: | Size: 175 B After Width: | Height: | Size: 175 B |
Before Width: | Height: | Size: 4 KiB After Width: | Height: | Size: 4 KiB |
Before Width: | Height: | Size: 169 B After Width: | Height: | Size: 169 B |
Before Width: | Height: | Size: 39 KiB After Width: | Height: | Size: 39 KiB |
Before Width: | Height: | Size: 243 B After Width: | Height: | Size: 243 B |
Before Width: | Height: | Size: 167 B After Width: | Height: | Size: 167 B |
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 80 KiB After Width: | Height: | Size: 80 KiB |
Before Width: | Height: | Size: 636 B After Width: | Height: | Size: 636 B |
Before Width: | Height: | Size: 4.6 KiB After Width: | Height: | Size: 4.6 KiB |
Before Width: | Height: | Size: 276 B After Width: | Height: | Size: 276 B |
Before Width: | Height: | Size: 302 B After Width: | Height: | Size: 302 B |
Before Width: | Height: | Size: 178 B After Width: | Height: | Size: 178 B |
Before Width: | Height: | Size: 162 B After Width: | Height: | Size: 162 B |
Before Width: | Height: | Size: 175 B After Width: | Height: | Size: 175 B |
Before Width: | Height: | Size: 1 KiB After Width: | Height: | Size: 1 KiB |
Before Width: | Height: | Size: 511 B After Width: | Height: | Size: 511 B |
Before Width: | Height: | Size: 583 B After Width: | Height: | Size: 583 B |
Before Width: | Height: | Size: 531 B After Width: | Height: | Size: 531 B |
Before Width: | Height: | Size: 178 B After Width: | Height: | Size: 178 B |
Before Width: | Height: | Size: 66 KiB After Width: | Height: | Size: 66 KiB |
Before Width: | Height: | Size: 277 B After Width: | Height: | Size: 277 B |
Before Width: | Height: | Size: 866 B After Width: | Height: | Size: 866 B |
Before Width: | Height: | Size: 571 B After Width: | Height: | Size: 571 B |
Before Width: | Height: | Size: 3.3 KiB After Width: | Height: | Size: 3.3 KiB |
Before Width: | Height: | Size: 9.5 KiB After Width: | Height: | Size: 9.5 KiB |
Before Width: | Height: | Size: 193 B After Width: | Height: | Size: 193 B |
Before Width: | Height: | Size: 160 B After Width: | Height: | Size: 160 B |
Before Width: | Height: | Size: 308 B After Width: | Height: | Size: 308 B |
Before Width: | Height: | Size: 192 B After Width: | Height: | Size: 192 B |
Before Width: | Height: | Size: 10 KiB After Width: | Height: | Size: 10 KiB |
Before Width: | Height: | Size: 141 KiB After Width: | Height: | Size: 141 KiB |
Before Width: | Height: | Size: 256 B After Width: | Height: | Size: 256 B |
Before Width: | Height: | Size: 166 KiB After Width: | Height: | Size: 166 KiB |
Before Width: | Height: | Size: 167 B After Width: | Height: | Size: 167 B |
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 16 KiB |
Before Width: | Height: | Size: 475 B After Width: | Height: | Size: 475 B |
Before Width: | Height: | Size: 4.7 KiB After Width: | Height: | Size: 4.7 KiB |
Before Width: | Height: | Size: 49 KiB After Width: | Height: | Size: 49 KiB |
Before Width: | Height: | Size: 676 B After Width: | Height: | Size: 676 B |
Before Width: | Height: | Size: 888 B After Width: | Height: | Size: 888 B |
Before Width: | Height: | Size: 203 B After Width: | Height: | Size: 203 B |
Before Width: | Height: | Size: 40 KiB After Width: | Height: | Size: 40 KiB |
Before Width: | Height: | Size: 98 KiB After Width: | Height: | Size: 98 KiB |
Before Width: | Height: | Size: 647 B After Width: | Height: | Size: 647 B |
Before Width: | Height: | Size: 243 B After Width: | Height: | Size: 243 B |
Before Width: | Height: | Size: 175 B After Width: | Height: | Size: 175 B |
Before Width: | Height: | Size: 194 B After Width: | Height: | Size: 194 B |
Before Width: | Height: | Size: 175 B After Width: | Height: | Size: 175 B |
Before Width: | Height: | Size: 527 B After Width: | Height: | Size: 527 B |
Before Width: | Height: | Size: 264 B After Width: | Height: | Size: 264 B |
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 15 KiB |
Before Width: | Height: | Size: 527 B After Width: | Height: | Size: 527 B |
Before Width: | Height: | Size: 954 B After Width: | Height: | Size: 954 B |
Before Width: | Height: | Size: 744 B After Width: | Height: | Size: 744 B |
Before Width: | Height: | Size: 175 B After Width: | Height: | Size: 175 B |
Before Width: | Height: | Size: 424 B After Width: | Height: | Size: 424 B |
Before Width: | Height: | Size: 260 B After Width: | Height: | Size: 260 B |
Before Width: | Height: | Size: 3.9 KiB After Width: | Height: | Size: 3.9 KiB |
Before Width: | Height: | Size: 174 B After Width: | Height: | Size: 174 B |
Before Width: | Height: | Size: 223 B After Width: | Height: | Size: 223 B |
Before Width: | Height: | Size: 178 B After Width: | Height: | Size: 178 B |
Before Width: | Height: | Size: 175 B After Width: | Height: | Size: 175 B |
Before Width: | Height: | Size: 5.2 KiB After Width: | Height: | Size: 5.2 KiB |
Before Width: | Height: | Size: 206 B After Width: | Height: | Size: 206 B |
Before Width: | Height: | Size: 41 KiB After Width: | Height: | Size: 41 KiB |
Before Width: | Height: | Size: 45 KiB After Width: | Height: | Size: 45 KiB |