mirror of
https://github.com/lissy93/networking-toolbox.git
synced 2026-11-26 15:44:03 +03:00
Resolve all warnings, add a CI workflow to prevent new warnings
This commit is contained in:
1 parent
ed86fdc815
commit
4e1c7cbf10
41 files changed
+194
-359
No files matched your search
@@ -0,0 +1,70 @@
|
||||
name: Code Quality Checks
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ main, develop ]
|
||||
pull_request:
|
||||
branches: [ main, develop ]
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
check:
|
||||
name: ${{ matrix.check-name }}
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
include:
|
||||
- check-name: "TypeScript & Svelte Check"
|
||||
command: "npm run check"
|
||||
description: "Verify TypeScript types and Svelte components"
|
||||
- check-name: "Build"
|
||||
command: "npm run build"
|
||||
description: "Verify project builds successfully"
|
||||
- check-name: "Lint"
|
||||
command: "npm run lint"
|
||||
description: "Check code style and quality with ESLint"
|
||||
# - check-name: "Format Check"
|
||||
# command: "npm run format:check"
|
||||
# description: "Verify code formatting with Prettier"
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Setup Node.js
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: '18'
|
||||
cache: 'npm'
|
||||
|
||||
- name: Install dependencies
|
||||
run: npm ci
|
||||
|
||||
- name: Run ${{ matrix.check-name }}
|
||||
run: ${{ matrix.command }}
|
||||
env:
|
||||
NODE_OPTIONS: "--max_old_space_size=8192"
|
||||
|
||||
- name: Quality Summary
|
||||
run: |
|
||||
echo "## 📊 Quality Check Results" >> $GITHUB_STEP_SUMMARY
|
||||
echo "| Check | Status |" >> $GITHUB_STEP_SUMMARY
|
||||
echo "|-------|--------|" >> $GITHUB_STEP_SUMMARY
|
||||
|
||||
checks=(
|
||||
"TypeScript & Svelte Check"
|
||||
"Build"
|
||||
"Lint"
|
||||
"Format Check"
|
||||
"Tests"
|
||||
"Test Coverage"
|
||||
)
|
||||
|
||||
for check in "${checks[@]}"; do
|
||||
if [[ "${{ needs.check.result }}" == "success" ]]; then
|
||||
echo "| $check | ✅ Passed |" >> $GITHUB_STEP_SUMMARY
|
||||
else
|
||||
echo "| $check | ❌ Failed |" >> $GITHUB_STEP_SUMMARY
|
||||
fi
|
||||
done
|
||||
@@ -7,7 +7,7 @@
|
||||
searchQuery: string;
|
||||
} = $props();
|
||||
|
||||
let searchInput: HTMLInputElement = $state();
|
||||
let searchInput: HTMLInputElement | undefined = $state();
|
||||
let isSearchOpen: boolean = $state(false);
|
||||
|
||||
// Weight different match types for relevance scoring
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
let query = $state('');
|
||||
let results = $state<NavItem[]>([]);
|
||||
let selectedIndex = $state(0);
|
||||
let searchInput: HTMLInputElement = $state();
|
||||
let searchInput: HTMLInputElement | undefined = $state();
|
||||
|
||||
const isMac = browser && navigator.platform.toUpperCase().indexOf('MAC') >= 0;
|
||||
const shortcutKey = isMac ? '⌘' : 'Ctrl';
|
||||
@@ -61,7 +61,7 @@
|
||||
.slice(0, 8);
|
||||
}
|
||||
|
||||
function open() {
|
||||
function showSearch() {
|
||||
isOpen = true;
|
||||
setTimeout(() => searchInput?.focus(), 0);
|
||||
}
|
||||
@@ -107,7 +107,7 @@
|
||||
function handleGlobalKeydown(e: KeyboardEvent) {
|
||||
if ((e.metaKey || e.ctrlKey) && e.key === 'k') {
|
||||
e.preventDefault();
|
||||
open();
|
||||
showSearch();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -122,11 +122,11 @@
|
||||
return () => document.removeEventListener('keydown', handleGlobalKeydown);
|
||||
});
|
||||
|
||||
export { open };
|
||||
// export { showSearch as open };
|
||||
</script>
|
||||
|
||||
<!-- Trigger Button -->
|
||||
<button class="search-trigger" onclick={open} aria-label="Open search">
|
||||
<button class="search-trigger" onclick={showSearch} aria-label="Open search">
|
||||
<Icon name="search" size="sm" />
|
||||
<span class="shortcut">{shortcutKey}K</span>
|
||||
</button>
|
||||
@@ -134,7 +134,7 @@
|
||||
<!-- Search Modal -->
|
||||
{#if isOpen}
|
||||
<div class="search-overlay" onclick={close} onkeydown={(e) => { if (e.key === 'Escape' || e.key === 'Enter' || e.key === ' ') close(); }} role="button" tabindex="-1" aria-label="Close search">
|
||||
<div class="search-modal" onclick={(e) => e.stopPropagation()}>
|
||||
<div class="search-modal" onclick={(e) => e.stopPropagation()} onkeydown={(e) => { if (e.key === 'Escape') close(); e.stopPropagation(); }} role="dialog" aria-modal="true" tabindex="-1">
|
||||
<div class="search-header">
|
||||
<Icon name="search" size="sm" />
|
||||
<input
|
||||
|
||||
@@ -341,7 +341,6 @@ fe80::/10`
|
||||
%tooltip-fade {
|
||||
opacity: 0.7;
|
||||
transition: opacity var(--transition-fast);
|
||||
&:hover { opacity: 1; }
|
||||
}
|
||||
|
||||
/* ---------- Mode selection ---------- */
|
||||
@@ -532,7 +531,6 @@ fe80::/10`
|
||||
:global(.tooltip-trigger) {
|
||||
color: var(--text-secondary);
|
||||
@extend %tooltip-fade;
|
||||
&:hover { color: var(--color-info); }
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -238,16 +238,6 @@
|
||||
gap: var(--spacing-sm);
|
||||
}
|
||||
|
||||
.overview-item {
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
gap: var(--spacing-sm);
|
||||
color: var(--text-secondary);
|
||||
|
||||
strong {
|
||||
color: var(--text-primary);
|
||||
}
|
||||
}
|
||||
|
||||
.examples-card {
|
||||
background: var(--bg-tertiary);
|
||||
|
||||
@@ -821,9 +821,7 @@ mixed-script-еxample.com"
|
||||
}
|
||||
|
||||
.examples-inner,
|
||||
.input-inner,
|
||||
.results-inner,
|
||||
.education-inner {
|
||||
.input-inner {
|
||||
margin: var(--spacing-sm);
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
@@ -726,7 +726,9 @@
|
||||
border-color: var(--color-primary);
|
||||
box-shadow: 0 0 0 3px rgba(var(--color-primary-rgb), 0.1);
|
||||
}
|
||||
}
|
||||
|
||||
.record-value-input {
|
||||
&.valid {
|
||||
border-color: var(--color-success);
|
||||
}
|
||||
|
||||
@@ -222,9 +222,10 @@
|
||||
<div class="record-fields">
|
||||
<div class="service-protocol-row">
|
||||
<div class="service-input">
|
||||
<label use:tooltip={"The service name, typically starting with underscore (e.g., _http, _smtp)"}>Service</label>
|
||||
<label for="service-{record.id}" use:tooltip={"The service name, typically starting with underscore (e.g., _http, _smtp)"}>Service</label>
|
||||
<div class="service-select-wrapper">
|
||||
<select
|
||||
<select
|
||||
id="service-{record.id}"
|
||||
value={record.service}
|
||||
onchange={(e) => {
|
||||
const serviceName = (e.target as HTMLSelectElement).value;
|
||||
@@ -252,8 +253,9 @@
|
||||
</div>
|
||||
|
||||
<div class="protocol-input">
|
||||
<label use:tooltip={"Transport protocol used by the service (TCP/UDP/TLS/SCTP)"}>Protocol</label>
|
||||
<select
|
||||
<label for="protocol-{record.id}" use:tooltip={"Transport protocol used by the service (TCP/UDP/TLS/SCTP)"}>Protocol</label>
|
||||
<select
|
||||
id="protocol-{record.id}"
|
||||
value={record.protocol}
|
||||
onchange={(e) => updateRecord(record.id, 'protocol', (e.target as HTMLSelectElement).value)}
|
||||
>
|
||||
@@ -265,9 +267,10 @@
|
||||
</div>
|
||||
|
||||
<div class="name-input">
|
||||
<label use:tooltip={"The domain name where this service is located"}>Domain</label>
|
||||
<input
|
||||
type="text"
|
||||
<label for="domain-{record.id}" use:tooltip={"The domain name where this service is located"}>Domain</label>
|
||||
<input
|
||||
id="domain-{record.id}"
|
||||
type="text"
|
||||
value={record.name}
|
||||
oninput={(e) => updateRecord(record.id, 'name', (e.target as HTMLInputElement).value)}
|
||||
placeholder="example.com"
|
||||
@@ -277,9 +280,10 @@
|
||||
|
||||
<div class="priority-weight-row">
|
||||
<div class="priority-input">
|
||||
<label use:tooltip={"Lower numbers = higher priority"}>Priority</label>
|
||||
<input
|
||||
type="number"
|
||||
<label for="priority-{record.id}" use:tooltip={"Lower numbers = higher priority"}>Priority</label>
|
||||
<input
|
||||
id="priority-{record.id}"
|
||||
type="number"
|
||||
value={record.priority}
|
||||
oninput={(e) => updateRecord(record.id, 'priority', parseInt((e.target as HTMLInputElement).value))}
|
||||
min="0"
|
||||
@@ -288,8 +292,9 @@
|
||||
</div>
|
||||
|
||||
<div class="weight-input">
|
||||
<label use:tooltip={"Load balancing weight for same priority"}>Weight</label>
|
||||
<input
|
||||
<label for="weight-{record.id}" use:tooltip={"Load balancing weight for same priority"}>Weight</label>
|
||||
<input
|
||||
id="weight-{record.id}"
|
||||
type="number"
|
||||
value={record.weight}
|
||||
oninput={(e) => updateRecord(record.id, 'weight', parseInt((e.target as HTMLInputElement).value))}
|
||||
@@ -299,9 +304,10 @@
|
||||
</div>
|
||||
|
||||
<div class="port-input">
|
||||
<label use:tooltip={"Port number where the service is listening (1-65535)"}>Port</label>
|
||||
<input
|
||||
type="number"
|
||||
<label for="port-{record.id}" use:tooltip={"Port number where the service is listening (1-65535)"}>Port</label>
|
||||
<input
|
||||
id="port-{record.id}"
|
||||
type="number"
|
||||
value={record.port}
|
||||
oninput={(e) => updateRecord(record.id, 'port', parseInt((e.target as HTMLInputElement).value))}
|
||||
min="1"
|
||||
@@ -310,9 +316,10 @@
|
||||
</div>
|
||||
|
||||
<div class="target-input">
|
||||
<label use:tooltip={"Fully Qualified Domain Name of the server hosting the service (must end with dot)"}>Target (FQDN)</label>
|
||||
<input
|
||||
type="text"
|
||||
<label for="target-{record.id}" use:tooltip={"Fully Qualified Domain Name of the server hosting the service (must end with dot)"}>Target (FQDN)</label>
|
||||
<input
|
||||
id="target-{record.id}"
|
||||
type="text"
|
||||
value={record.target}
|
||||
oninput={(e) => updateRecord(record.id, 'target', (e.target as HTMLInputElement).value)}
|
||||
placeholder="server.example.com."
|
||||
@@ -545,7 +552,7 @@
|
||||
.priority-weight-row {
|
||||
display: grid;
|
||||
gap: var(--spacing-sm);
|
||||
|
||||
|
||||
label {
|
||||
display: block;
|
||||
font-size: var(--font-size-xs);
|
||||
@@ -553,8 +560,8 @@
|
||||
color: var(--text-secondary);
|
||||
margin-bottom: var(--spacing-xs);
|
||||
}
|
||||
|
||||
input, select {
|
||||
|
||||
input {
|
||||
width: 100%;
|
||||
padding: var(--spacing-xs);
|
||||
border: 1px solid var(--border-primary);
|
||||
@@ -566,7 +573,16 @@
|
||||
|
||||
.service-protocol-row {
|
||||
grid-template-columns: 2fr 1fr 2fr;
|
||||
|
||||
|
||||
select {
|
||||
width: 100%;
|
||||
padding: var(--spacing-xs);
|
||||
border: 1px solid var(--border-primary);
|
||||
border-radius: var(--radius-sm);
|
||||
background: var(--bg-primary);
|
||||
font-size: var(--font-size-sm);
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
@@ -313,26 +313,6 @@
|
||||
</div>
|
||||
|
||||
<style lang="scss">
|
||||
.info-card {
|
||||
margin-bottom: var(--spacing-xl);
|
||||
}
|
||||
|
||||
.overview-content {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: var(--spacing-xs);
|
||||
}
|
||||
|
||||
.overview-item {
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
gap: var(--spacing-sm);
|
||||
color: var(--text-secondary);
|
||||
|
||||
strong {
|
||||
color: var(--text-primary);
|
||||
}
|
||||
}
|
||||
|
||||
.examples-card {
|
||||
padding: 0;
|
||||
@@ -521,11 +501,6 @@
|
||||
&:hover {
|
||||
background: var(--surface-hover);
|
||||
}
|
||||
|
||||
&.recommended {
|
||||
// background: color-mix(in srgb, var(--color-success) 5%, var(--bg-secondary));
|
||||
}
|
||||
|
||||
input[type="checkbox"] {
|
||||
display: none;
|
||||
}
|
||||
@@ -627,8 +602,6 @@
|
||||
}
|
||||
|
||||
.card.success {
|
||||
// background: color-mix(in srgb, var(--color-success) 5%, var(--bg-secondary));
|
||||
// border-color: var(--color-success);
|
||||
background: var(--bg-tertiary);
|
||||
.card-header {
|
||||
display: flex;
|
||||
|
||||
@@ -315,8 +315,9 @@ Fragmentation Risk: ${results?.fragmentationRisk || 'unknown'}`;
|
||||
<div class="record-item">
|
||||
<div class="record-fields">
|
||||
<div class="field-group">
|
||||
<label>Name</label>
|
||||
<label for="name-{index}">Name</label>
|
||||
<input
|
||||
id="name-{index}"
|
||||
type="text"
|
||||
bind:value={record.name}
|
||||
oninput={() => updateRecord(index, 'name', record.name)}
|
||||
@@ -324,8 +325,9 @@ Fragmentation Risk: ${results?.fragmentationRisk || 'unknown'}`;
|
||||
/>
|
||||
</div>
|
||||
<div class="field-group">
|
||||
<label>Type</label>
|
||||
<label for="type-{index}">Type</label>
|
||||
<select
|
||||
id="type-{index}"
|
||||
bind:value={record.type}
|
||||
onchange={() => updateRecord(index, 'type', record.type)}
|
||||
>
|
||||
@@ -335,8 +337,9 @@ Fragmentation Risk: ${results?.fragmentationRisk || 'unknown'}`;
|
||||
</select>
|
||||
</div>
|
||||
<div class="field-group">
|
||||
<label>Value</label>
|
||||
<label for="value-{index}">Value</label>
|
||||
<input
|
||||
id="value-{index}"
|
||||
type="text"
|
||||
bind:value={record.value}
|
||||
oninput={() => updateRecord(index, 'value', record.value)}
|
||||
@@ -345,8 +348,9 @@ Fragmentation Risk: ${results?.fragmentationRisk || 'unknown'}`;
|
||||
</div>
|
||||
{#if record.type === 'MX'}
|
||||
<div class="field-group">
|
||||
<label>Priority</label>
|
||||
<label for="priority-{index}">Priority</label>
|
||||
<input
|
||||
id="priority-{index}"
|
||||
type="number"
|
||||
bind:value={record.priority}
|
||||
oninput={() => updateRecord(index, 'priority', record.priority || 0)}
|
||||
@@ -356,8 +360,9 @@ Fragmentation Risk: ${results?.fragmentationRisk || 'unknown'}`;
|
||||
</div>
|
||||
{/if}
|
||||
<div class="field-group">
|
||||
<label>TTL</label>
|
||||
<label for="ttl-{index}">TTL</label>
|
||||
<input
|
||||
id="ttl-{index}"
|
||||
type="number"
|
||||
bind:value={record.ttl}
|
||||
oninput={() => updateRecord(index, 'ttl', record.ttl || 0)}
|
||||
@@ -635,7 +640,7 @@ Fragmentation Risk: ${results?.fragmentationRisk || 'unknown'}`;
|
||||
color: var(--text-secondary);
|
||||
}
|
||||
|
||||
.config-card, .records-card {
|
||||
.records-card {
|
||||
margin-bottom: var(--spacing-xl);
|
||||
}
|
||||
|
||||
@@ -783,20 +788,6 @@ Fragmentation Risk: ${results?.fragmentationRisk || 'unknown'}`;
|
||||
border: 2px dashed var(--border-secondary);
|
||||
}
|
||||
|
||||
.results-card {
|
||||
margin-bottom: var(--spacing-xl);
|
||||
}
|
||||
|
||||
.results-header {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
margin-bottom: var(--spacing-lg);
|
||||
|
||||
h3 {
|
||||
margin: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.copy-button {
|
||||
display: flex;
|
||||
@@ -881,14 +872,6 @@ Fragmentation Risk: ${results?.fragmentationRisk || 'unknown'}`;
|
||||
}
|
||||
}
|
||||
|
||||
.fragmentation-section {
|
||||
margin-bottom: var(--spacing-lg);
|
||||
|
||||
h4 {
|
||||
margin-bottom: var(--spacing-md);
|
||||
color: var(--text-primary);
|
||||
}
|
||||
}
|
||||
|
||||
.fragmentation-risk {
|
||||
display: flex;
|
||||
@@ -1213,11 +1196,6 @@ Fragmentation Risk: ${results?.fragmentationRisk || 'unknown'}`;
|
||||
}
|
||||
}
|
||||
|
||||
.results-actions {
|
||||
margin-top: var(--spacing-md);
|
||||
padding-top: var(--spacing-md);
|
||||
border-top: 1px solid var(--border-secondary);
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.examples-grid {
|
||||
|
||||
@@ -337,28 +337,6 @@
|
||||
</div>
|
||||
|
||||
<style>
|
||||
.container {
|
||||
max-width: 1200px;
|
||||
margin: 0 auto;
|
||||
padding: var(--spacing-lg);
|
||||
}
|
||||
|
||||
.header {
|
||||
text-align: center;
|
||||
margin-bottom: var(--spacing-xl);
|
||||
}
|
||||
|
||||
.header h1 {
|
||||
font-size: var(--font-size-2xl);
|
||||
font-weight: 700;
|
||||
color: var(--color-primary);
|
||||
margin-bottom: var(--spacing-sm);
|
||||
}
|
||||
|
||||
.header p {
|
||||
color: var(--text-secondary);
|
||||
font-size: var(--font-size-lg);
|
||||
}
|
||||
|
||||
.input-section {
|
||||
display: grid;
|
||||
@@ -863,9 +841,6 @@
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.container {
|
||||
padding: var(--spacing-md);
|
||||
}
|
||||
|
||||
.summary-stats {
|
||||
grid-template-columns: repeat(2, 1fr);
|
||||
|
||||
@@ -413,7 +413,7 @@
|
||||
.examples-section {
|
||||
margin-bottom: var(--spacing-lg);
|
||||
|
||||
h3 {
|
||||
h4 {
|
||||
margin-bottom: var(--spacing-md);
|
||||
color: var(--color-info-light);
|
||||
}
|
||||
@@ -666,34 +666,6 @@
|
||||
}
|
||||
}
|
||||
|
||||
.visualization-toggle {
|
||||
margin-top: var(--spacing-lg);
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.toggle-viz {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: var(--spacing-sm);
|
||||
padding: var(--spacing-sm) var(--spacing-md);
|
||||
background-color: var(--bg-secondary);
|
||||
border: 1px solid var(--border-primary);
|
||||
border-radius: var(--radius-md);
|
||||
color: var(--text-primary);
|
||||
cursor: pointer;
|
||||
transition: all var(--transition-fast);
|
||||
|
||||
&:hover {
|
||||
background-color: var(--surface-hover);
|
||||
border-color: var(--color-primary);
|
||||
}
|
||||
|
||||
&.active {
|
||||
background-color: var(--color-primary);
|
||||
color: var(--bg-primary);
|
||||
}
|
||||
}
|
||||
|
||||
.visualization-section {
|
||||
margin-top: var(--spacing-lg);
|
||||
padding: var(--spacing-lg);
|
||||
|
||||
@@ -363,9 +363,9 @@
|
||||
<div class="output-card">
|
||||
<div class="output-section">
|
||||
<div class="output-header">
|
||||
<label>
|
||||
<h3>
|
||||
{mode === 'unicode-to-punycode' ? 'Punycode Result' : 'Unicode Result'}
|
||||
</label>
|
||||
</h3>
|
||||
{#if isValid}
|
||||
<button
|
||||
onclick={swapModeAndContent}
|
||||
@@ -731,10 +731,6 @@
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
|
||||
label {
|
||||
color: var(--text-primary);
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.swap-btn {
|
||||
display: flex;
|
||||
|
||||
@@ -217,9 +217,9 @@
|
||||
<div class="calculation-details">
|
||||
<div class="distance-info">
|
||||
<div class="distance-value">
|
||||
<span class="distance-number" onclick={() => copyToClipboard(calculation.distance)} title="Click to copy">
|
||||
<button type="button" class="distance-number" onclick={() => copyToClipboard(calculation.distance)} title="Click to copy">
|
||||
{calculation.distance}
|
||||
</span>
|
||||
</button>
|
||||
<span class="distance-label">
|
||||
address{calculation.distanceNumber === 1n ? '' : 'es'}
|
||||
({calculation.inclusive ? 'inclusive' : 'exclusive'})
|
||||
|
||||
@@ -355,8 +355,9 @@
|
||||
|
||||
<div class="options-row">
|
||||
<div class="limit-control">
|
||||
<label>Max Display</label>
|
||||
<label for="max-display">Max Display</label>
|
||||
<input
|
||||
id="max-display"
|
||||
type="number"
|
||||
bind:value={maxDisplayLimit}
|
||||
oninput={handleInputChange}
|
||||
@@ -681,7 +682,7 @@
|
||||
transition: transform var(--transition-fast);
|
||||
}
|
||||
|
||||
h3 {
|
||||
h4 {
|
||||
margin: 0;
|
||||
}
|
||||
}
|
||||
@@ -780,11 +781,13 @@
|
||||
font-size: var(--font-size-sm);
|
||||
cursor: pointer;
|
||||
transition: all var(--transition-fast);
|
||||
|
||||
|
||||
&:hover {
|
||||
background: var(--surface-hover);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
.copy-btn {
|
||||
&.copied {
|
||||
color: var(--color-success);
|
||||
}
|
||||
|
||||
@@ -474,7 +474,7 @@
|
||||
<div class="card input-card">
|
||||
<!-- Conversion Mode -->
|
||||
<div class="mode-section">
|
||||
<label class="mode-label">Conversion Direction</label>
|
||||
<h3 class="mode-label">Conversion Direction</h3>
|
||||
<div class="mode-options">
|
||||
<label class="mode-option">
|
||||
<input
|
||||
|
||||
@@ -751,13 +751,6 @@
|
||||
}
|
||||
|
||||
@media (max-width: 767px) {
|
||||
.ipv6-normalize {
|
||||
padding: 0 var(--spacing-sm);
|
||||
}
|
||||
|
||||
.header h1 {
|
||||
font-size: 1.5rem;
|
||||
}
|
||||
|
||||
.summary-stats {
|
||||
grid-template-columns: repeat(2, 1fr);
|
||||
|
||||
@@ -899,13 +899,6 @@
|
||||
}
|
||||
|
||||
@media (max-width: 767px) {
|
||||
.ipv6-zone-id {
|
||||
padding: 0 var(--spacing-sm);
|
||||
}
|
||||
|
||||
.header h1 {
|
||||
font-size: 1.5rem;
|
||||
}
|
||||
|
||||
.summary-stats {
|
||||
grid-template-columns: repeat(2, 1fr);
|
||||
|
||||
@@ -442,15 +442,6 @@
|
||||
color: var(--color-primary);
|
||||
}
|
||||
|
||||
.chevron {
|
||||
margin-left: auto;
|
||||
transform: rotate(0deg);
|
||||
transition: transform var(--transition-normal);
|
||||
}
|
||||
|
||||
details[open] .chevron {
|
||||
transform: rotate(180deg);
|
||||
}
|
||||
|
||||
.examples-grid {
|
||||
display: grid;
|
||||
|
||||
@@ -417,26 +417,6 @@
|
||||
</div>
|
||||
|
||||
<style lang="scss">
|
||||
.info-card {
|
||||
margin-bottom: var(--spacing-lg);
|
||||
}
|
||||
|
||||
.overview-content {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: var(--spacing-sm);
|
||||
}
|
||||
|
||||
.overview-item {
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
gap: var(--spacing-sm);
|
||||
color: var(--text-secondary);
|
||||
|
||||
strong {
|
||||
color: var(--text-primary);
|
||||
}
|
||||
}
|
||||
|
||||
.examples-card {
|
||||
margin-bottom: var(--spacing-md);
|
||||
@@ -611,7 +591,9 @@
|
||||
border-color: var(--color-primary);
|
||||
box-shadow: 0 0 0 2px color-mix(in srgb, var(--color-primary), transparent 80%);
|
||||
}
|
||||
}
|
||||
|
||||
.domain-input {
|
||||
&.example-active {
|
||||
border-color: var(--color-warning);
|
||||
background-color: color-mix(in srgb, var(--color-warning), transparent 95%);
|
||||
|
||||
@@ -162,7 +162,7 @@
|
||||
<div class="address-grid-wrap">
|
||||
<div class="address-grid">
|
||||
{#each networkBlocks as block}
|
||||
<Tooltip text="{block.tooltip}" position="top">
|
||||
<Tooltip text={block.tooltip} position="top">
|
||||
<div class="address-block {block.type}">
|
||||
{#if block.type === 'network'}
|
||||
N
|
||||
|
||||
@@ -433,7 +433,7 @@ $TTL 86400
|
||||
<div class="card input-card">
|
||||
<!-- Input Type Selection -->
|
||||
<div class="type-section">
|
||||
<label class="type-label">Input Type</label>
|
||||
<h3 class="type-label">Input Type</h3>
|
||||
<div class="type-options">
|
||||
<label class="type-option">
|
||||
<input
|
||||
|
||||
@@ -537,14 +537,6 @@
|
||||
gap: var(--spacing-sm);
|
||||
color: var(--text-secondary);
|
||||
|
||||
code {
|
||||
background-color: var(--bg-tertiary);
|
||||
color: var(--text-primary);
|
||||
padding: 2px var(--spacing-xs);
|
||||
border-radius: var(--radius-sm);
|
||||
font-family: var(--font-mono);
|
||||
}
|
||||
|
||||
strong {
|
||||
color: var(--text-primary);
|
||||
}
|
||||
@@ -689,7 +681,9 @@
|
||||
border-color: var(--border-primary);
|
||||
box-shadow: 0 0 0 3px rgba(var(--color-primary-rgb), 0.1);
|
||||
}
|
||||
}
|
||||
|
||||
.cidr-input {
|
||||
&.valid {
|
||||
border-color: var(--color-success);
|
||||
}
|
||||
|
||||
@@ -273,7 +273,7 @@
|
||||
<!-- Output -->
|
||||
<div class="output-section">
|
||||
<div class="output-group">
|
||||
<label>Generated RP Record</label>
|
||||
<h3>Generated RP Record</h3>
|
||||
<div class="code-output">
|
||||
{#if isValid}
|
||||
<pre>{rpRecord}</pre>
|
||||
@@ -285,7 +285,7 @@
|
||||
|
||||
{#if txtRecord}
|
||||
<div class="output-group">
|
||||
<label>Suggested TXT Record</label>
|
||||
<h3>Suggested TXT Record</h3>
|
||||
<div class="code-output txt-output">
|
||||
<pre>{txtRecord}</pre>
|
||||
<small>This TXT record should be created at the specified domain</small>
|
||||
@@ -600,13 +600,6 @@
|
||||
gap: var(--spacing-md);
|
||||
|
||||
.output-group {
|
||||
label {
|
||||
display: block;
|
||||
color: var(--text-primary);
|
||||
font-weight: 500;
|
||||
margin-bottom: var(--spacing-sm);
|
||||
}
|
||||
|
||||
.code-output {
|
||||
padding: var(--spacing-md);
|
||||
background: var(--bg-tertiary);
|
||||
|
||||
@@ -388,26 +388,6 @@ Renewal Time: ${nextWindowFormatted.renewalFormatted}`;
|
||||
</div>
|
||||
|
||||
<style lang="scss">
|
||||
.info-card {
|
||||
margin-bottom: var(--spacing-lg);
|
||||
}
|
||||
|
||||
.overview-content {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: var(--spacing-sm);
|
||||
}
|
||||
|
||||
.overview-item {
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
gap: var(--spacing-sm);
|
||||
color: var(--text-secondary);
|
||||
|
||||
strong {
|
||||
color: var(--text-primary);
|
||||
}
|
||||
}
|
||||
|
||||
.input-card {
|
||||
margin-bottom: var(--spacing-lg);
|
||||
|
||||
@@ -826,22 +826,6 @@
|
||||
overflow-y: auto;
|
||||
}
|
||||
|
||||
.ips-list code {
|
||||
background: var(--bg-tertiary);
|
||||
color: var(--text-secondary);
|
||||
border: 1px solid var(--border-color);
|
||||
padding: var(--spacing-xs);
|
||||
border-radius: var(--border-radius);
|
||||
font-family: var(--font-mono);
|
||||
font-size: var(--font-size-xs);
|
||||
cursor: pointer;
|
||||
transition: all var(--transition-fast);
|
||||
}
|
||||
|
||||
.ips-list code:hover {
|
||||
background: var(--bg-primary);
|
||||
transform: translateY(-1px);
|
||||
}
|
||||
|
||||
.error-message {
|
||||
display: flex;
|
||||
@@ -856,13 +840,6 @@
|
||||
}
|
||||
|
||||
@media (max-width: 767px) {
|
||||
.random-ip {
|
||||
padding: 0 var(--spacing-sm);
|
||||
}
|
||||
|
||||
.header h1 {
|
||||
font-size: 1.5rem;
|
||||
}
|
||||
|
||||
.summary-stats {
|
||||
grid-template-columns: repeat(2, 1fr);
|
||||
|
||||
@@ -197,7 +197,7 @@
|
||||
<div class="card input-card">
|
||||
<!-- Input Type Selection -->
|
||||
<div class="type-section">
|
||||
<label class="type-label">Input Type</label>
|
||||
<h3 class="type-label">Input Type</h3>
|
||||
<div class="type-options">
|
||||
<label class="type-option">
|
||||
<input
|
||||
|
||||
@@ -407,14 +407,6 @@ chmod 644 /etc/bind/zones/${zone.zone}`;
|
||||
align-items: flex-start;
|
||||
gap: var(--spacing-sm);
|
||||
color: var(--text-secondary);
|
||||
|
||||
code {
|
||||
background-color: var(--bg-tertiary);
|
||||
color: var(--text-primary);
|
||||
padding: 2px var(--spacing-xs);
|
||||
border-radius: var(--radius-sm);
|
||||
font-family: var(--font-mono);
|
||||
}
|
||||
|
||||
strong {
|
||||
color: var(--text-primary);
|
||||
|
||||
@@ -305,15 +305,17 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="requests-list">
|
||||
<div class="requests-list" role="list">
|
||||
{#each requests as request, index (request.id)}
|
||||
<div
|
||||
<div
|
||||
class="request-item"
|
||||
draggable="true"
|
||||
ondragstart={(e) => handleDragStart(e, index)}
|
||||
ondragover={handleDragOver}
|
||||
ondrop={(e) => handleDrop(e, index)}
|
||||
class:dragging={draggedIndex === index}
|
||||
role="listitem"
|
||||
aria-grabbed={draggedIndex === index}
|
||||
>
|
||||
<div class="drag-handle">
|
||||
<Icon name="draggable" size="sm" />
|
||||
@@ -1021,13 +1023,27 @@
|
||||
|
||||
.range-info, .hosts-info {
|
||||
font-size: var(--font-size-sm);
|
||||
|
||||
.network-broadcast, .usable-hosts {
|
||||
}
|
||||
|
||||
.range-info {
|
||||
.network-broadcast {
|
||||
color: var(--text-primary);
|
||||
font-family: var(--font-mono);
|
||||
}
|
||||
|
||||
.host-range, .total-hosts {
|
||||
|
||||
.host-range {
|
||||
color: var(--text-secondary);
|
||||
font-size: var(--font-size-xs);
|
||||
}
|
||||
}
|
||||
|
||||
.hosts-info {
|
||||
.usable-hosts {
|
||||
color: var(--text-primary);
|
||||
font-family: var(--font-mono);
|
||||
}
|
||||
|
||||
.total-hosts {
|
||||
color: var(--text-secondary);
|
||||
font-size: var(--font-size-xs);
|
||||
}
|
||||
|
||||
@@ -160,10 +160,11 @@
|
||||
/>
|
||||
</div>
|
||||
<div class="cidr-input">
|
||||
<label>CIDR</label>
|
||||
<label for="cidr-{index}">CIDR</label>
|
||||
<div class="cidr-controls">
|
||||
<span class="cidr-display">/{network.cidr}</span>
|
||||
<input
|
||||
id="cidr-{index}"
|
||||
type="range"
|
||||
min="8"
|
||||
max="30"
|
||||
|
||||
@@ -430,10 +430,9 @@
|
||||
.common-details, .examples-details {
|
||||
border: none;
|
||||
background: none;
|
||||
|
||||
|
||||
&[open] {
|
||||
.common-summary :global(.icon),
|
||||
.examples-summary :global(.icon) {
|
||||
:global(.icon) {
|
||||
transform: rotate(90deg);
|
||||
}
|
||||
}
|
||||
@@ -463,10 +462,6 @@
|
||||
transition: transform var(--transition-fast);
|
||||
}
|
||||
|
||||
h3 {
|
||||
margin: 0;
|
||||
font-size: var(--font-size-md);
|
||||
}
|
||||
}
|
||||
|
||||
.ttls-grid {
|
||||
|
||||
@@ -210,8 +210,9 @@
|
||||
class="subnet-name-input"
|
||||
/>
|
||||
<div class="hosts-input">
|
||||
<label>Hosts needed:</label>
|
||||
<label for="hosts-{index}">Hosts needed:</label>
|
||||
<input
|
||||
id="hosts-{index}"
|
||||
type="number"
|
||||
min="1"
|
||||
max="16777214"
|
||||
|
||||
@@ -842,9 +842,6 @@
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.container {
|
||||
padding: var(--spacing-md);
|
||||
}
|
||||
|
||||
.input-section {
|
||||
grid-template-columns: 1fr;
|
||||
|
||||
@@ -681,7 +681,9 @@ www IN A 192.0.2.1"
|
||||
&:hover {
|
||||
background-color: var(--surface-hover);
|
||||
}
|
||||
}
|
||||
|
||||
.copy-button {
|
||||
&.copied {
|
||||
color: var(--color-success);
|
||||
border-color: var(--color-success);
|
||||
|
||||
@@ -233,47 +233,6 @@
|
||||
}
|
||||
}
|
||||
|
||||
.quick-links {
|
||||
text-align: left;
|
||||
|
||||
h3 {
|
||||
color: var(--text-primary);
|
||||
margin: 0 0 var(--spacing-md) 0;
|
||||
font-size: var(--font-size-md);
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.links-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
|
||||
gap: var(--spacing-sm);
|
||||
|
||||
.quick-link {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: var(--spacing-sm);
|
||||
padding: var(--spacing-sm);
|
||||
background: var(--bg-secondary);
|
||||
border: 1px solid var(--border-primary);
|
||||
border-radius: var(--radius-md);
|
||||
text-decoration: none;
|
||||
color: var(--text-primary);
|
||||
transition: all var(--transition-fast);
|
||||
font-size: var(--font-size-sm);
|
||||
|
||||
&:hover {
|
||||
background: var(--surface-hover);
|
||||
border-color: var(--color-primary);
|
||||
transform: translateY(-1px);
|
||||
}
|
||||
|
||||
:global(svg) {
|
||||
color: var(--color-primary);
|
||||
opacity: 0.8;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 640px) {
|
||||
.error-container {
|
||||
|
||||
@@ -778,12 +778,6 @@
|
||||
.tag-explanation, .caa-example {
|
||||
font-size: var(--font-size-xs);
|
||||
color: var(--text-secondary);
|
||||
|
||||
strong {
|
||||
color: var(--text-primary);
|
||||
font-family: var(--font-mono);
|
||||
}
|
||||
|
||||
code {
|
||||
background: var(--bg-secondary);
|
||||
padding: 2px 4px;
|
||||
@@ -794,8 +788,6 @@
|
||||
}
|
||||
}
|
||||
|
||||
// Shared utilities moved to diagnostics-pages.scss
|
||||
|
||||
.text-success {
|
||||
color: var(--color-success);
|
||||
}
|
||||
|
||||
@@ -211,11 +211,11 @@
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label use:tooltip={"Choose a DNS resolver to use for the query"}>
|
||||
<label for="dns-resolver" use:tooltip={"Choose a DNS resolver to use for the query"}>
|
||||
DNS Resolver
|
||||
</label>
|
||||
{#if !useCustomResolver}
|
||||
<select bind:value={resolver} onchange={() => { clearExampleSelection(); if (domainName) performLookup(); }}>
|
||||
<select id="dns-resolver" bind:value={resolver} onchange={() => { clearExampleSelection(); if (domainName) performLookup(); }}>
|
||||
{#each resolvers as res}
|
||||
<option value={res.value}>{res.label}</option>
|
||||
{/each}
|
||||
|
||||
@@ -546,7 +546,14 @@
|
||||
.nameservers-section, .soa-section, .recommendations-section {
|
||||
margin: var(--spacing-lg) 0;
|
||||
|
||||
h4, h5 {
|
||||
h4 {
|
||||
color: var(--text-primary);
|
||||
margin: 0 0 var(--spacing-md) 0;
|
||||
}
|
||||
}
|
||||
|
||||
.soa-section, .recommendations-section {
|
||||
h5 {
|
||||
color: var(--text-primary);
|
||||
margin: 0 0 var(--spacing-md) 0;
|
||||
}
|
||||
|
||||
@@ -369,8 +369,7 @@
|
||||
.form-group {
|
||||
label {
|
||||
flex-direction: column;
|
||||
|
||||
input, select {
|
||||
input {
|
||||
&.invalid {
|
||||
border-color: var(--color-error);
|
||||
}
|
||||
|
||||
@@ -214,7 +214,7 @@
|
||||
<!-- HTTP Method Selection -->
|
||||
<div class="form-row">
|
||||
<div class="form-group">
|
||||
<label>HTTP Method</label>
|
||||
<h3>HTTP Method</h3>
|
||||
<div class="method-options">
|
||||
{#each httpMethods as methodOption}
|
||||
<button
|
||||
|
||||
@@ -230,7 +230,7 @@
|
||||
<!-- Common Ports -->
|
||||
<div class="form-row">
|
||||
<div class="form-group">
|
||||
<label>Common Ports</label>
|
||||
<h3>Common Ports</h3>
|
||||
<div class="port-shortcuts">
|
||||
{#each commonPorts as port}
|
||||
<button
|
||||
|
||||
Reference in new issue
Block a user