From 3102fa1be90c77e2a105c7ab9f6109ed4dbaf403 Mon Sep 17 00:00:00 2001 From: Bernd Storath <32197462+kaaax0815@users.noreply.github.com> Date: Mon, 3 Mar 2025 13:23:28 +0100 Subject: [PATCH] Chore: TODOs (#1695) * verify setup step * improve readme * format todos * move id * remove objectMessage * style array field --- README.md | 71 ++++++++++++------- src/app/components/Form/ArrayField.vue | 31 ++++---- src/app/components/Ui/Footer.vue | 2 +- src/app/pages/index.vue | 2 - src/i18n/locales/en.json | 4 +- src/server/api/session.post.ts | 2 +- src/server/api/setup/2.post.ts | 5 +- src/server/api/setup/4.post.ts | 5 +- src/server/api/setup/migrate.post.ts | 2 +- .../database/repositories/client/service.ts | 3 +- .../database/repositories/general/types.ts | 2 +- .../repositories/oneTimeLink/service.ts | 1 - .../repositories/oneTimeLink/types.ts | 9 +-- .../database/repositories/user/service.ts | 1 - .../database/repositories/user/types.ts | 48 +++++-------- src/server/database/schema.ts | 3 - src/server/middleware/setup.ts | 2 +- src/server/utils/WireGuard.ts | 1 - src/server/utils/handler.ts | 29 ++++++++ src/server/utils/session.ts | 1 - src/server/utils/types.ts | 14 ++-- 21 files changed, 133 insertions(+), 105 deletions(-) diff --git a/README.md b/README.md index 62dc31dc..9c5c29dd 100644 --- a/README.md +++ b/README.md @@ -1,13 +1,16 @@ # WireGuard Easy -[![Build & Publish Docker Image to Docker Hub](https://github.com/wg-easy/wg-easy/actions/workflows/deploy.yml/badge.svg?branch=production)](https://github.com/wg-easy/wg-easy/actions/workflows/deploy.yml) +[![Build & Publish latest Image](https://github.com/wg-easy/wg-easy/actions/workflows/deploy.yml/badge.svg?branch=production)](https://github.com/wg-easy/wg-easy/actions/workflows/deploy.yml) [![Lint](https://github.com/wg-easy/wg-easy/actions/workflows/lint.yml/badge.svg?branch=master)](https://github.com/wg-easy/wg-easy/actions/workflows/lint.yml) -![Docker](https://img.shields.io/docker/pulls/weejewel/wg-easy.svg) -[![Sponsor](https://img.shields.io/github/sponsors/weejewel)](https://github.com/sponsors/WeeJeWel) -![GitHub Stars](https://img.shields.io/github/stars/wg-easy/wg-easy) +[![GitHub Stars](https://img.shields.io/github/stars/wg-easy/wg-easy)](https://github.com/wg-easy/wg-easy/stargazers) +[![License](https://img.shields.io/github/license/wg-easy/wg-easy)](LICENSE) +[![GitHub Release](https://img.shields.io/github/v/release/wg-easy/wg-easy)](https://github.com/wg-easy/wg-easy/releases/latest) +[![Image Pulls](https://img.shields.io/badge/image_pulls-11M-blue)](https://github.com/wg-easy/wg-easy/pkgs/container/wg-easy) You have found the easiest way to install & manage WireGuard on any Linux host! + +

@@ -24,10 +27,12 @@ You have found the easiest way to install & manage WireGuard on any Linux host! - Gravatar support. - Automatic Light / Dark Mode - Multilanguage Support -- Traffic Stats (default off) -- One Time Links (default off) -- Client Expiration (default off) -- Prometheus metrics support (default off) +- Traffic Stats +- One Time Links +- Client Expiration +- Prometheus metrics support +- IPv6 support +- CIDR support ## Requirements @@ -40,14 +45,14 @@ You have found the easiest way to install & manage WireGuard on any Linux host! We offer multiple Docker image tags to suit your needs. The table below is in a particular order, with the first tag being the most recommended: -| tag | Branch | Example | Description | -| ------------- | ------------------------------------------------------------------ | ------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------ | -| `15` | latest minor for that major tag | `ghcr.io/wg-easy/wg-easy:15` | latest features for specific major versions, no breaking changes | -| `latest` | latest tag | `ghcr.io/wg-easy/wg-easy:latest` or `ghcr.io/wg-easy/wg-easy` | stable as possible get bug fixes quickly when needed, see Releases for more information. | -| `15.0` | latest patch for that minor tag | `ghcr.io/wg-easy/wg-easy:15.0` | latest patches for specific minor version | -| `15.0.0` | specific tag | `ghcr.io/wg-easy/wg-easy:15.0.0` | specific release, don't use this as this will not get updated | -| `nightly` | [`master`](https://github.com/wg-easy/wg-easy/tree/master) | `ghcr.io/wg-easy/wg-easy:nightly` | mostly unstable gets frequent package and code updates, deployed against [`master`](https://github.com/wg-easy/wg-easy/tree/master). | -| `development` | pull requests | `ghcr.io/wg-easy/wg-easy:development` | used for development, testing code from PRs before landing into [`master`](https://github.com/wg-easy/wg-easy/tree/master). | +| tag | Branch | Example | Description | +| ------------- | ---------------------------------------------------------- | ------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------ | +| `15` | latest minor for that major tag | `ghcr.io/wg-easy/wg-easy:15` | latest features for specific major versions, no breaking changes | +| `latest` | latest tag | `ghcr.io/wg-easy/wg-easy:latest` or `ghcr.io/wg-easy/wg-easy` | stable as possible get bug fixes quickly when needed, see Releases for more information. | +| `15.0` | latest patch for that minor tag | `ghcr.io/wg-easy/wg-easy:15.0` | latest patches for specific minor version | +| `15.0.0` | specific tag | `ghcr.io/wg-easy/wg-easy:15.0.0` | specific release, don't use this as this will not get updated | +| `nightly` | [`master`](https://github.com/wg-easy/wg-easy/tree/master) | `ghcr.io/wg-easy/wg-easy:nightly` | mostly unstable gets frequent package and code updates, deployed against [`master`](https://github.com/wg-easy/wg-easy/tree/master). | +| `development` | pull requests | `ghcr.io/wg-easy/wg-easy:development` | used for development, testing code from PRs before landing into [`master`](https://github.com/wg-easy/wg-easy/tree/master). | ## Installation @@ -65,8 +70,16 @@ And log in again. ### 2. Run WireGuard Easy - +The easiest way to run WireGuard Easy is with Docker Compose. + +Just download [`docker-compose.yml`](docker-compose.yml), make necessary adjustments and +execute `docker compose up -d`. + +The Web UI will now be available on `http://0.0.0.0:51821`. + + + ### 3. Sponsor -Are you enjoying this project? [Buy Emile a beer!](https://github.com/sponsors/WeeJeWel) ๐Ÿป +Are you enjoying this project? Consider donating. + +Founder: [Buy Emile a beer!](https://github.com/sponsors/WeeJeWel) ๐Ÿป + +Maintainer: [Buy kaaax0815 a coffee!](https://github.com/sponsors/kaaax0815) โ˜• + + + ## License -This project is licensed under the AGPL-3.0-only License - see the LICENSE file for details +This project is licensed under the AGPL-3.0-only License - see the [LICENSE](LICENSE) file for details This project is not affiliated, associated, authorized, endorsed by, or in any way officially connected with Jason A. Donenfeld, ZX2C4 or Edge Security diff --git a/src/app/components/Form/ArrayField.vue b/src/app/components/Form/ArrayField.vue index 10a549e7..f6bdaa01 100644 --- a/src/app/components/Form/ArrayField.vue +++ b/src/app/components/Form/ArrayField.vue @@ -1,25 +1,32 @@