From 580ac086ef9d3a3c2a5bfbfce778362249588564 Mon Sep 17 00:00:00 2001 From: yassinedorbozgithub Date: Mon, 30 Sep 2024 15:52:28 +0100 Subject: [PATCH] fix(frontend): add copyright headers --- frontend/src/contexts/apiClient.context.tsx | 8 ++++++++ frontend/src/contexts/auth.context.tsx | 8 ++++++++ frontend/src/contexts/config.context.tsx | 8 ++++++++ frontend/src/contexts/permission.context.tsx | 8 ++++++++ frontend/src/contexts/setting.context.tsx | 8 ++++++++ frontend/src/hooks/useConfig.ts | 8 ++++++++ 6 files changed, 48 insertions(+) diff --git a/frontend/src/contexts/apiClient.context.tsx b/frontend/src/contexts/apiClient.context.tsx index 1ff9f31..a3fbeeb 100644 --- a/frontend/src/contexts/apiClient.context.tsx +++ b/frontend/src/contexts/apiClient.context.tsx @@ -1,3 +1,11 @@ +/* + * Copyright © 2024 Hexastack. All rights reserved. + * + * Licensed under the GNU Affero General Public License v3.0 (AGPLv3) with the following additional terms: + * 1. The name "Hexabot" is a trademark of Hexastack. You may not use this name in derivative works without express written permission. + * 2. All derivative works must include clear attribution to the original creator and software, Hexastack and Hexabot, in a prominent location (e.g., in the software's "About" section, documentation, and README file). + */ + import axios from "axios"; import { createContext, ReactNode, FC } from "react"; diff --git a/frontend/src/contexts/auth.context.tsx b/frontend/src/contexts/auth.context.tsx index 7ef312b..f908a06 100644 --- a/frontend/src/contexts/auth.context.tsx +++ b/frontend/src/contexts/auth.context.tsx @@ -1,3 +1,11 @@ +/* + * Copyright © 2024 Hexastack. All rights reserved. + * + * Licensed under the GNU Affero General Public License v3.0 (AGPLv3) with the following additional terms: + * 1. The name "Hexabot" is a trademark of Hexastack. You may not use this name in derivative works without express written permission. + * 2. All derivative works must include clear attribution to the original creator and software, Hexastack and Hexabot, in a prominent location (e.g., in the software's "About" section, documentation, and README file). + */ + import getConfig from "next/config"; import { useRouter } from "next/router"; import { useState, useEffect, createContext, ReactNode } from "react"; diff --git a/frontend/src/contexts/config.context.tsx b/frontend/src/contexts/config.context.tsx index 8810d35..d84f28e 100644 --- a/frontend/src/contexts/config.context.tsx +++ b/frontend/src/contexts/config.context.tsx @@ -1,3 +1,11 @@ +/* + * Copyright © 2024 Hexastack. All rights reserved. + * + * Licensed under the GNU Affero General Public License v3.0 (AGPLv3) with the following additional terms: + * 1. The name "Hexabot" is a trademark of Hexastack. You may not use this name in derivative works without express written permission. + * 2. All derivative works must include clear attribution to the original creator and software, Hexastack and Hexabot, in a prominent location (e.g., in the software's "About" section, documentation, and README file). + */ + import { useState, useEffect, createContext } from "react"; export const ConfigContext = createContext(null); diff --git a/frontend/src/contexts/permission.context.tsx b/frontend/src/contexts/permission.context.tsx index 3c51438..46cc417 100644 --- a/frontend/src/contexts/permission.context.tsx +++ b/frontend/src/contexts/permission.context.tsx @@ -1,3 +1,11 @@ +/* + * Copyright © 2024 Hexastack. All rights reserved. + * + * Licensed under the GNU Affero General Public License v3.0 (AGPLv3) with the following additional terms: + * 1. The name "Hexabot" is a trademark of Hexastack. You may not use this name in derivative works without express written permission. + * 2. All derivative works must include clear attribution to the original creator and software, Hexastack and Hexabot, in a prominent location (e.g., in the software's "About" section, documentation, and README file). + */ + import { createContext, ReactNode, useCallback, useMemo } from "react"; import { Progress } from "@/app-components/displays/Progress"; diff --git a/frontend/src/contexts/setting.context.tsx b/frontend/src/contexts/setting.context.tsx index 33abc30..a047c21 100644 --- a/frontend/src/contexts/setting.context.tsx +++ b/frontend/src/contexts/setting.context.tsx @@ -1,3 +1,11 @@ +/* + * Copyright © 2024 Hexastack. All rights reserved. + * + * Licensed under the GNU Affero General Public License v3.0 (AGPLv3) with the following additional terms: + * 1. The name "Hexabot" is a trademark of Hexastack. You may not use this name in derivative works without express written permission. + * 2. All derivative works must include clear attribution to the original creator and software, Hexastack and Hexabot, in a prominent location (e.g., in the software's "About" section, documentation, and README file). + */ + import { createContext, ReactNode } from "react"; import { Progress } from "@/app-components/displays/Progress"; diff --git a/frontend/src/hooks/useConfig.ts b/frontend/src/hooks/useConfig.ts index ccfd57f..0179511 100644 --- a/frontend/src/hooks/useConfig.ts +++ b/frontend/src/hooks/useConfig.ts @@ -1,3 +1,11 @@ +/* + * Copyright © 2024 Hexastack. All rights reserved. + * + * Licensed under the GNU Affero General Public License v3.0 (AGPLv3) with the following additional terms: + * 1. The name "Hexabot" is a trademark of Hexastack. You may not use this name in derivative works without express written permission. + * 2. All derivative works must include clear attribution to the original creator and software, Hexastack and Hexabot, in a prominent location (e.g., in the software's "About" section, documentation, and README file). + */ + import { useContext } from "react"; import { ConfigContext } from "@/contexts/config.context";