From 116fcb63397776a241a63fa9605a1583b684f972 Mon Sep 17 00:00:00 2001 From: AlexNg Date: Sun, 24 Mar 2024 17:27:40 +0800 Subject: [PATCH] chore: Add GPL license header --- client/index.html | 19 +++++++++++++++++++ client/src/components/footer.tsx | 17 +++++++++++++++++ client/src/components/navbar.tsx | 17 +++++++++++++++++ client/src/main.tsx | 17 +++++++++++++++++ client/src/pages/404.tsx | 17 +++++++++++++++++ client/src/pages/root.tsx | 17 +++++++++++++++++ client/src/pages/route-map.tsx | 17 ++++++++++++++++- client/src/styles/globals.css | 14 ++++++++++++++ client/src/vite-env.d.ts | 17 +++++++++++++++++ server/index.ts | 17 +++++++++++++++++ shared/api-types/src/index.ts | 16 ++++++++++++++++ 11 files changed, 184 insertions(+), 1 deletion(-) diff --git a/client/index.html b/client/index.html index ac010324..7fb91e32 100644 --- a/client/index.html +++ b/client/index.html @@ -1,3 +1,22 @@ + + diff --git a/client/src/components/footer.tsx b/client/src/components/footer.tsx index 2db37624..8a9661b8 100644 --- a/client/src/components/footer.tsx +++ b/client/src/components/footer.tsx @@ -1,3 +1,20 @@ +// Footer component for the Frontend App +// +// Copyright (C) 2024 Ng Jun Xiang . +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + import * as React from 'react'; import { Location } from 'react-router-dom'; diff --git a/client/src/components/navbar.tsx b/client/src/components/navbar.tsx index 3b388430..d211c9bd 100644 --- a/client/src/components/navbar.tsx +++ b/client/src/components/navbar.tsx @@ -1,3 +1,20 @@ +// Navbar component for the Frontend App +// +// Copyright (C) 2024 Ng Jun Xiang . +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + import * as React from 'react'; import { Location } from 'react-router-dom'; diff --git a/client/src/main.tsx b/client/src/main.tsx index 28a85b40..d89fc07b 100644 --- a/client/src/main.tsx +++ b/client/src/main.tsx @@ -1,3 +1,20 @@ +// Frontend App +// +// Copyright (C) 2024 Ng Jun Xiang . +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + import * as React from 'react'; import ReactDOM from 'react-dom/client'; import { useLocation, Route, Routes, BrowserRouter } from 'react-router-dom'; diff --git a/client/src/pages/404.tsx b/client/src/pages/404.tsx index 5a0bde5a..5d5807ae 100644 --- a/client/src/pages/404.tsx +++ b/client/src/pages/404.tsx @@ -1,3 +1,20 @@ +// 404 page for the Frontend App +// +// Copyright (C) 2024 Ng Jun Xiang . +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + import type { PageComponent } from '@pages/route-map'; const NotFound: PageComponent = () => { diff --git a/client/src/pages/root.tsx b/client/src/pages/root.tsx index 8614c580..5f82d763 100644 --- a/client/src/pages/root.tsx +++ b/client/src/pages/root.tsx @@ -1,3 +1,20 @@ +// Root page for the Frontend App +// +// Copyright (C) 2024 Ng Jun Xiang . +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + import type { PageComponent } from '@pages/route-map'; const RootPage: PageComponent = () => { diff --git a/client/src/pages/route-map.tsx b/client/src/pages/route-map.tsx index db3595be..f29812a0 100644 --- a/client/src/pages/route-map.tsx +++ b/client/src/pages/route-map.tsx @@ -1,4 +1,19 @@ -// This is the root-level final page mapping +// Top-level route mapping for Frontend App +// +// Copyright (C) 2024 Ng Jun Xiang . +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . import * as React from 'react'; diff --git a/client/src/styles/globals.css b/client/src/styles/globals.css index b5c61c95..e984341e 100644 --- a/client/src/styles/globals.css +++ b/client/src/styles/globals.css @@ -1,3 +1,17 @@ +/** + * Global styles for the Frontend App + * + * Copyright (C) 2024 Ng Jun Xiang . + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + @tailwind base; @tailwind components; @tailwind utilities; diff --git a/client/src/vite-env.d.ts b/client/src/vite-env.d.ts index 11f02fe2..cd5bb2bd 100644 --- a/client/src/vite-env.d.ts +++ b/client/src/vite-env.d.ts @@ -1 +1,18 @@ +// Frontend App +// +// Copyright (C) 2024 Ng Jun Xiang . +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + /// diff --git a/server/index.ts b/server/index.ts index 05961506..61d131db 100644 --- a/server/index.ts +++ b/server/index.ts @@ -1,3 +1,20 @@ +// Backend API +// +// Copyright (C) 2024 Ng Jun Xiang . +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + import express from 'express'; const app = express(); diff --git a/shared/api-types/src/index.ts b/shared/api-types/src/index.ts index e69de29b..0d081831 100644 --- a/shared/api-types/src/index.ts +++ b/shared/api-types/src/index.ts @@ -0,0 +1,16 @@ +// Shared API Types +// +// Copyright (C) 2024 Ng Jun Xiang +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see .