From de84e45fb37e336c5731d51e508a4b3d68f518af Mon Sep 17 00:00:00 2001 From: Stefan Koelle Date: Sun, 9 Aug 2026 16:00:44 +0200 Subject: [PATCH] LICENSE --- AGENTS.md | 6 ++++++ Controllers/FocusTasksController.cs | 2 ++ Data/FocusContext.cs | 2 ++ Dockerfile | 1 + LICENSE | 21 +++++++++++++++++++++ Models/Dtos.cs | 2 ++ Models/FocusTask.cs | 2 ++ Program.cs | 2 ++ README.md | 6 ++++-- client/src/App.tsx | 2 ++ client/src/api.ts | 2 ++ client/src/components/TaskCard.tsx | 2 ++ client/src/components/TaskForm.tsx | 2 ++ client/src/main.tsx | 2 ++ client/src/types.ts | 2 ++ client/src/vite-env.d.ts | 2 ++ client/vite.config.ts | 2 ++ 17 files changed, 58 insertions(+), 2 deletions(-) create mode 100644 LICENSE diff --git a/AGENTS.md b/AGENTS.md index 2b913e9..5e1c207 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -8,3 +8,9 @@ ## Docker - Nach Aenderungen am `Dockerfile` oder `docker-compose.yml` immer `docker build .` ausfuehren + +## License + +MIT License - Copyright (c) 2026 Stefan Koelle (https://stefankoelle.de) +- Full text in `LICENSE` +- License headers in all source code files diff --git a/Controllers/FocusTasksController.cs b/Controllers/FocusTasksController.cs index 143844f..9400fe6 100644 --- a/Controllers/FocusTasksController.cs +++ b/Controllers/FocusTasksController.cs @@ -1,3 +1,5 @@ +// Copyright (c) 2026 Stefan Koelle (https://stefankoelle.de) +// Licensed under the MIT License. See LICENSE file in project root for details. using FocusApp.Data; using FocusApp.Models; using Microsoft.AspNetCore.Mvc; diff --git a/Data/FocusContext.cs b/Data/FocusContext.cs index 978d6dc..3bd27fe 100644 --- a/Data/FocusContext.cs +++ b/Data/FocusContext.cs @@ -1,3 +1,5 @@ +// Copyright (c) 2026 Stefan Koelle (https://stefankoelle.de) +// Licensed under the MIT License. See LICENSE file in project root for details. using FocusApp.Models; using Microsoft.EntityFrameworkCore; diff --git a/Dockerfile b/Dockerfile index b23a465..2e78622 100644 --- a/Dockerfile +++ b/Dockerfile @@ -19,6 +19,7 @@ RUN dotnet publish FocusApp.csproj -c Release -o /app/publish --no-restore -p:Sk FROM mcr.microsoft.com/dotnet/aspnet:10.0 AS runtime WORKDIR /app COPY --from=build /app/publish . +COPY LICENSE . EXPOSE 5000 ENV ASPNETCORE_URLS=http://0.0.0.0:5000 ENV ASPNETCORE_ENVIRONMENT=Production diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..3556447 --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2026 Stefan Koelle (https://stefankoelle.de) + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/Models/Dtos.cs b/Models/Dtos.cs index 1e26f6a..d57327d 100644 --- a/Models/Dtos.cs +++ b/Models/Dtos.cs @@ -1,3 +1,5 @@ +// Copyright (c) 2026 Stefan Koelle (https://stefankoelle.de) +// Licensed under the MIT License. See LICENSE file in project root for details. namespace FocusApp.Models; public class CreateTaskDto diff --git a/Models/FocusTask.cs b/Models/FocusTask.cs index ca6f12c..034be3a 100644 --- a/Models/FocusTask.cs +++ b/Models/FocusTask.cs @@ -1,3 +1,5 @@ +// Copyright (c) 2026 Stefan Koelle (https://stefankoelle.de) +// Licensed under the MIT License. See LICENSE file in project root for details. namespace FocusApp.Models; public class FocusTask diff --git a/Program.cs b/Program.cs index ccbac10..6cc1079 100644 --- a/Program.cs +++ b/Program.cs @@ -1,3 +1,5 @@ +// Copyright (c) 2026 Stefan Koelle (https://stefankoelle.de) +// Licensed under the MIT License. See LICENSE file in project root for details. using FocusApp.Data; using Microsoft.EntityFrameworkCore; using Microsoft.Extensions.FileProviders; diff --git a/README.md b/README.md index 1316682..1325045 100644 --- a/README.md +++ b/README.md @@ -324,5 +324,7 @@ server { --- -**Version:** 2.0.0 -**Letzte Aktualisierung:** 09. August 2026 +## License + +Licensed under the [MIT License](LICENSE) - Copyright (c) 2026 Stefan Koelle (https://stefankoelle.de) + diff --git a/client/src/App.tsx b/client/src/App.tsx index 4bfaad2..3c880ae 100644 --- a/client/src/App.tsx +++ b/client/src/App.tsx @@ -1,3 +1,5 @@ +// Copyright (c) 2026 Stefan Koelle (https://stefankoelle.de) +// Licensed under the MIT License. See LICENSE file in project root for details. import React, { useState, useEffect } from 'react'; import { DragDropContext, Droppable, Draggable, DropResult } from '@hello-pangea/dnd'; import { focusTaskApi } from './api'; diff --git a/client/src/api.ts b/client/src/api.ts index 2467732..418064e 100644 --- a/client/src/api.ts +++ b/client/src/api.ts @@ -1,3 +1,5 @@ +// Copyright (c) 2026 Stefan Koelle (https://stefankoelle.de) +// Licensed under the MIT License. See LICENSE file in project root for details. import axios from 'axios'; import { FocusTask, CreateTaskDto, UpdateTaskDto } from './types'; diff --git a/client/src/components/TaskCard.tsx b/client/src/components/TaskCard.tsx index c258550..5edc76f 100644 --- a/client/src/components/TaskCard.tsx +++ b/client/src/components/TaskCard.tsx @@ -1,3 +1,5 @@ +// Copyright (c) 2026 Stefan Koelle (https://stefankoelle.de) +// Licensed under the MIT License. See LICENSE file in project root for details. import React, { useState, useEffect } from 'react'; import { FocusTask } from '../types'; import './TaskCard.css'; diff --git a/client/src/components/TaskForm.tsx b/client/src/components/TaskForm.tsx index 6c4caca..75fd5ea 100644 --- a/client/src/components/TaskForm.tsx +++ b/client/src/components/TaskForm.tsx @@ -1,3 +1,5 @@ +// Copyright (c) 2026 Stefan Koelle (https://stefankoelle.de) +// Licensed under the MIT License. See LICENSE file in project root for details. import React, { useState } from 'react'; import './TaskForm.css'; diff --git a/client/src/main.tsx b/client/src/main.tsx index c4c5b6d..554410d 100644 --- a/client/src/main.tsx +++ b/client/src/main.tsx @@ -1,3 +1,5 @@ +// Copyright (c) 2026 Stefan Koelle (https://stefankoelle.de) +// Licensed under the MIT License. See LICENSE file in project root for details. import React from 'react' import ReactDOM from 'react-dom/client' import App from './App' diff --git a/client/src/types.ts b/client/src/types.ts index acfde29..82a6b95 100644 --- a/client/src/types.ts +++ b/client/src/types.ts @@ -1,3 +1,5 @@ +// Copyright (c) 2026 Stefan Koelle (https://stefankoelle.de) +// Licensed under the MIT License. See LICENSE file in project root for details. export interface FocusTask { id: number; title: string; diff --git a/client/src/vite-env.d.ts b/client/src/vite-env.d.ts index 11f02fe..f0bdea3 100644 --- a/client/src/vite-env.d.ts +++ b/client/src/vite-env.d.ts @@ -1 +1,3 @@ +// Copyright (c) 2026 Stefan Koelle (https://stefankoelle.de) +// Licensed under the MIT License. See LICENSE file in project root for details. /// diff --git a/client/vite.config.ts b/client/vite.config.ts index 327eafc..42ecca7 100644 --- a/client/vite.config.ts +++ b/client/vite.config.ts @@ -1,3 +1,5 @@ +// Copyright (c) 2026 Stefan Koelle (https://stefankoelle.de) +// Licensed under the MIT License. See LICENSE file in project root for details. import { defineConfig } from 'vite' import react from '@vitejs/plugin-react'