Skip to content
This repository has been archived by the owner on Sep 29, 2024. It is now read-only.

Update license #27

Merged
merged 2 commits into from
Mar 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CITATION.cff
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ cff-version: 1.2.0
date-released: yyyy-mm-dd
keywords:
-
license: MIT
license: GPL-3.0+
message: If you use this software, please cite it using these metadata.
repository-code: https://github.com/caffeine-addictt/nyp_y2_fullstack
title: thread
Expand Down
696 changes: 675 additions & 21 deletions LICENSE

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ You can test locally by running `npm run test` in the root of the project.

## License

Distributed under the MIT License. See [LICENSE.txt](./LICENSE.txt) for more information.
Distributed under the GNU General Public License version 3.0. See [LICENSE.txt](./LICENSE.txt) for more information.

<p align="right">(<a href="#readme-top">back to top</a>)</p>

Expand Down
19 changes: 19 additions & 0 deletions client/index.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,22 @@
<!--
Shared API Types

Copyright (C) 2024 Ng Jun Xiang <[email protected]>.

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 <http://www.gnu.org/licenses/>.
-->

<!doctype html>
<html lang="en">
<head>
Expand Down
17 changes: 17 additions & 0 deletions client/src/components/footer.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
// Footer component for the Frontend App
//
// Copyright (C) 2024 Ng Jun Xiang <[email protected]>.
//
// 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 <http://www.gnu.org/licenses/>.

import * as React from 'react';
import { Location } from 'react-router-dom';

Expand Down
17 changes: 17 additions & 0 deletions client/src/components/navbar.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
// Navbar component for the Frontend App
//
// Copyright (C) 2024 Ng Jun Xiang <[email protected]>.
//
// 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 <http://www.gnu.org/licenses/>.

import * as React from 'react';
import { Location } from 'react-router-dom';

Expand Down
17 changes: 17 additions & 0 deletions client/src/main.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
// Frontend App
//
// Copyright (C) 2024 Ng Jun Xiang <[email protected]>.
//
// 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 <http://www.gnu.org/licenses/>.

import * as React from 'react';
import ReactDOM from 'react-dom/client';
import { useLocation, Route, Routes, BrowserRouter } from 'react-router-dom';
Expand Down
17 changes: 17 additions & 0 deletions client/src/pages/404.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
// 404 page for the Frontend App
//
// Copyright (C) 2024 Ng Jun Xiang <[email protected]>.
//
// 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 <http://www.gnu.org/licenses/>.

import type { PageComponent } from '@pages/route-map';

const NotFound: PageComponent = () => {
Expand Down
17 changes: 17 additions & 0 deletions client/src/pages/root.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
// Root page for the Frontend App
//
// Copyright (C) 2024 Ng Jun Xiang <[email protected]>.
//
// 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 <http://www.gnu.org/licenses/>.

import type { PageComponent } from '@pages/route-map';

const RootPage: PageComponent = () => {
Expand Down
17 changes: 16 additions & 1 deletion client/src/pages/route-map.tsx
Original file line number Diff line number Diff line change
@@ -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 <[email protected]>.
//
// 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 <http://www.gnu.org/licenses/>.

import * as React from 'react';

Expand Down
14 changes: 14 additions & 0 deletions client/src/styles/globals.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
/**
* Global styles for the Frontend App
*
* Copyright (C) 2024 Ng Jun Xiang <[email protected]>.
*
* 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 <http://www.gnu.org/licenses/>.
*/

@tailwind base;
@tailwind components;
@tailwind utilities;
17 changes: 17 additions & 0 deletions client/src/vite-env.d.ts
Original file line number Diff line number Diff line change
@@ -1 +1,18 @@
// Frontend App
//
// Copyright (C) 2024 Ng Jun Xiang <[email protected]>.
//
// 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 <http://www.gnu.org/licenses/>.

/// <reference types="vite/client" />
17 changes: 17 additions & 0 deletions server/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
// Backend API
//
// Copyright (C) 2024 Ng Jun Xiang <[email protected]>.
//
// 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 <http://www.gnu.org/licenses/>.

import express from 'express';
const app = express();

Expand Down
16 changes: 16 additions & 0 deletions shared/api-types/src/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
// Shared API Types
//
// Copyright (C) 2024 Ng Jun Xiang <[email protected]>
//
// 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 <http://www.gnu.org/licenses/>.