mirror of
https://github.com/lissy93/networking-toolbox.git
synced 2026-11-25 23:24:14 +03:00
Issue templates, deployment workflow, dynamic favicon, offline warning
This commit is contained in:
1 parent
1a2e893a03
commit
760c36a89a
21 files changed
+661
-70
No files matched your search
@@ -0,0 +1,56 @@
|
||||
name: 🐛 Bug Report
|
||||
description: Something is not working as expected
|
||||
title: "[Bug]: "
|
||||
labels: ["bug", "needs-triage"]
|
||||
assignees: []
|
||||
|
||||
body:
|
||||
- type: dropdown
|
||||
id: bug-type
|
||||
attributes:
|
||||
label: Bug Type
|
||||
description: What kind of issue is this?
|
||||
options:
|
||||
- Tool gives incorrect output
|
||||
- Error/crash
|
||||
- UI bug
|
||||
- Performance issue
|
||||
- Other
|
||||
validations:
|
||||
required: true
|
||||
|
||||
- type: textarea
|
||||
id: details
|
||||
attributes:
|
||||
label: Expected output, actual output, steps to recreate
|
||||
description: |
|
||||
Please provide:
|
||||
- What you expected to happen
|
||||
- What actually happened
|
||||
- Steps to recreate the issue
|
||||
placeholder: |
|
||||
Expected: The subnet calculator should show...
|
||||
Actual: It shows/does...
|
||||
Steps: 1. Go to... 2. Enter... 3. Click...
|
||||
validations:
|
||||
required: true
|
||||
|
||||
- type: textarea
|
||||
id: additional
|
||||
attributes:
|
||||
label: Additional Info
|
||||
description: Logs, screenshots, browser info, input data, etc.
|
||||
placeholder: |
|
||||
Browser: Chrome 120
|
||||
Input: 192.168.1.0/24
|
||||
Screenshots/logs: (paste here)
|
||||
|
||||
- type: checkboxes
|
||||
id: checklist
|
||||
attributes:
|
||||
label: Checklist
|
||||
options:
|
||||
- label: I have searched existing issues to make sure this bug hasn't been reported before
|
||||
required: true
|
||||
- label: I agree to follow the [Code of Conduct](https://github.com/Lissy93/networking-toolbox/?tab=coc-ov-file#contributor-covenant-code-of-conduct)
|
||||
required: true
|
||||
@@ -0,0 +1,11 @@
|
||||
blank_issues_enabled: false
|
||||
contact_links:
|
||||
- name: ⚠️ Report a security vulnerability
|
||||
url: https://github.com/lissy93/networking-toolbox/security/policy
|
||||
about: Please do NOT open a public issue for unresolved security problems.
|
||||
- name: 💬 Questions / Support / How-to
|
||||
url: https://github.com/lissy93/networking-toolbox/discussions
|
||||
about: Ask usage questions or get help in Discussions.
|
||||
- name: 📚 Documentation and About
|
||||
url: https://networking-toolbox.as93.net/about
|
||||
about: View project info, roadmap, and documentation.
|
||||
@@ -0,0 +1,25 @@
|
||||
name: 🛠️ Deployment / self-hosting
|
||||
description: Installation, configuration, upgrades, containers, or Kubernetes.
|
||||
title: "[deploy] <short summary>"
|
||||
labels: ["type:deploy", "scope:self-hosted"]
|
||||
body:
|
||||
- type: dropdown
|
||||
id: method
|
||||
attributes:
|
||||
label: Install method
|
||||
options: [Docker, Source, GitHub Pages, Vercel, Other]
|
||||
validations: { required: true }
|
||||
- type: input
|
||||
id: version
|
||||
attributes:
|
||||
label: App image/tag or chart version
|
||||
- type: textarea
|
||||
id: env
|
||||
attributes:
|
||||
label: Platform details
|
||||
placeholder: OS/distro, CPU/RAM, storage, container runtime, ingress, proxy.
|
||||
- type: textarea
|
||||
id: logs
|
||||
attributes:
|
||||
label: Startup/runtime logs
|
||||
render: shell
|
||||
@@ -0,0 +1,57 @@
|
||||
name: 🚀 Deployment Issue
|
||||
description: Issues with hosting, building, or deployment
|
||||
title: "[Deployment]: "
|
||||
labels: ["deployment", "needs-triage"]
|
||||
assignees: []
|
||||
|
||||
body:
|
||||
- type: dropdown
|
||||
id: deployment-type
|
||||
attributes:
|
||||
label: Deployment Type
|
||||
description: How are you trying to deploy?
|
||||
options:
|
||||
- Vercel
|
||||
- Netlify
|
||||
- GitHub Pages
|
||||
- Docker
|
||||
- Static hosting (Apache/Nginx)
|
||||
- Self-hosted server
|
||||
- Other
|
||||
validations:
|
||||
required: true
|
||||
|
||||
- type: textarea
|
||||
id: steps-taken
|
||||
attributes:
|
||||
label: Steps Taken
|
||||
description: What steps did you follow to deploy?
|
||||
placeholder: |
|
||||
1. Cloned the repository
|
||||
2. Ran npm install
|
||||
3. Ran npm run build
|
||||
4. Deployed to platform...
|
||||
validations:
|
||||
required: true
|
||||
|
||||
- type: textarea
|
||||
id: environment-info
|
||||
attributes:
|
||||
label: Environment Info
|
||||
description: Node.js version, npm version, OS, platform details
|
||||
placeholder: |
|
||||
Node.js: v18.17.0
|
||||
npm: 9.6.7
|
||||
OS: Ubuntu 22.04
|
||||
validations:
|
||||
required: true
|
||||
|
||||
- type: textarea
|
||||
id: error-logs
|
||||
attributes:
|
||||
label: Error Logs
|
||||
description: Paste error messages and build logs here
|
||||
placeholder: Paste error messages and logs here...
|
||||
render: shell
|
||||
validations:
|
||||
required: true
|
||||
@@ -0,0 +1,25 @@
|
||||
name: 💬 Question / Feedback
|
||||
description: Ask questions or provide general feedback
|
||||
title: "[Question]: "
|
||||
labels: ["question", "feedback"]
|
||||
assignees: []
|
||||
|
||||
body:
|
||||
- type: markdown
|
||||
attributes:
|
||||
value: |
|
||||
Thanks for your question or feedback! We appreciate your input.
|
||||
|
||||
- type: textarea
|
||||
id: question-feedback
|
||||
attributes:
|
||||
label: Question or Feedback
|
||||
description: |
|
||||
Please provide your question or feedback in detail.
|
||||
- For questions: Be specific about what you're trying to achieve
|
||||
- For feedback: Let us know what you liked or what could be improved
|
||||
- For feature requests: Describe what functionality you'd like to see
|
||||
placeholder: |
|
||||
Your question or feedback here...
|
||||
validations:
|
||||
required: true
|
||||
+34
-7
@@ -4,10 +4,9 @@
|
||||
<i>The all-in-one offline-first networking toolbox for sysadmins</i><br>
|
||||
🌐 <b><a href="https://permissionator.as93.net">networking-toolbox.as93.net</a></b>
|
||||
</p>
|
||||
|
||||
<a href="https://permissionator.as93.net">
|
||||
<a href="https://networking-toolbox.as93.net">
|
||||
<p align="center">
|
||||
<img width="64" src="https://github.com/Lissy93/permissionator/blob/main/public/logo.png?raw=true" />
|
||||
<img width="128" src="https://github.com/user-attachments/assets/052a9507-2043-40bf-b697-1a953adb614f" />
|
||||
</p>
|
||||
</a>
|
||||
|
||||
@@ -17,15 +16,35 @@
|
||||
|
||||
#### Option 1 - Docker
|
||||
Run `docker run -p 8080:80 lissy93/networking-toolbox`<br>
|
||||
Or, use our example [`docker-compose.yml`](#)
|
||||
Or, use our example [`docker-compose.yml`](https://github.com/Lissy93/networking-toolbox/blob/main/docker-compose.yml)
|
||||
|
||||
#### Option 2 - Cloud
|
||||
Fork the repo, and import into Vercel, Netlify or any static hosting provider of your choice.
|
||||
|
||||
#### Option 3 - Source
|
||||
Follow the developing instructions below. Then run `npm run build` to compile output<br>
|
||||
You can then upload the contents of `./dist` to any web server, CDN or static host.
|
||||
#### Option 3 - Source: Node
|
||||
Follow the dev steps below.
|
||||
Then run `npm run build:node` to compile output.<br>
|
||||
You can then start the server with `node build`.
|
||||
|
||||
<details>
|
||||
<summary>More Deployment Options</summary>
|
||||
|
||||
#### Option 4 - Source: Static
|
||||
Follow the dev steps below.
|
||||
Then run `npm run build:static` to compile output.<br>
|
||||
And upload the contents of `./build` to any web server, CDN or static host.
|
||||
|
||||
#### Option 5 - Source: Docker
|
||||
Follow the dev steps below.
|
||||
Then run `docker build -t networking-toolbox .` to build the image.<br>
|
||||
You can then start the container with `docker run -p 8080:80 networking-toolbox`.
|
||||
|
||||
#### Option 6 - GitHub Pages
|
||||
Fork the repo.<br>
|
||||
Head to the Actions tab, find the "Deploy to GitHub Pages" workflow, and trigger it.<br>
|
||||
Then go to Settings > Pages > Source and select the `gh-pages` branch.<br>
|
||||
Visit `https://<your-username>.github.io/networking-toolbox/` to see your deployed app.
|
||||
</details>
|
||||
|
||||
---
|
||||
|
||||
@@ -44,6 +63,14 @@ yarn
|
||||
yarn dev
|
||||
```
|
||||
|
||||
#### Testing
|
||||
|
||||
Before merging, code must pass all unit and end-to-end tests, as well as linting, type checks, svelte check and build checks.<br>
|
||||
|
||||
```
|
||||
yarn test
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
### Contributing
|
||||
|
||||
@@ -0,0 +1,75 @@
|
||||
name: Deploy to GitHub Pages
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
base_url:
|
||||
description: 'Base URL path (e.g., /networking-toolbox)'
|
||||
required: false
|
||||
default: '/networking-toolbox'
|
||||
type: string
|
||||
target_branch:
|
||||
description: 'Target branch for deployment'
|
||||
required: false
|
||||
default: 'gh-pages'
|
||||
type: string
|
||||
node_version:
|
||||
description: 'Node.js version'
|
||||
required: false
|
||||
default: '18'
|
||||
type: string
|
||||
deploy_env:
|
||||
description: 'Deployment environment'
|
||||
required: false
|
||||
default: 'static'
|
||||
type: choice
|
||||
options:
|
||||
- static
|
||||
- github-pages
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
pages: write
|
||||
id-token: write
|
||||
|
||||
concurrency:
|
||||
group: "pages"
|
||||
cancel-in-progress: false
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Setup Node.js
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: ${{ inputs.node_version }}
|
||||
cache: 'npm'
|
||||
|
||||
- name: Install dependencies
|
||||
run: npm ci
|
||||
|
||||
- name: Build static site
|
||||
env:
|
||||
BASE_URL: ${{ inputs.base_url }}
|
||||
DEPLOY_ENV: ${{ inputs.deploy_env }}
|
||||
run: npm run build:static
|
||||
|
||||
- name: Upload build artifacts
|
||||
uses: actions/upload-pages-artifact@v3
|
||||
with:
|
||||
path: ./build
|
||||
|
||||
deploy:
|
||||
needs: build
|
||||
runs-on: ubuntu-latest
|
||||
environment:
|
||||
name: github-pages
|
||||
url: ${{ steps.deployment.outputs.page_url }}
|
||||
steps:
|
||||
- name: Deploy to GitHub Pages
|
||||
id: deployment
|
||||
uses: actions/deploy-pages@v4
|
||||
@@ -23,6 +23,7 @@ Thumbs.db
|
||||
/nyc_output
|
||||
/playwright-report
|
||||
/test-results
|
||||
e2e-results.xml
|
||||
|
||||
# AI Crap
|
||||
.claude/
|
||||
|
||||
-34
@@ -1,34 +0,0 @@
|
||||
{
|
||||
"$schema": "https://biomejs.dev/schemas/2.2.4/schema.json",
|
||||
"vcs": {
|
||||
"enabled": false,
|
||||
"clientKind": "git",
|
||||
"useIgnoreFile": false
|
||||
},
|
||||
"files": {
|
||||
"ignoreUnknown": false
|
||||
},
|
||||
"formatter": {
|
||||
"enabled": true,
|
||||
"indentStyle": "tab"
|
||||
},
|
||||
"linter": {
|
||||
"enabled": true,
|
||||
"rules": {
|
||||
"recommended": true
|
||||
}
|
||||
},
|
||||
"javascript": {
|
||||
"formatter": {
|
||||
"quoteStyle": "double"
|
||||
}
|
||||
},
|
||||
"assist": {
|
||||
"enabled": true,
|
||||
"actions": {
|
||||
"source": {
|
||||
"organizeImports": "on"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -13,6 +13,8 @@
|
||||
"format": "prettier --check src --write",
|
||||
"types": "tsc -p tsconfig.json --noEmit",
|
||||
"build-check": "vite build --minify=false --sourcemap=false --logLevel error",
|
||||
"build:node": "DEPLOY_ENV='node' npm run build",
|
||||
"build:static": "DEPLOY_ENV='static' npm run build",
|
||||
"test": "vitest",
|
||||
"test:ui": "vitest --ui",
|
||||
"test:coverage": "vitest --coverage",
|
||||
|
||||
@@ -24,7 +24,7 @@ export default defineConfig({
|
||||
name: 'firefox',
|
||||
use: { ...devices['Desktop Firefox'] },
|
||||
},
|
||||
// Disabled webkit due to missing system dependencies
|
||||
// i disabled webkit cos of missing system deps on CI
|
||||
// {
|
||||
// name: 'webkit',
|
||||
// use: { ...devices['Desktop Safari'] },
|
||||
|
||||
@@ -117,7 +117,7 @@
|
||||
</script>
|
||||
|
||||
{#snippet accessibilityOption(option: AccessibilityOption)}
|
||||
<label class="toggle-option">
|
||||
<label class="toggle-option" use:tooltip={option.description}>
|
||||
<input
|
||||
type="checkbox"
|
||||
checked={option.enabled}
|
||||
@@ -421,6 +421,15 @@
|
||||
&.theme-preview-terminal {
|
||||
background: linear-gradient(135deg, #000000 50%, #00ff00 50%);
|
||||
}
|
||||
&.theme-preview-lightpurple {
|
||||
background: linear-gradient(135deg, #fafafa 50%, #cca6ff 50%);
|
||||
}
|
||||
&.theme-preview-muteddark {
|
||||
background: linear-gradient(135deg, #21252b 50%, #f1f86d 50%);
|
||||
}
|
||||
&.theme-preview-solarized {
|
||||
background: linear-gradient(135deg, #002b36 50%, #268bd2 50%);
|
||||
}
|
||||
}
|
||||
|
||||
.language-dropdown {
|
||||
|
||||
@@ -188,7 +188,7 @@ export const iconMap: Record<string, string> = {
|
||||
'security-headers': `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 640"><path opacity=".4" d="M112 288C112 240.6 130.7 197.6 161.2 165.9L164.6 171C169.4 178.2 172 186.7 172 195.4L172 221.4C160 228.3 152 241.2 152 256C152 278.1 169.9 296 192 296C214.1 296 232 278.1 232 256C232 241.2 224 228.3 212 221.4L212 195.4C212 178.8 207.1 162.6 197.9 148.8L192.2 140.3C214.5 125.8 240.2 116.2 268 113.1L268 157.3C256 164.2 248 177.1 248 191.9C248 214 265.9 231.9 288 231.9C310.1 231.9 328 214 328 191.9C328 177.1 320 164.2 308 157.3L308 113.1C335.7 116.2 361.5 125.8 383.8 140.3L378.1 148.8C368.9 162.6 364 178.8 364 195.4L364 221.4C352 228.3 344 241.2 344 256C344 278.1 361.9 296 384 296C406.1 296 424 278.1 424 256C424 241.2 416 228.3 404 221.4L404 195.4C404 186.7 406.6 178.2 411.4 171L414.8 165.9C438.5 190.5 455.1 222 461.3 257.1C462.2 261.9 464.5 266.4 468 269.9L520.2 322.1C525.2 327.1 528.1 334 528.1 341.1C528.1 356 516.1 368 501.2 368L488 368C474.7 368 464 378.7 464 392L464 440C464 462.1 446.1 480 424 480L376 480C362.7 480 352 490.7 352 504L352 552C352 565.3 362.7 576 376 576L152 576C165.3 576 176 565.3 176 552L176 452.1C176 434 168.2 417.9 157.5 406.1C129.2 374.9 112 333.5 112 288zM248 320C248 342.1 265.9 360 288 360C310.1 360 328 342.1 328 320C328 297.9 310.1 280 288 280C265.9 280 248 297.9 248 320z"/><path d="M288 64C164.3 64 64 164.3 64 288C64 345.8 86 398.6 122 438.3C126.2 443 128 448 128 452.1L128 552C128 565.3 138.7 576 152 576C165.3 576 176 565.3 176 552L176 452.1C176 434 168.2 417.9 157.5 406.1C129.2 374.9 112 333.5 112 288C112 240.6 130.7 197.6 161.2 165.9L164.6 171C169.4 178.2 172 186.7 172 195.4L172 221.4C160 228.3 152 241.2 152 256C152 278.1 169.9 296 192 296C214.1 296 232 278.1 232 256C232 241.2 224 228.3 212 221.4L212 195.4C212 178.8 207.1 162.6 197.9 148.8L192.2 140.3C214.5 125.8 240.2 116.2 268 113.1L268 157.3C256 164.2 248 177.1 248 191.9C248 214 265.9 231.9 288 231.9C310.1 231.9 328 214 328 191.9C328 177.1 320 164.2 308 157.3L308 113.1C335.7 116.2 361.5 125.8 383.8 140.3L378.1 148.8C368.9 162.6 364 178.8 364 195.4L364 221.4C352 228.3 344 241.2 344 256C344 278.1 361.9 296 384 296C406.1 296 424 278.1 424 256C424 241.2 416 228.3 404 221.4L404 195.4C404 186.7 406.6 178.2 411.4 171L414.8 165.9C438.5 190.5 455.1 222 461.3 257.1C462.2 261.9 464.5 266.4 468 269.9L520.2 322.1C525.2 327.1 528.1 334 528.1 341.1C528.1 356 516.1 368 501.2 368L488 368C474.7 368 464 378.7 464 392L464 440C464 462.1 446.1 480 424 480L376 480C362.7 480 352 490.7 352 504L352 552C352 565.3 362.7 576 376 576C389.3 576 400 565.3 400 552L400 528L424 528C472.6 528 512 488.6 512 440L512 415.2C548.2 409.9 576 378.7 576 341.1C576 321.2 568.1 302.2 554.1 288.1L507.1 241.1C485.5 139.9 395.7 64 288 64zM328 320C328 297.9 310.1 280 288 280C265.9 280 248 297.9 248 320C248 342.1 265.9 360 288 360C310.1 360 328 342.1 328 320z"/></svg>`,
|
||||
server: `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 640"><path opacity=".4" d="M144 160L144 224C144 232.8 151.2 240 160 240L480 240C488.8 240 496 232.8 496 224L496 160C496 151.2 488.8 144 480 144L160 144C151.2 144 144 151.2 144 160zM144 416L144 480C144 488.8 151.2 496 160 496L480 496C488.8 496 496 488.8 496 480L496 416C496 407.2 488.8 400 480 400L160 400C151.2 400 144 407.2 144 416zM384 192C384 205.3 373.3 216 360 216C346.7 216 336 205.3 336 192C336 178.7 346.7 168 360 168C373.3 168 384 178.7 384 192zM384 448C384 461.3 373.3 472 360 472C346.7 472 336 461.3 336 448C336 434.7 346.7 424 360 424C373.3 424 384 434.7 384 448zM464 192C464 205.3 453.3 216 440 216C426.7 216 416 205.3 416 192C416 178.7 426.7 168 440 168C453.3 168 464 178.7 464 192zM464 448C464 461.3 453.3 472 440 472C426.7 472 416 461.3 416 448C416 434.7 426.7 424 440 424C453.3 424 464 434.7 464 448z"/><path d="M160 144C151.2 144 144 151.2 144 160L144 224C144 232.8 151.2 240 160 240L480 240C488.8 240 496 232.8 496 224L496 160C496 151.2 488.8 144 480 144L160 144zM96 160C96 124.7 124.7 96 160 96L480 96C515.3 96 544 124.7 544 160L544 224C544 259.3 515.3 288 480 288L160 288C124.7 288 96 259.3 96 224L96 160zM360 168C373.3 168 384 178.7 384 192C384 205.3 373.3 216 360 216C346.7 216 336 205.3 336 192C336 178.7 346.7 168 360 168zM416 192C416 178.7 426.7 168 440 168C453.3 168 464 178.7 464 192C464 205.3 453.3 216 440 216C426.7 216 416 205.3 416 192zM160 400C151.2 400 144 407.2 144 416L144 480C144 488.8 151.2 496 160 496L480 496C488.8 496 496 488.8 496 480L496 416C496 407.2 488.8 400 480 400L160 400zM96 416C96 380.7 124.7 352 160 352L480 352C515.3 352 544 380.7 544 416L544 480C544 515.3 515.3 544 480 544L160 544C124.7 544 96 515.3 96 480L96 416zM336 448C336 434.7 346.7 424 360 424C373.3 424 384 434.7 384 448C384 461.3 373.3 472 360 472C346.7 472 336 461.3 336 448zM440 424C453.3 424 464 434.7 464 448C464 461.3 453.3 472 440 472C426.7 472 416 461.3 416 448C416 434.7 426.7 424 440 424z"/></svg>`,
|
||||
settings: `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 640"><path opacity=".4" d="M65.5 213L72 237.2L101.8 235.6C109.8 235.2 117.4 238.7 122.3 245.1C127.2 251.5 132.9 257.3 139.4 262.2C145.8 267 149.3 274.7 148.9 282.6L147.3 312.3L171.5 318.8L185 292.2C188.6 285.1 195.5 280.2 203.4 279.2C211.5 278.2 219.3 276.1 226.7 272.9C234.1 269.8 242.5 270.5 249.2 274.9L274.2 291.2L291.9 273.5L275.6 248.5C271.2 241.8 270.5 233.4 273.6 226.1C275.1 222.4 276.5 218.6 277.5 214.6C278.5 210.6 279.3 206.6 279.8 202.7C280.8 194.8 285.7 187.9 292.8 184.3L319.4 170.8L312.9 146.6L283.1 148.2C275.1 148.6 267.5 145.1 262.6 138.7C257.7 132.3 252 126.5 245.5 121.6C239.1 116.8 235.6 109.1 236 101.2L237.6 71.5L213.4 65L199.9 91.6C196.3 98.7 189.4 103.6 181.5 104.6C173.4 105.6 165.6 107.7 158.2 110.9C150.8 114 142.4 113.3 135.7 108.9L110.7 92.6L93 110.3L109.3 135.3C113.7 142 114.4 150.4 111.3 157.7C109.8 161.4 108.4 165.2 107.4 169.2C106.4 173.2 105.6 177.2 105.1 181.1C104.1 189 99.2 195.9 92.1 199.5L65.5 213zM223.3 200.3C220.5 211.5 211.9 220.3 200.7 223.4C189.5 226.4 177.6 223.2 169.5 215C161.4 206.8 158.3 194.8 161.5 183.7C164.3 172.5 172.9 163.7 184.1 160.6C195.3 157.6 207.2 160.8 215.3 169C223.4 177.2 226.5 189.2 223.3 200.3zM321.5 427L348.1 440.5C355.2 444.1 360.1 451 361.1 458.9C361.6 462.9 362.4 466.8 363.4 470.8C364.4 474.8 365.8 478.6 367.3 482.3C370.4 489.6 369.6 498 365.3 504.7L349 529.7L366.7 547.4L391.7 531.1C398.4 526.7 406.8 526 414.2 529.1C421.6 532.2 429.5 534.4 437.5 535.4C445.4 536.4 452.3 541.2 455.9 548.4L469.4 575L493.6 568.5L492 538.8C491.6 530.8 495.1 523.2 501.5 518.4C508 513.5 513.7 507.7 518.6 501.3C523.4 494.9 531.1 491.4 539.1 491.8L568.9 493.4L575.4 469.2L548.8 455.7C541.7 452.1 536.8 445.2 535.8 437.3C535.3 433.3 534.5 429.4 533.5 425.4C532.5 421.4 531.1 417.6 529.6 413.9C526.5 406.6 527.3 398.2 531.6 391.5L547.9 366.5L530.2 348.8L505.2 365.1C498.5 369.5 490.1 370.2 482.7 367.1C475.3 364 467.4 361.8 459.4 360.8C451.5 359.8 444.6 355 441 347.8L427.5 321.2L403.3 327.7L404.9 357.4C405.3 365.4 401.8 373 395.4 377.8C388.9 382.7 383.2 388.5 378.3 394.9C373.5 401.3 365.8 404.8 357.8 404.4L328 402.8L321.5 427zM479.3 439.7C482.5 450.8 479.4 462.8 471.3 471C463.2 479.2 451.3 482.4 440.1 479.4C428.9 476.3 420.3 467.5 417.5 456.3C414.3 445.2 417.4 433.2 425.5 425C433.6 416.8 445.5 413.6 456.7 416.6C467.9 419.7 476.5 428.5 479.3 439.7z"/><path d="M170.6 43.4C180.9 23.2 203.9 12.9 225.8 18.7L250 25.2C271.9 31.1 286.7 51.5 285.5 74.2L284.5 92C287.2 94.5 289.8 97.1 292.3 99.8L310.1 98.8C332.8 97.6 353.2 112.4 359.1 134.3L365.6 158.5C371.5 180.4 361.2 203.5 340.9 213.7L325 221.8C324.2 225.4 323.2 229 322.1 232.5L331.8 247.4C344.2 266.4 341.6 291.5 325.5 307.6L308 325.3C291.9 341.4 266.9 344 247.8 331.6L232.9 321.9C229.4 323 225.8 324 222.2 324.8L214.1 340.7C203.8 360.9 180.8 371.2 158.9 365.4L134.7 358.9C112.8 353 98 332.6 99.2 309.9L100.2 292.1C97.5 289.6 94.9 287 92.4 284.3L74.6 285.3C51.9 286.5 31.5 271.7 25.6 249.8L19.1 225.6C13.2 203.7 23.5 180.6 43.8 170.4L43.8 170.4L59.7 162.3C60.5 158.7 61.5 155.1 62.6 151.6L52.8 136.6C40.4 117.6 43 92.5 59.1 76.4L59.1 76.4L76.8 58.7C92.8 42.6 117.9 40 137 52.4L151.9 62.1C155.4 61 159 60 162.6 59.2L170.7 43.3zM237.6 71.6L213.4 65.1L199.9 91.7C196.3 98.8 189.4 103.7 181.5 104.7C173.4 105.7 165.6 107.8 158.2 111C150.8 114.1 142.4 113.4 135.7 109L110.7 92.7L93 110.4L109.3 135.4C113.7 142.1 114.4 150.5 111.3 157.8C109.8 161.5 108.4 165.3 107.4 169.3C106.4 173.3 105.6 177.3 105.1 181.2C104.1 189.1 99.2 196 92.1 199.6L65.5 213.1L72 237.3L101.8 235.7C109.8 235.3 117.4 238.8 122.3 245.2C127.2 251.6 132.9 257.4 139.4 262.3C145.8 267.1 149.3 274.8 148.9 282.7L147.3 312.4L171.5 318.9L185 292.3C188.6 285.2 195.5 280.3 203.4 279.3C211.5 278.3 219.3 276.2 226.7 273C234.1 269.9 242.5 270.6 249.2 275L274.2 291.3L291.9 273.6L275.6 248.6C271.2 241.9 270.5 233.5 273.6 226.2C275.1 222.5 276.5 218.7 277.5 214.7C278.5 210.7 279.3 206.7 279.8 202.8C280.8 194.9 285.7 188 292.8 184.4L319.4 170.9L312.9 146.7L283.1 148.3C275.1 148.7 267.5 145.2 262.6 138.8C257.7 132.4 252 126.6 245.5 121.7C239.1 116.9 235.6 109.2 236 101.3L237.6 71.6zM161.5 183.7C164.3 172.5 172.9 163.7 184.1 160.6C195.3 157.6 207.2 160.8 215.3 169C223.4 177.2 226.5 189.2 223.3 200.3C220.5 211.5 211.9 220.3 200.7 223.4C189.5 226.4 177.6 223.2 169.5 215C161.4 206.8 158.3 194.8 161.5 183.7zM355.2 330.2C354 307.5 368.8 287.1 390.7 281.2L414.9 274.7C436.8 268.8 459.9 279.1 470.1 299.4L478.2 315.3C481.8 316.1 485.4 317.1 488.9 318.2L503.8 308.5C522.8 296.1 547.9 298.7 564 314.8L581.7 332.5C597.8 348.6 600.4 373.7 588 392.7L578.3 407.6C579.4 411.1 580.4 414.7 581.2 418.3L597.1 426.4C617.3 436.7 627.6 459.7 621.8 481.6L615.3 505.8C609.4 527.7 589 542.5 566.3 541.3L548.5 540.3C546 543 543.4 545.6 540.7 548.1L541.7 565.9C542.9 588.6 528.1 609 506.2 614.9L482 621.4C460.1 627.3 437 617 426.8 596.7L418.7 580.8C415.1 580 411.5 579 408 577.9L393 587.6C374 600 348.9 597.4 332.8 581.3L315.1 563.6C299 547.5 296.4 522.5 308.8 503.4L318.5 488
Line truncated
|
||||
settings2: `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 640"><!--!Font Awesome Pro v7.0.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2025 Fonticons, Inc.--><path opacity=".4" d="M272.3 320C272.3 346.3 293.7 367.7 320 367.7C346.3 367.7 367.7 346.3 367.7 320C367.7 293.7 346.3 272.3 320 272.3C293.7 272.3 272.3 293.7 272.3 320z"/><path d="M259.1 73.5C262.1 58.7 275.2 48 290.4 48L350.2 48C365.4 48 378.5 58.7 381.5 73.5L396 143.5C410.1 149.5 423.3 157.2 435.3 166.3L503.1 143.8C517.5 139 533.3 145 540.9 158.2L570.8 210C578.4 223.2 575.7 239.8 564.3 249.9L511 297.3C511.9 304.7 512.3 312.3 512.3 320C512.3 327.7 511.8 335.3 511 342.7L564.4 390.2C575.8 400.3 578.4 417 570.9 430.1L541 481.9C533.4 495 517.6 501.1 503.2 496.3L435.4 473.8C423.3 482.9 410.1 490.5 396.1 496.6L381.7 566.5C378.6 581.4 365.5 592 350.4 592L290.6 592C275.4 592 262.3 581.3 259.3 566.5L244.9 496.6C230.8 490.6 217.7 482.9 205.6 473.8L137.5 496.3C123.1 501.1 107.3 495.1 99.7 481.9L69.8 430.1C62.2 416.9 64.9 400.3 76.3 390.2L129.7 342.7C128.8 335.3 128.4 327.7 128.4 320C128.4 312.3 128.9 304.7 129.7 297.3L76.3 249.8C64.9 239.7 62.3 223 69.8 209.9L99.7 158.1C107.3 144.9 123.1 138.9 137.5 143.7L205.3 166.2C217.4 157.1 230.6 149.5 244.6 143.4L259.1 73.5zM320.3 416C373.3 415.8 416.2 372.7 416 319.7C415.8 266.7 372.7 223.8 319.7 224C266.7 224.2 223.8 267.3 224 320.3C224.2 373.3 267.3 416.2 320.3 416z"/></svg>`,
|
||||
settings2: `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 640"><path opacity=".4" d="M272.3 320C272.3 346.3 293.7 367.7 320 367.7C346.3 367.7 367.7 346.3 367.7 320C367.7 293.7 346.3 272.3 320 272.3C293.7 272.3 272.3 293.7 272.3 320z"/><path d="M259.1 73.5C262.1 58.7 275.2 48 290.4 48L350.2 48C365.4 48 378.5 58.7 381.5 73.5L396 143.5C410.1 149.5 423.3 157.2 435.3 166.3L503.1 143.8C517.5 139 533.3 145 540.9 158.2L570.8 210C578.4 223.2 575.7 239.8 564.3 249.9L511 297.3C511.9 304.7 512.3 312.3 512.3 320C512.3 327.7 511.8 335.3 511 342.7L564.4 390.2C575.8 400.3 578.4 417 570.9 430.1L541 481.9C533.4 495 517.6 501.1 503.2 496.3L435.4 473.8C423.3 482.9 410.1 490.5 396.1 496.6L381.7 566.5C378.6 581.4 365.5 592 350.4 592L290.6 592C275.4 592 262.3 581.3 259.3 566.5L244.9 496.6C230.8 490.6 217.7 482.9 205.6 473.8L137.5 496.3C123.1 501.1 107.3 495.1 99.7 481.9L69.8 430.1C62.2 416.9 64.9 400.3 76.3 390.2L129.7 342.7C128.8 335.3 128.4 327.7 128.4 320C128.4 312.3 128.9 304.7 129.7 297.3L76.3 249.8C64.9 239.7 62.3 223 69.8 209.9L99.7 158.1C107.3 144.9 123.1 138.9 137.5 143.7L205.3 166.2C217.4 157.1 230.6 149.5 244.6 143.4L259.1 73.5zM320.3 416C373.3 415.8 416.2 372.7 416 319.7C415.8 266.7 372.7 223.8 319.7 224C266.7 224.2 223.8 267.3 224 320.3C224.2 373.3 267.3 416.2 320.3 416z"/></svg>`,
|
||||
shield: `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 640"><path opacity=".4" d="M128 203.7C128.5 295.1 166.4 453 314.4 523.8C318 525.5 322.2 525.5 325.7 523.8C473.7 453 511.6 295.1 512 203.7C512 198.7 508.9 193.5 503 190.9L320 113.4L137.1 191C131.2 193.5 128 198.8 128.1 203.8z"/><path d="M320 113.4L137.1 191C131.2 193.5 128 198.8 128.1 203.8C128.6 295.2 166.5 453.1 314.5 523.9C318.1 525.6 322.3 525.6 325.8 523.9C473.8 453.1 511.7 295.2 512.1 203.8C512.1 198.8 509 193.6 503.1 191L320 113.4zM333.4 66.9L521.8 146.8C543.8 156.1 560.2 177.8 560.1 204C559.6 303.2 518.8 484.7 346.5 567.2C329.8 575.2 310.4 575.2 293.7 567.2C121.3 484.7 80.5 303.2 80.1 204C80 177.8 96.4 156.1 118.4 146.8L306.7 66.9C310.9 65 315.4 64 320 64C324.6 64 329.2 65 333.4 66.9z"/></svg>`,
|
||||
'shield-alert': `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 640"><path opacity=".4" d="M128 203.7C128.5 295.1 166.4 453 314.4 523.8C318 525.5 322.2 525.5 325.7 523.8C473.7 453 511.6 295.1 512 203.7C512 198.7 508.9 193.5 503 191L320 113.4L137 191C131.1 193.5 127.9 198.7 128 203.7zM352 400C352 417.7 337.7 432 320 432C302.3 432 288 417.7 288 400C288 382.3 302.3 368 320 368C337.7 368 352 382.3 352 400zM288.7 209.7C287.4 191.5 301.8 176 320.1 176C338.3 176 352.8 191.5 351.5 209.7L344.1 313.7C343.2 326.3 332.7 336 320.2 336C307.6 336 297.2 326.3 296.3 313.7L288.9 209.7z"/><path d="M320.1 64C324.7 64 329.3 65 333.4 66.9L521.8 146.8C543.8 156.1 560.2 177.8 560.1 204C559.6 303.2 518.8 484.7 346.5 567.2C329.8 575.2 310.4 575.2 293.8 567.2C121.4 484.7 80.6 303.3 80.1 204C80 177.8 96.4 156.1 118.4 146.8L306.7 66.9C310.8 65 315.4 64 320.1 64zM137.1 191C131.2 193.5 128 198.7 128.1 203.7C128.6 295.1 166.5 453 314.5 523.8C318.1 525.5 322.3 525.5 325.8 523.8C473.8 453 511.7 295.1 512.1 203.7C512.1 198.7 509 193.5 503.1 191L320.1 113.4L137.1 191zM320 432C302.3 432 288 417.7 288 400C288 382.3 302.3 368 320 368C337.7 368 352 382.3 352 400C352 417.7 337.7 432 320 432zM320 176C338.2 176 352.7 191.5 351.4 209.7L344 313.7C343.1 326.3 332.6 336 320.1 336C307.5 336 297.1 326.3 296.2 313.7L288.8 209.7C287.4 191.5 301.8 176 320 176z"/></svg>`,
|
||||
'shield-check': `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 640"><path opacity=".4" d="M128 203.7C128.5 295.1 166.4 453 314.4 523.8C318 525.5 322.2 525.5 325.7 523.8C473.7 453 511.6 295.1 512 203.7C512 198.7 508.9 193.5 503 191L320 113.4L137 191C131.1 193.5 127.9 198.7 128 203.7zM230.8 349.5C221.6 340 221.8 324.8 231.4 315.6C240.9 306.4 256.1 306.7 265.3 316.2L291.8 343.6L377.4 225.9C385.2 215.2 400.2 212.8 410.9 220.6C421.6 228.4 424 243.4 416.2 254.1L313.8 394.9C309.6 400.6 303.1 404.2 296 404.7C288.9 405.2 282 402.5 277.1 397.4L230.7 349.4z"/><path d="M320.1 64C324.7 64 329.3 65 333.4 66.9L521.8 146.8C543.8 156.1 560.2 177.8 560.1 204C559.6 303.2 518.8 484.7 346.5 567.2C329.8 575.2 310.4 575.2 293.7 567.2C121.3 484.7 80.5 303.3 80 204C79.9 177.8 96.3 156.1 118.3 146.8L306.7 66.9C310.8 65 315.4 64 320.1 64zM137.1 191C131.2 193.5 128 198.7 128.1 203.7C128.6 295.1 166.5 453 314.5 523.8C318.1 525.5 322.3 525.5 325.8 523.8C473.8 453 511.7 295.1 512.1 203.7C512.1 198.7 509 193.5 503.1 191L320.1 113.4L137.1 191zM377.4 225.9C385.2 215.2 400.2 212.8 410.9 220.6C421.6 228.4 424 243.4 416.2 254.1L313.8 394.9C309.6 400.6 303.1 404.2 296 404.7C288.9 405.2 282 402.5 277.1 397.4L230.7 349.4C221.5 339.9 221.7 324.7 231.3 315.5C240.8 306.3 256 306.6 265.2 316.1L291.7 343.5L377.3 225.8z"/></svg>`,
|
||||
@@ -226,4 +226,5 @@ export const iconMap: Record<string, string> = {
|
||||
'rdap-ip': `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 640"><path opacity=".4" d="M40 368C40 381.3 50.7 392 64 392C77.3 392 88 381.3 88 368C88 354.7 77.3 344 64 344C50.7 344 40 354.7 40 368zM200 128C200 141.3 210.7 152 224 152C237.3 152 248 141.3 248 128C248 114.7 237.3 104 224 104C210.7 104 200 114.7 200 128zM240 368C240 421 283 464 336 464C389 464 432 421 432 368C432 315 389 272 336 272C283 272 240 315 240 368zM552 192C552 205.3 562.7 216 576 216C589.3 216 600 205.3 600 192C600 178.7 589.3 168 576 168C562.7 168 552 178.7 552 192zM552 512C552 525.3 562.7 536 576 536C589.3 536 600 525.3 600 512C600 498.7 589.3 488 576 488C562.7 488 552 498.7 552 512z"/><path d="M224 104C237.3 104 248 114.7 248 128C248 141.3 237.3 152 224 152C210.7 152 200 141.3 200 128C200 114.7 210.7 104 224 104zM224 192C225.1 192 226.2 192 227.3 191.9L254.2 249.5C222.9 271.2 200.5 304.9 194 344L123.4 344C113.9 320.5 90.9 304 64.1 304C28.8 304 .1 332.7 .1 368C.1 403.3 28.8 432 64.1 432C91 432 114 415.5 123.4 392L194 392C205.4 460.1 264.7 512 336 512C379.8 512 419 492.5 445.4 461.6L512.8 502C512.3 505.2 512 508.6 512 511.9C512 547.2 540.7 575.9 576 575.9C611.3 575.9 640 547.2 640 511.9C640 476.6 611.3 447.9 576 447.9C561.5 447.9 548.2 452.7 537.5 460.8L470.2 420.4C476.6 404.1 480.1 386.4 480.1 367.9C480.1 344.7 474.6 322.7 464.8 303.3L542.4 246.4C552.2 252.5 563.7 256 576.1 256C611.4 256 640.1 227.3 640.1 192C640.1 156.7 611.4 128 576.1 128C540.8 128 512.1 156.7 512.1 192C512.1 197.4 512.8 202.7 514 207.7L436.4 264.6C410.5 239.4 375.1 223.9 336.1 223.9C322.8 223.9 310 225.7 297.8 229.1L270.9 171.6C281.5 160.2 288 144.9 288 128C288 92.7 259.3 64 224 64C188.7 64 160 92.7 160 128C160 163.3 188.7 192 224 192zM576 168C589.3 168 600 178.7 600 192C600 205.3 589.3 216 576 216C562.7 216 552 205.3 552 192C552 178.7 562.7 168 576 168zM552 512C552 498.7 562.7 488 576 488C589.3 488 600 498.7 600 512C600 525.3 589.3 536 576 536C562.7 536 552 525.3 552 512zM64 344C77.3 344 88 354.7 88 368C88 381.3 77.3 392 64 392C50.7 392 40 381.3 40 368C40 354.7 50.7 344 64 344zM336 272C389 272 432 315 432 368C432 421 389 464 336 464C283 464 240 421 240 368C240 315 283 272 336 272z"/></svg>`,
|
||||
'rdap-asn': `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 640"><path opacity=".4" d="M139.2 212C132.6 223.5 136.5 238.2 148 244.8C159.5 251.4 174.2 247.5 180.8 236C187.4 224.5 183.5 209.8 172 203.2C160.5 196.6 145.8 200.5 139.2 212zM139.2 428C145.8 439.5 160.5 443.4 172 436.8C183.5 430.2 187.4 415.5 180.8 404C174.2 392.5 159.5 388.6 148 395.2C136.5 401.8 132.6 416.5 139.2 428zM296 128C296 141.3 306.7 152 320 152C333.3 152 344 141.3 344 128C344 114.7 333.3 104 320 104C306.7 104 296 114.7 296 128zM296 320C296 333.3 306.7 344 320 344C333.3 344 344 333.3 344 320C344 306.7 333.3 296 320 296C306.7 296 296 306.7 296 320zM296 512C296 525.3 306.7 536 320 536C333.3 536 344 525.3 344 512C344 498.7 333.3 488 320 488C306.7 488 296 498.7 296 512zM459.2 236C465.8 247.5 480.5 251.4 492 244.8C503.5 238.2 507.4 223.5 500.8 212C494.2 200.5 479.5 196.6 468 203.2C456.5 209.8 452.6 224.5 459.2 236zM459.2 404C452.6 415.5 456.5 430.2 468 436.8C479.5 443.4 494.2 439.5 500.8 428C507.4 416.5 503.5 401.8 492 395.2C480.5 388.6 465.8 392.5 459.2 404z"/><path d="M320 152C333.3 152 344 141.3 344 128C344 114.7 333.3 104 320 104C306.7 104 296 114.7 296 128C296 141.3 306.7 152 320 152zM384 128C384 154.9 367.5 177.9 344 187.3L344 260.6C367.5 270.1 384 293.1 384 319.9C384 323.3 383.7 326.6 383.2 329.9L441.4 364.8C445.9 361.4 450.8 358.7 455.9 356.6L455.9 283.3C450.7 281.2 445.9 278.5 441.4 275.1L412 292.7C407.3 276.9 398.7 262.8 387.3 251.6L416.7 234C412.7 208.6 424.4 182.3 447.9 168.6C478.5 150.9 517.7 161.4 535.3 192C552.9 222.6 542.5 261.8 511.9 279.4C509.3 280.9 506.6 282.2 503.9 283.3L503.9 356.6C506.6 357.7 509.3 359 511.9 360.5C542.5 378.2 553 417.3 535.3 447.9C517.6 478.5 478.5 489 447.9 471.3C424.3 457.7 412.7 431.3 416.7 405.9L358.5 371C354.1 374.3 349.2 377.1 344 379.2L344 452.5C367.5 462 384 485 384 511.8C384 547.1 355.3 575.8 320 575.8C284.7 575.8 256 547.1 256 511.8C256 484.9 272.5 461.9 296 452.5L296 379.2C272.5 369.7 256 346.7 256 319.9C256 316.5 256.3 313.2 256.8 309.9L198.6 275C194.1 278.4 189.2 281.1 184 283.2L184 356.5C189.1 358.6 194 361.3 198.5 364.7L227.9 347.1C232.6 362.9 241.2 377 252.6 388.2L223.2 406C227.2 431.4 215.6 457.8 192 471.4C161.4 489.1 122.3 478.6 104.6 448C86.9 417.4 97.4 378.3 128 360.6C130.6 359.1 133.3 357.8 136 356.7L136 283.4C133.3 282.3 130.6 281 128 279.5C97.4 261.8 86.9 222.6 104.6 192C122.3 161.4 161.4 150.9 192 168.6C215.6 182.2 227.2 208.6 223.2 234L281.4 268.9C285.8 265.6 290.7 262.8 295.9 260.7L295.9 187.4C272.4 177.9 255.9 154.9 255.9 128.1C255.9 92.8 284.6 64.1 319.9 64.1C355.2 64.1 383.9 92.8 383.9 128.1zM320 344C333.3 344 344 333.3 344 320C344 306.7 333.3 296 320 296C306.7 296 296 306.7 296 320C296 333.3 306.7 344 320 344zM492 244.8C503.5 238.2 507.4 223.5 500.8 212C494.2 200.5 479.5 196.6 468 203.2C456.5 209.8 452.6 224.5 459.2 236C465.8 247.5 480.5 251.4 492 244.8zM180.8 236C187.4 224.5 183.5 209.8 172 203.2C160.5 196.6 145.8 200.5 139.2 212C132.6 223.5 136.5 238.2 148 244.8C159.5 251.4 174.2 247.5 180.8 236zM344 512C344 498.7 333.3 488 320 488C306.7 488 296 498.7 296 512C296 525.3 306.7 536 320 536C333.3 536 344 525.3 344 512zM139.2 428C145.8 439.5 160.5 443.4 172 436.8C183.5 430.2 187.4 415.5 180.8 404C174.2 392.5 159.5 388.6 148 395.2C136.5 401.8 132.6 416.5 139.2 428zM492 395.2C480.5 388.6 465.8 392.5 459.2 404C452.6 415.5 456.5 430.2 468 436.8C479.5 443.4 494.2 439.5 500.8 428C507.4 416.5 503.5 401.8 492 395.2z"/></svg>`,
|
||||
regexr: `<svg xmlns="http://www.w3.org/2000/svg" width="400" height="400" viewBox="0 0 64 64" fill="none"><path fill="currentColor" d="M0 0v64h64V0H0zm23.799 52.045H11.783V40.029h12.016v12.016zm29.957-22.401l-5.396 5.235-6.765-11.033L34.67 35.12l-5.396-5.235 9.744-7.328-13.046-4.188 3.785-6.604 10.711 8.617L37.65 7.739h7.57l-2.899 12.643 10.791-8.617 3.785 6.604-12.804 4.027 9.663 7.248z"></path></svg>`,
|
||||
'z-globe': `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 640"><path d="M33.1 296L144.5 296C148 210.4 170.1 130.9 202.4 78.7C110.3 111.3 42.5 195.2 33.1 296zM33.1 344C42.5 444.8 110.3 528.7 202.4 561.3C170.1 509.1 148 429.6 144.5 344L33.1 344zM192.5 296L383.4 296C380.6 231.5 366.3 172.1 346 128.6C334.6 104.2 322.3 86.8 310.9 76.2C299.7 65.7 292 64 288 64C284 64 276.3 65.7 265.1 76.2C253.7 86.8 241.4 104.2 230 128.6C209.7 172.1 195.4 231.5 192.5 296zM192.5 344C195.4 408.5 209.7 467.9 230 511.4C241.4 535.9 253.7 553.2 265.1 563.8C276.3 574.3 284 576 288 576C292 576 299.7 574.3 310.9 563.8C315.1 559.9 319.5 555 323.9 549.2C311.2 523.5 304 494.6 304 464C304 418.6 319.8 376.9 346.1 344L192.5 344zM373.6 78.7C404.3 128.4 425.8 202.6 430.9 283.4C451.2 276.1 473.2 272.1 496.1 272.1C511.4 272.1 526.3 273.9 540.5 277.3C524.9 185 459.9 109.4 373.7 78.8z"/><path opacity=".8" class="accent-part" d="M496 608C575.5 608 640 543.5 640 464C640 384.5 575.5 320 496 320C416.5 320 352 384.5 352 464C352 543.5 416.5 608 496 608zM425.4 443.1C418.8 449 408.7 448.5 402.8 441.9C396.9 435.3 397.4 425.2 404 419.3C428.4 397.4 460.6 384 496 384C531.4 384 563.7 397.4 588 419.3C594.6 425.2 595.1 435.3 589.2 441.9C583.3 448.5 573.2 449 566.6 443.1C547.9 426.2 523.2 416 496 416C468.8 416 444.1 426.2 425.4 443.1zM496 508C507 508 516 517 516 528C516 539 507 548 496 548C485 548 476 539 476 528C476 517 485 508 496 508zM496 480C483.9 480 472.8 484.6 464.5 492.1C457.9 498 447.8 497.5 441.9 491C436 484.5 436.5 474.3 443 468.4C457 455.7 475.6 448 496 448C516.4 448 535 455.7 549 468.4C555.6 474.3 556.1 484.4 550.1 491C544.1 497.6 534.1 498.1 527.5 492.1C519.2 484.6 508.1 480 496 480z"/></svg>`,
|
||||
};
|
||||
+41
-11
@@ -60,7 +60,22 @@ function applyThemeClasses(theme: ThemeOption) {
|
||||
|
||||
// Available themes configuration
|
||||
export const themes: Theme[] = [
|
||||
{
|
||||
{
|
||||
id: 'dark',
|
||||
name: 'Dark',
|
||||
available: true,
|
||||
},
|
||||
{
|
||||
id: 'light',
|
||||
name: 'Light',
|
||||
available: true,
|
||||
font: {
|
||||
name: 'Inter',
|
||||
url: 'https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Roboto+Mono:wght@400;500&display=swap',
|
||||
fallback: 'sans-serif',
|
||||
},
|
||||
},
|
||||
{
|
||||
id: 'midnight',
|
||||
name: 'Midnight',
|
||||
available: true,
|
||||
@@ -80,16 +95,6 @@ export const themes: Theme[] = [
|
||||
fallback: 'sans-serif',
|
||||
},
|
||||
},
|
||||
{
|
||||
id: 'dark',
|
||||
name: 'Dark',
|
||||
available: true,
|
||||
},
|
||||
{
|
||||
id: 'light',
|
||||
name: 'Light',
|
||||
available: true,
|
||||
},
|
||||
{
|
||||
id: 'ocean',
|
||||
name: 'Ocean',
|
||||
@@ -130,6 +135,31 @@ export const themes: Theme[] = [
|
||||
fallback: 'monospace',
|
||||
},
|
||||
},
|
||||
{
|
||||
id: 'lightpurple',
|
||||
name: 'Light Purple',
|
||||
available: true,
|
||||
},
|
||||
{
|
||||
id: 'muteddark',
|
||||
name: 'Muted Dark',
|
||||
available: true,
|
||||
font: {
|
||||
name: 'Source Code Pro',
|
||||
url: 'https://fonts.googleapis.com/css2?family=Source+Code+Pro:wght@300;400;500;600;700&family=Open+Sans:wght@300;400;500;600;700&display=swap',
|
||||
fallback: 'monospace',
|
||||
},
|
||||
},
|
||||
{
|
||||
id: 'solarized',
|
||||
name: 'Solarized',
|
||||
available: true,
|
||||
font: {
|
||||
name: 'Inconsolata',
|
||||
url: 'https://fonts.googleapis.com/css2?family=Inconsolata:wght@300;400;500;600;700&family=Lato:wght@300;400;700&display=swap',
|
||||
fallback: 'monospace',
|
||||
},
|
||||
},
|
||||
];
|
||||
|
||||
function createThemeStore() {
|
||||
|
||||
@@ -13,19 +13,30 @@ export function getSvgContent(iconName: string): string | undefined {
|
||||
* Process SVG content for use as favicon
|
||||
* @param svgContent - Raw SVG content
|
||||
* @param color - Fill color for the SVG (defaults to current theme primary color)
|
||||
* @param accentColor - Fill color for elements with "accent-part" class
|
||||
* @returns Processed SVG with proper fill color
|
||||
*/
|
||||
function processSvgForFavicon(svgContent: string, color: string): string {
|
||||
// Remove existing fill and currentColor attributes, set a solid color
|
||||
function processSvgForFavicon(svgContent: string, color: string, accentColor: string = '#6fcdff'): string {
|
||||
// Remove existing fill and currentColor attributes, set colors
|
||||
let processedSvg = svgContent
|
||||
.replace(/fill="currentColor"/g, `fill="${color}"`)
|
||||
.replace(/fill="[^"]*"/g, `fill="${color}`)
|
||||
.replace(/<path[^>]*>/g, (match) => {
|
||||
// Ensure all path elements have the fill color
|
||||
if (!match.includes('fill=')) {
|
||||
return match.replace('<path', `<path fill="${color}"`);
|
||||
// Handle accent-part class specially
|
||||
if (match.includes('class="accent-part"')) {
|
||||
// For accent parts, use the accent color
|
||||
if (!match.includes('fill=')) {
|
||||
return match.replace('<path', `<path fill="${accentColor}"`);
|
||||
} else {
|
||||
return match.replace(/fill="[^"]*"/, `fill="${accentColor}"`);
|
||||
}
|
||||
} else {
|
||||
// For regular path elements, use the main color
|
||||
if (!match.includes('fill=')) {
|
||||
return match.replace('<path', `<path fill="${color}"`);
|
||||
}
|
||||
return match;
|
||||
}
|
||||
return match;
|
||||
});
|
||||
|
||||
// Add explicit fill to svg element if it doesn't exist
|
||||
@@ -52,15 +63,16 @@ export function getPrimaryColor(): string {
|
||||
* Generate a favicon data URI from an icon name
|
||||
* @param iconName - The name of the icon to use
|
||||
* @param color - Fill color for the icon (defaults to current CSS primary color)
|
||||
* @param accentColor - Fill color for elements with "accent-part" class (defaults to red)
|
||||
* @returns Data URI string for use in link[rel="icon"] or null if icon not found
|
||||
*/
|
||||
export function generateFaviconDataUri(iconName: string, color?: string): string | null {
|
||||
export function generateFaviconDataUri(iconName: string, color?: string, accentColor?: string): string | null {
|
||||
const svgContent = getSvgContent(iconName);
|
||||
if (!svgContent) {
|
||||
return null;
|
||||
}
|
||||
const faviconColor = color || getPrimaryColor();
|
||||
const processedSvg = processSvgForFavicon(svgContent, faviconColor);
|
||||
const processedSvg = processSvgForFavicon(svgContent, faviconColor, accentColor);
|
||||
const encodedSvg = encodeURIComponent(processedSvg);
|
||||
return `data:image/svg+xml,${encodedSvg}`;
|
||||
}
|
||||
@@ -46,14 +46,17 @@
|
||||
void faviconTrigger; // Include in order to force updates when theme changes
|
||||
const currentPath = $page.url.pathname;
|
||||
const pageDetailsWithIcon = getPageDetailsWithIcon(currentPath);
|
||||
|
||||
if (pageDetailsWithIcon?.icon) {
|
||||
const faviconDataUri = generateFaviconDataUri(pageDetailsWithIcon.icon);
|
||||
if (faviconDataUri) {
|
||||
return faviconDataUri;
|
||||
}
|
||||
}
|
||||
|
||||
// Fallback to default favicon
|
||||
const coloredFaviconDataUri = generateFaviconDataUri('z-globe');
|
||||
if (coloredFaviconDataUri) {
|
||||
return coloredFaviconDataUri;
|
||||
}
|
||||
return favicon;
|
||||
});
|
||||
|
||||
|
||||
@@ -0,0 +1,102 @@
|
||||
<script lang="ts">
|
||||
import { browser } from '$app/environment';
|
||||
import Icon from '$lib/components/global/Icon.svelte';
|
||||
import { onMount } from 'svelte';
|
||||
|
||||
let isOffline = false;
|
||||
let isStaticDeployment = false;
|
||||
|
||||
onMount(() => {
|
||||
if (browser) {
|
||||
// Check if browser is offline
|
||||
isOffline = !navigator.onLine;
|
||||
|
||||
// Listen for online/offline events
|
||||
const handleOnline = () => (isOffline = false);
|
||||
const handleOffline = () => (isOffline = true);
|
||||
|
||||
window.addEventListener('online', handleOnline);
|
||||
window.addEventListener('offline', handleOffline);
|
||||
|
||||
// Check for static deployment environment
|
||||
// This checks for common static deployment indicators
|
||||
isStaticDeployment =
|
||||
import.meta.env.DEPLOY_ENV === 'static' ||
|
||||
import.meta.env.DEPLOY_ENV === 'STATIC' ||
|
||||
import.meta.env.VITE_DEPLOY_ENV === 'static' ||
|
||||
import.meta.env.VITE_DEPLOY_ENV === 'STATIC' ||
|
||||
// Fallback: check if we're missing server-side features
|
||||
typeof window !== 'undefined' && !window.fetch;
|
||||
|
||||
return () => {
|
||||
window.removeEventListener('online', handleOnline);
|
||||
window.removeEventListener('offline', handleOffline);
|
||||
};
|
||||
}
|
||||
});
|
||||
|
||||
$: showWarning = isOffline || isStaticDeployment;
|
||||
</script>
|
||||
|
||||
{#if showWarning}
|
||||
<div class="warning-banner" role="alert" aria-live="polite">
|
||||
<div class="warning-content">
|
||||
<Icon name="warning" size="sm" />
|
||||
<div class="warning-text">
|
||||
<strong>Limited Functionality:</strong>
|
||||
{#if isOffline && isStaticDeployment}
|
||||
Diagnostic tools are unavailable due to offline status and static deployment.
|
||||
{:else if isOffline}
|
||||
Diagnostic tools are unavailable while offline.
|
||||
{:else}
|
||||
Diagnostic tools will not work properly on static deployments.
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
<slot />
|
||||
|
||||
<style lang="scss">
|
||||
.warning-banner {
|
||||
background: linear-gradient(135deg,
|
||||
color-mix(in srgb, var(--color-warning), transparent 90%),
|
||||
color-mix(in srgb, var(--color-warning), transparent 95%));
|
||||
border: 1px solid color-mix(in srgb, var(--color-warning), transparent 70%);
|
||||
border-radius: var(--radius-md);
|
||||
padding: var(--spacing-md);
|
||||
margin-bottom: var(--spacing-lg);
|
||||
animation: slideIn 0.3s ease-out;
|
||||
|
||||
.warning-content {
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
gap: var(--spacing-sm);
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
:global(.icon) {
|
||||
color: var(--color-warning);
|
||||
}
|
||||
|
||||
.warning-text {
|
||||
color: var(--text-primary);
|
||||
font-size: 0.875rem;
|
||||
line-height: 1.5;
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
|
||||
strong {
|
||||
font-weight: 600;
|
||||
color: var(--color-warning);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes slideIn {
|
||||
from { opacity: 0; transform: translateY(-0.5rem); }
|
||||
to { opacity: 1; transform: translateY(0); }
|
||||
}
|
||||
|
||||
</style>
|
||||
+110
-3
@@ -104,8 +104,8 @@ html[data-theme='purple'] {
|
||||
}
|
||||
|
||||
/* Light theme */
|
||||
.theme-light,
|
||||
html[data-theme='light'] {
|
||||
.theme-lightpurple,
|
||||
html[data-theme='lightpurple'] {
|
||||
/* Background colors */
|
||||
--bg-primary: #f4f2fa;
|
||||
--bg-secondary: #fff; /* cards */
|
||||
@@ -357,7 +357,7 @@ html[data-theme='midnight'] {
|
||||
.theme-arctic,
|
||||
html[data-theme='arctic'] {
|
||||
/* Backgrounds - Cool whites and light blues */
|
||||
--bg-primary: #f0f4f8;
|
||||
--bg-primary: #f5f5f5;
|
||||
--bg-secondary: #ffffff;
|
||||
--bg-tertiary: #e3f2fd;
|
||||
|
||||
@@ -461,3 +461,110 @@ html[data-theme='terminal'] {
|
||||
--font-body: 'JetBrains Mono', monospace;
|
||||
--font-mono: 'JetBrains Mono', monospace;
|
||||
}
|
||||
|
||||
|
||||
/* Minimal Theme - Clean and modern */
|
||||
.theme-light,
|
||||
html[data-theme='light'] {
|
||||
--bg-primary: #fafafa;
|
||||
--bg-secondary: #ffffff;
|
||||
--bg-tertiary: #f5f5f5;
|
||||
|
||||
--text-primary: #212121;
|
||||
--text-secondary: #757575;
|
||||
--text-tertiary: #9e9e9e;
|
||||
|
||||
--color-primary: #2196f3;
|
||||
--color-primary-hover: #42a5f5;
|
||||
--color-primary-dark: #1976d2;
|
||||
|
||||
--color-success: #4caf50;
|
||||
--color-warning: #ff9800;
|
||||
--color-error: #f44336;
|
||||
--color-info: #00bcd4;
|
||||
|
||||
--border-primary: #e0e0e0;
|
||||
--surface-hover: #f5f5f5;
|
||||
--surface-active: #eeeeee;
|
||||
|
||||
--shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
|
||||
--shadow-md: 0 2px 6px rgba(0, 0, 0, 0.15);
|
||||
--shadow-lg: 0 4px 12px rgba(0, 0, 0, 0.2);
|
||||
|
||||
--font-heading: 'Inter', sans-serif;
|
||||
--font-body: 'Inter', sans-serif;
|
||||
--font-mono: 'Roboto Mono', monospace;
|
||||
}
|
||||
|
||||
|
||||
/* One Dark Theme - VS Code's beloved dark theme */
|
||||
.theme-muteddark,
|
||||
html[data-theme='muteddark'] {
|
||||
--bg-primary: #282c34;
|
||||
--bg-secondary: #21252b;
|
||||
--bg-tertiary: #2c313a;
|
||||
|
||||
--text-primary: #abb2bf;
|
||||
--text-secondary: #a2abc9;
|
||||
--text-tertiary: #5c6370;
|
||||
|
||||
--color-primary: #e8ef61;
|
||||
--color-primary-hover: #f1f86d;
|
||||
--color-primary-dark: #e1e956;
|
||||
|
||||
--color-success: #98c379;
|
||||
--color-warning: #e5c07b;
|
||||
--color-error: #e06c75;
|
||||
--color-info: #61afef;
|
||||
|
||||
--color-purple: #c678dd;
|
||||
--color-pink: #e06c75;
|
||||
|
||||
--border-primary: #3e4451;
|
||||
--surface-hover: #2c313a;
|
||||
--surface-active: #3e4451;
|
||||
|
||||
--shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
|
||||
--shadow-md: 0 4px 8px rgba(0, 0, 0, 0.4);
|
||||
--shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.5);
|
||||
|
||||
--font-heading: 'Open Sans', sans-serif;
|
||||
--font-body: 'Source Code Pro', monospace;
|
||||
--font-mono: 'Source Code Pro', monospace;
|
||||
}
|
||||
|
||||
/* Solarized Theme - The scientifically designed color scheme */
|
||||
.theme-solarized,
|
||||
html[data-theme='solarized'] {
|
||||
--bg-primary: #002b36;
|
||||
--bg-secondary: #073642;
|
||||
--bg-tertiary: #033947;
|
||||
|
||||
--text-primary: #839496;
|
||||
--text-secondary: #93a1a1;
|
||||
--text-tertiary: #657b83;
|
||||
|
||||
--color-primary: #268bd2;
|
||||
--color-primary-hover: #4ba3e2;
|
||||
--color-primary-dark: #1e73a9;
|
||||
|
||||
--color-success: #859900;
|
||||
--color-warning: #b58900;
|
||||
--color-error: #dc322f;
|
||||
--color-info: #268bd2;
|
||||
|
||||
--color-purple: #6c71c4;
|
||||
--color-pink: #d33682;
|
||||
|
||||
--border-primary: #586e75;
|
||||
--surface-hover: #073642;
|
||||
--surface-active: #586e75;
|
||||
|
||||
--shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.2);
|
||||
--shadow-md: 0 4px 8px rgba(0, 0, 0, 0.3);
|
||||
--shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.4);
|
||||
|
||||
--font-heading: 'Lato', sans-serif;
|
||||
--font-body: 'Inconsolata', monospace;
|
||||
--font-mono: 'Inconsolata', monospace;
|
||||
}
|
||||
@@ -0,0 +1,76 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>404 - Page Not Found | IP Calculator</title>
|
||||
<style>
|
||||
:root {
|
||||
--bg-primary: #1a1b23;
|
||||
--text-primary: #e8e9ed;
|
||||
--text-secondary: #9ca3af;
|
||||
--color-primary: #e3ed70;
|
||||
--border-primary: #374151;
|
||||
--radius-lg: 0.75rem;
|
||||
--spacing-lg: 2rem;
|
||||
--spacing-md: 1rem;
|
||||
}
|
||||
* { margin: 0; padding: 0; box-sizing: border-box; }
|
||||
body {
|
||||
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
|
||||
background: var(--bg-primary);
|
||||
color: var(--text-primary);
|
||||
min-height: 100vh;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: var(--spacing-md);
|
||||
}
|
||||
.container {
|
||||
text-align: center;
|
||||
max-width: 400px;
|
||||
padding: var(--spacing-lg);
|
||||
border: 1px solid var(--border-primary);
|
||||
border-radius: var(--radius-lg);
|
||||
background: rgba(255, 255, 255, 0.02);
|
||||
}
|
||||
.icon {
|
||||
width: 4rem;
|
||||
height: 4rem;
|
||||
margin: 0 auto var(--spacing-md);
|
||||
fill: var(--color-primary);
|
||||
}
|
||||
h1 {
|
||||
font-size: 2rem;
|
||||
margin-bottom: 0.5rem;
|
||||
color: var(--text-primary);
|
||||
}
|
||||
p {
|
||||
color: var(--text-secondary);
|
||||
margin-bottom: var(--spacing-md);
|
||||
line-height: 1.5;
|
||||
}
|
||||
a {
|
||||
display: inline-block;
|
||||
background: var(--color-primary);
|
||||
color: var(--bg-primary);
|
||||
padding: 0.75rem 1.5rem;
|
||||
border-radius: 0.5rem;
|
||||
text-decoration: none;
|
||||
font-weight: 500;
|
||||
transition: opacity 0.2s;
|
||||
}
|
||||
a:hover { opacity: 0.9; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="container">
|
||||
<svg class="icon" viewBox="0 0 640 640">
|
||||
<path d="M192 160C192 142.3 206.3 128 224 128L416 128C433.7 128 448 142.3 448 160L448 192L480 192C497.7 192 512 206.3 512 224L512 256L544 256C561.7 256 576 270.3 576 288L576 480C576 497.7 561.7 512 544 512L96 512C78.3 512 64 497.7 64 480L64 288C64 270.3 78.3 256 96 256L128 256L128 224C128 206.3 142.3 192 160 192L192 192L192 160z"/>
|
||||
</svg>
|
||||
<h1>404</h1>
|
||||
<p>Page not found. The application failed to load or the requested page doesn't exist.</p>
|
||||
<a href="/">Return Home</a>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 1.1 KiB |
+8
-2
@@ -30,7 +30,10 @@ function getAdapter() {
|
||||
case 'netlify':
|
||||
return adapterNetlify();
|
||||
case 'static':
|
||||
return adapterStatic();
|
||||
return adapterStatic({
|
||||
strict: false,
|
||||
fallback: '404.html',
|
||||
});
|
||||
case 'auto':
|
||||
return adapterAuto();
|
||||
default:
|
||||
@@ -66,7 +69,10 @@ function getAdapter() {
|
||||
const config = {
|
||||
preprocess: vitePreprocess(),
|
||||
kit: {
|
||||
adapter: getAdapter()
|
||||
adapter: getAdapter(),
|
||||
paths: {
|
||||
base: process.env.BASE_PATH || '',
|
||||
},
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user