From ed9ce05ac06fccc28526ccfe9cb12e29b00175e9 Mon Sep 17 00:00:00 2001 From: arabcoders Date: Fri, 17 Oct 2025 17:21:21 +0300 Subject: [PATCH] [FEAT] Added checkbox in task add page to directly archive all items in a task. --- CONTRIBUTING.md | 6 +++++- ui/.env.example | 2 ++ ui/app/components/TaskForm.vue | 27 +++++++++++++++++++++++++-- ui/app/pages/tasks.vue | 28 +++++++++++++++++++++------- 4 files changed, 53 insertions(+), 10 deletions(-) create mode 100644 ui/.env.example diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 012559a2..6386594d 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -223,13 +223,17 @@ cd ui pnpm install ``` +> [!NOTE] +> Create a `.env` file in the `ui/` directory based on `.env.example` to configure environment variables. +> to link the frontend to the backend API. + 3. **Run the frontend development server:** ```bash pnpm dev ``` -The frontend will be available at `http://localhost:3000` (or the port shown in the terminal) +The frontend will be available at `http://localhost:8082` (or the port shown in the terminal) 4. **Verify the setup:** diff --git a/ui/.env.example b/ui/.env.example new file mode 100644 index 00000000..0aa72bd5 --- /dev/null +++ b/ui/.env.example @@ -0,0 +1,2 @@ +NUXT_API_URL="http://localhost:8081/api/" +NUXT_PUBLIC_WSS=":8081/" diff --git a/ui/app/components/TaskForm.vue b/ui/app/components/TaskForm.vue index 157d5499..e05ac89a 100644 --- a/ui/app/components/TaskForm.vue +++ b/ui/app/components/TaskForm.vue @@ -231,6 +231,28 @@ +
+
+ +
+ + +
+ + + + If enabled, all existing items in the feed will be marked as downloaded after adding the task. + + +
+
+