mirror of
https://github.com/lissy93/networking-toolbox.git
synced 2026-11-30 09:00:34 +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
|
||||
Reference in new issue
Block a user