Skip to content

Commit

Permalink
[frontend] Add SPDX header to Web UI files
Browse files Browse the repository at this point in the history
  • Loading branch information
LordTermor committed Mar 2, 2024
1 parent 18c09df commit 93e2109
Show file tree
Hide file tree
Showing 29 changed files with 181 additions and 4 deletions.
8 changes: 7 additions & 1 deletion frontend/src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
/* === This file is part of bxt ===
*
* SPDX-FileCopyrightText: 2023 Artem Grinev <[email protected]>
* SPDX-License-Identifier: AGPL-3.0-or-later
*
*/
import "./App.css";
import MainPage from "./pages/MainPage";

export default (args: any) => {
return <MainPage {...args}></MainPage>;
return <MainPage {...args}></MainPage>;
};
6 changes: 6 additions & 0 deletions frontend/src/components/CommitCard.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/* === This file is part of bxt ===
*
* SPDX-FileCopyrightText: 2023 Artem Grinev <[email protected]>
* SPDX-License-Identifier: AGPL-3.0-or-later
*
*/
import {
faCodeBranch,
faCubes,
Expand Down
6 changes: 6 additions & 0 deletions frontend/src/components/CommitModal.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/* === This file is part of bxt ===
*
* SPDX-FileCopyrightText: 2023 Artem Grinev <[email protected]>
* SPDX-License-Identifier: AGPL-3.0-or-later
*
*/
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
import { Button, Form, Modal, ModalProps, Table } from "react-daisyui";
import {
Expand Down
6 changes: 6 additions & 0 deletions frontend/src/components/ConfirmSyncModal.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/* === This file is part of bxt ===
*
* SPDX-FileCopyrightText: 2023 Artem Grinev <[email protected]>
* SPDX-License-Identifier: AGPL-3.0-or-later
*
*/
import { forwardRef } from "react";
import { Button, Modal } from "react-daisyui";
import { ModalProps } from "react-daisyui/dist/Modal/Modal";
Expand Down
6 changes: 6 additions & 0 deletions frontend/src/components/DrawerLayout.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/* === This file is part of bxt ===
*
* SPDX-FileCopyrightText: 2023 Artem Grinev <[email protected]>
* SPDX-License-Identifier: AGPL-3.0-or-later
*
*/
import { Drawer, Menu, Button, Progress } from "react-daisyui";
import { Link, Outlet, useLocation } from "react-router-dom";
import ConfirmSyncModal from "./ConfirmSyncModal";
Expand Down
6 changes: 6 additions & 0 deletions frontend/src/components/PackageModal.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/* === This file is part of bxt ===
*
* SPDX-FileCopyrightText: 2024 Artem Grinev <[email protected]>
* SPDX-License-Identifier: AGPL-3.0-or-later
*
*/
import { forwardRef } from "react";
import { Badge, Modal, ModalProps, Table } from "react-daisyui";
import { createPortal } from "react-dom";
Expand Down
6 changes: 6 additions & 0 deletions frontend/src/components/SectionLabel.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/* === This file is part of bxt ===
*
* SPDX-FileCopyrightText: 2024 Artem Grinev <[email protected]>
* SPDX-License-Identifier: AGPL-3.0-or-later
*
*/
import {
faCodeBranch,
faCubes,
Expand Down
6 changes: 6 additions & 0 deletions frontend/src/components/SectionSelect.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/* === This file is part of bxt ===
*
* SPDX-FileCopyrightText: 2023 Artem Grinev <[email protected]>
* SPDX-License-Identifier: AGPL-3.0-or-later
*
*/
import Select, {
GroupBase,
SelectComponentsConfig,
Expand Down
6 changes: 6 additions & 0 deletions frontend/src/components/SnapshotAction.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/* === This file is part of bxt ===
*
* SPDX-FileCopyrightText: 2023 Artem Grinev <[email protected]>
* SPDX-License-Identifier: AGPL-3.0-or-later
*
*/
import { faClone } from "@fortawesome/free-solid-svg-icons";
import {
defineFileAction,
Expand Down
6 changes: 6 additions & 0 deletions frontend/src/components/SnapshotModal.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/* === This file is part of bxt ===
*
* SPDX-FileCopyrightText: 2023 Artem Grinev <[email protected]>
* SPDX-License-Identifier: AGPL-3.0-or-later
*
*/
import {
forwardRef,
useCallback,
Expand Down
6 changes: 6 additions & 0 deletions frontend/src/components/UserModal.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/* === This file is part of bxt ===
*
* SPDX-FileCopyrightText: 2024 Artem Grinev <[email protected]>
* SPDX-License-Identifier: AGPL-3.0-or-later
*
*/
import { forwardRef, useEffect, useState } from "react";
import { Button, Form, Input, Modal, ModalProps } from "react-daisyui";
import { createPortal } from "react-dom";
Expand Down
12 changes: 9 additions & 3 deletions frontend/src/definitions/commit.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
/* === This file is part of bxt ===
*
* SPDX-FileCopyrightText: 2023 Artem Grinev <[email protected]>
* SPDX-License-Identifier: AGPL-3.0-or-later
*
*/
interface ICommit {
id: string;
section: ISection;
packages: IPackageUpload[];
id: string;
section: ISection;
packages: IPackageUpload[];
}
6 changes: 6 additions & 0 deletions frontend/src/definitions/compareResult.d.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/* === This file is part of bxt ===
*
* SPDX-FileCopyrightText: 2023 Artem Grinev <[email protected]>
* SPDX-License-Identifier: AGPL-3.0-or-later
*
*/
interface ICompareEntry {
name: string;
[section: string]: {
Expand Down
6 changes: 6 additions & 0 deletions frontend/src/definitions/logEntry.d.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/* === This file is part of bxt ===
*
* SPDX-FileCopyrightText: 2023 Artem Grinev <[email protected]>
* SPDX-License-Identifier: AGPL-3.0-or-later
*
*/
interface ILogEntry {
id: string;

Expand Down
6 changes: 6 additions & 0 deletions frontend/src/definitions/package.d.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/* === This file is part of bxt ===
*
* SPDX-FileCopyrightText: 2023 Artem Grinev <[email protected]>
* SPDX-License-Identifier: AGPL-3.0-or-later
*
*/
interface IPackagePoolEntry {
version: string;
filepath: string;
Expand Down
6 changes: 6 additions & 0 deletions frontend/src/definitions/section.d.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/* === This file is part of bxt ===
*
* SPDX-FileCopyrightText: 2023 Artem Grinev <[email protected]>
* SPDX-License-Identifier: AGPL-3.0-or-later
*
*/
interface ISection {
branch?: string;
repository?: string;
Expand Down
6 changes: 6 additions & 0 deletions frontend/src/definitions/syncMessage.d.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/* === This file is part of bxt ===
*
* SPDX-FileCopyrightText: 2023 Artem Grinev <[email protected]>
* SPDX-License-Identifier: AGPL-3.0-or-later
*
*/
interface SyncMessage {
type: string;
when: string;
Expand Down
6 changes: 6 additions & 0 deletions frontend/src/definitions/user.d.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/* === This file is part of bxt ===
*
* SPDX-FileCopyrightText: 2024 Artem Grinev <[email protected]>
* SPDX-License-Identifier: AGPL-3.0-or-later
*
*/
interface IUser {
name: string;
password?: string;
Expand Down
6 changes: 6 additions & 0 deletions frontend/src/hooks/AdminHooks.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/* === This file is part of bxt ===
*
* SPDX-FileCopyrightText: 2024 Artem Grinev <[email protected]>
* SPDX-License-Identifier: AGPL-3.0-or-later
*
*/
import axios from "axios";
import { useCallback, useEffect, useState } from "react";

Expand Down
6 changes: 6 additions & 0 deletions frontend/src/hooks/BxtFsHooks.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/* === This file is part of bxt ===
*
* SPDX-FileCopyrightText: 2023 Artem Grinev <[email protected]>
* SPDX-License-Identifier: AGPL-3.0-or-later
*
*/
import { ChonkyIconName, FileArray, FileData } from "chonky";
import { useCallback, useEffect, useMemo, useState } from "react";
import {
Expand Down
6 changes: 6 additions & 0 deletions frontend/src/hooks/BxtHooks.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/* === This file is part of bxt ===
*
* SPDX-FileCopyrightText: 2023 Artem Grinev <[email protected]>
* SPDX-License-Identifier: AGPL-3.0-or-later
*
*/
import { useCallback, useEffect, useState } from "react";
import axios from "axios";

Expand Down
6 changes: 6 additions & 0 deletions frontend/src/hooks/BxtWebSocketHooks.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/* === This file is part of bxt ===
*
* SPDX-FileCopyrightText: 2024 Artem Grinev <[email protected]>
* SPDX-License-Identifier: AGPL-3.0-or-later
*
*/
import { useState, useEffect } from "react";
import useWebSocket from "react-use-websocket";

Expand Down
6 changes: 6 additions & 0 deletions frontend/src/pages/AdminPage.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/* === This file is part of bxt ===
*
* SPDX-FileCopyrightText: 2024 Artem Grinev <[email protected]>
* SPDX-License-Identifier: AGPL-3.0-or-later
*
*/
import { faPlus, faTrash } from "@fortawesome/free-solid-svg-icons";
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
import { useCallback, useRef, useState } from "react";
Expand Down
7 changes: 7 additions & 0 deletions frontend/src/pages/ComparePage.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/* === This file is part of bxt ===
*
* SPDX-FileCopyrightText: 2023 Artem Grinev <[email protected]>
* SPDX-License-Identifier: AGPL-3.0-or-later
*
*/

import { useState, useEffect, useMemo } from "react";
import {
createColumnHelper,
Expand Down
7 changes: 7 additions & 0 deletions frontend/src/pages/FileViewPage.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/* === This file is part of bxt ===
*
* SPDX-FileCopyrightText: 2023 Artem Grinev <[email protected]>
* SPDX-License-Identifier: AGPL-3.0-or-later
*
*/

import {
FullFileBrowser,
FileArray,
Expand Down
6 changes: 6 additions & 0 deletions frontend/src/pages/LogPage.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/* === This file is part of bxt ===
*
* SPDX-FileCopyrightText: 2023 Artem Grinev <[email protected]>
* SPDX-License-Identifier: AGPL-3.0-or-later
*
*/
import React, { useEffect, useState } from "react";
import { Table, Loading } from "react-daisyui";
import { usePackageLogs } from "../hooks/BxtHooks";
Expand Down
6 changes: 6 additions & 0 deletions frontend/src/pages/LoginPage.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/* === This file is part of bxt ===
*
* SPDX-FileCopyrightText: 2023 Artem Grinev <[email protected]>
* SPDX-License-Identifier: AGPL-3.0-or-later
*
*/
import { useLocalStorage } from "@uidotdev/usehooks";
import axios from "axios";
import { useCallback, useState } from "react";
Expand Down
6 changes: 6 additions & 0 deletions frontend/src/pages/MainPage.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/* === This file is part of bxt ===
*
* SPDX-FileCopyrightText: 2023 Artem Grinev <[email protected]>
* SPDX-License-Identifier: AGPL-3.0-or-later
*
*/
import FileViewPage from "./FileViewPage";
import { RouterProvider, createBrowserRouter } from "react-router-dom";
import LogPage from "./LogPage";
Expand Down
7 changes: 7 additions & 0 deletions frontend/src/utils/SectionUtils.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/* === This file is part of bxt ===
*
* SPDX-FileCopyrightText: 2023 Artem Grinev <[email protected]>
* SPDX-License-Identifier: AGPL-3.0-or-later
*
*/

const filteredValues = (
sections: ISection[],
filterFunction: (section: ISection) => boolean,
Expand Down

0 comments on commit 93e2109

Please sign in to comment.