From 8d07eb6f54932e75564013b9eaca9c51a4d1b5d8 Mon Sep 17 00:00:00 2001 From: soup Date: Wed, 6 Nov 2024 21:49:29 +0100 Subject: [PATCH] chore: add license headers to source files (#6) --- .gitignore | 1 + LICENSE | 342 ++++++++++++++++++ backend/api/handlers/auth.go | 3 + backend/api/handlers/auth_config.go | 3 + backend/api/handlers/auth_test.go | 3 + backend/api/handlers/autobrr.go | 3 + backend/api/handlers/builtin_auth.go | 3 + backend/api/handlers/events.go | 3 + backend/api/handlers/health.go | 3 + backend/api/handlers/health_test.go | 3 + backend/api/handlers/maintainerr.go | 3 + backend/api/handlers/omegabrr.go | 3 + backend/api/handlers/overseerr.go | 3 + backend/api/handlers/plex.go | 3 + backend/api/handlers/prowlarr.go | 3 + backend/api/handlers/radarr.go | 3 + backend/api/handlers/settings.go | 3 + backend/api/handlers/sonarr.go | 3 + backend/api/handlers/tailscale.go | 3 + backend/api/handlers/testing/mocks.go | 3 + backend/api/middleware/auth.go | 3 + backend/api/middleware/cache.go | 3 + backend/api/middleware/cors.go | 3 + backend/api/middleware/csrf.go | 3 + backend/api/middleware/logging.go | 3 + backend/api/middleware/ratelimit.go | 3 + backend/api/middleware/secure.go | 3 + backend/api/routes/routes.go | 3 + backend/config/auth.go | 3 + backend/config/errors.go | 3 + backend/database/database.go | 3 + backend/database/database_integration_test.go | 3 + backend/database/database_test.go | 3 + backend/handlers/webhook.go | 3 + backend/main.go | 3 + backend/models/factory.go | 3 + backend/models/factory_test.go | 3 + backend/models/service.go | 3 + backend/models/settings.go | 3 + backend/services/autobrr/autobrr.go | 3 + backend/services/base/base.go | 3 + backend/services/cache/cache.go | 3 + backend/services/cache/cache_test.go | 3 + backend/services/cache/init.go | 3 + backend/services/cache/interface.go | 3 + backend/services/health.go | 3 + backend/services/health_test.go | 3 + backend/services/maintainerr/maintainerr.go | 3 + backend/services/omegabrr/omegabrr.go | 3 + backend/services/overseerr/overseerr.go | 3 + backend/services/plex/plex.go | 3 + backend/services/prowlarr/prowlarr.go | 3 + backend/services/radarr/radarr.go | 3 + backend/services/services.go | 3 + backend/services/sonarr/sonarr.go | 3 + backend/services/tailscale/tailscale.go | 3 + backend/types/auth.go | 3 + backend/types/types.go | 3 + backend/utils/auth.go | 3 + backend/utils/auth_test.go | 3 + src/App.css | 5 + src/App.tsx | 5 + src/components/AddServicesMenu.tsx | 5 + src/components/Toast.tsx | 5 + src/components/auth/CallbackPage.tsx | 5 + src/components/auth/LoginPage.tsx | 5 + src/components/auth/ProtectedRoute.tsx | 5 + .../configuration/ConfigurationForm.tsx | 5 + src/components/services/ServiceCard.tsx | 5 + src/components/services/ServiceGrid.tsx | 5 + .../services/ServiceHealthMonitor.tsx | 5 + .../services/TailscaleConfigModal.tsx | 5 + .../services/TailscaleDeviceModal.tsx | 5 + .../services/TailscaleStatusBar.tsx | 5 + .../services/autobrr/AutobrrStats.tsx | 5 + .../maintainerr/MaintainerrCollections.tsx | 5 + .../maintainerr/MaintainerrService.tsx | 5 + .../services/omegabrr/OmegabrrControls.tsx | 5 + .../services/overseerr/OverseerrStats.tsx | 5 + src/components/services/plex/PlexCard.tsx | 5 + .../services/plex/PlexSessionDisplay.tsx | 5 + .../services/prowlarr/ProwlarrStats.tsx | 5 + .../services/radarr/RadarrStats.tsx | 5 + .../services/sonarr/SonarrStats.tsx | 5 + src/components/shared/Card.tsx | 5 + src/components/shared/ErrorBoundary.tsx | 5 + src/components/shared/Footer.tsx | 5 + src/components/shared/HealthIndicator.tsx | 5 + src/components/shared/LoadingSkeleton.tsx | 5 + src/components/shared/LoadingState.tsx | 5 + src/components/shared/ServiceActions.tsx | 5 + src/components/shared/ServiceStatus.tsx | 5 + .../shared/StatsLoadingSkeleton.tsx | 5 + src/components/shared/StatusCounters.tsx | 5 + src/components/ui/AnimatedModal.tsx | 5 + src/components/ui/Button.tsx | 5 + src/components/ui/FormInput.tsx | 5 + src/components/ui/Modal.tsx | 5 + src/components/ui/ServiceHeader.tsx | 5 + src/components/ui/StatusIcon.tsx | 5 + src/components/ui/StatusIndicator.tsx | 5 + src/config/api.ts | 5 + src/config/auth.ts | 5 + src/config/repoUrls.ts | 5 + src/config/serviceTemplates.ts | 5 + src/contexts/AuthContext.tsx | 5 + src/contexts/ConfigurationContext.tsx | 5 + src/contexts/context.ts | 5 + src/contexts/types.ts | 5 + src/contexts/useConfiguration.ts | 5 + src/hooks/useCachedServiceData.ts | 5 + src/hooks/useEventSource.ts | 5 + src/hooks/usePollingService.ts | 5 + src/hooks/useServiceData.ts | 5 + src/hooks/useServiceHealth.ts | 5 + src/hooks/useServiceManagement.ts | 5 + src/main.tsx | 5 + src/types/auth.ts | 5 + src/types/service.ts | 5 + src/utils/api.ts | 5 + src/utils/cache.ts | 5 + src/utils/index.ts | 5 + 122 files changed, 827 insertions(+) create mode 100644 LICENSE diff --git a/.gitignore b/.gitignore index fe8b2a4..3011009 100644 --- a/.gitignore +++ b/.gitignore @@ -36,3 +36,4 @@ docs/ main backend/test.db dev-dist/ +license.sh diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..947d07a --- /dev/null +++ b/LICENSE @@ -0,0 +1,342 @@ + GNU GENERAL PUBLIC LICENSE + Version 2, June 1991 + +Copyright (C) 1989, 1991 Free Software Foundation, Inc., +51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA +Everyone is permitted to copy and distribute verbatim copies +of this license document, but changing it is not allowed. + + Preamble + +The licenses for most software are designed to take away your +freedom to share and change it. By contrast, the GNU General Public +License is intended to guarantee your freedom to share and change free +software--to make sure the software is free for all its users. This +General Public License applies to most of the Free Software +Foundation's software and to any other program whose authors commit to +using it. (Some other Free Software Foundation software is covered by +the GNU Lesser General Public License instead.) You can apply it to +your programs, too. + +When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +this service if you wish), that you receive source code or can get it +if you want it, that you can change the software or use pieces of it +in new free programs; and that you know you can do these things. + +To protect your rights, we need to make restrictions that forbid +anyone to deny you these rights or to ask you to surrender the rights. +These restrictions translate to certain responsibilities for you if you +distribute copies of the software, or if you modify it. + +For example, if you distribute copies of such a program, whether +gratis or for a fee, you must give the recipients all the rights that +you have. You must make sure that they, too, receive or can get the +source code. And you must show them these terms so they know their +rights. + +We protect your rights with two steps: (1) copyright the software, and +(2) offer you this license which gives you legal permission to copy, +distribute and/or modify the software. + +Also, for each author's protection and ours, we want to make certain +that everyone understands that there is no warranty for this free +software. If the software is modified by someone else and passed on, we +want its recipients to know that what they have is not the original, so +that any problems introduced by others will not reflect on the original +authors' reputations. + +Finally, any free program is threatened constantly by software +patents. We wish to avoid the danger that redistributors of a free +program will individually obtain patent licenses, in effect making the +program proprietary. To prevent this, we have made it clear that any +patent must be licensed for everyone's free use or not licensed at all. + +The precise terms and conditions for copying, distribution and +modification follow. + + GNU GENERAL PUBLIC LICENSE + +TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + +0. This License applies to any program or other work which contains + a notice placed by the copyright holder saying it may be distributed + under the terms of this General Public License. The "Program", below, + refers to any such program or work, and a "work based on the Program" + means either the Program or any derivative work under copyright law: + that is to say, a work containing the Program or a portion of it, + either verbatim or with modifications and/or translated into another + language. (Hereinafter, translation is included without limitation in + the term "modification".) Each licensee is addressed as "you". + +Activities other than copying, distribution and modification are not +covered by this License; they are outside its scope. The act of +running the Program is not restricted, and the output from the Program +is covered only if its contents constitute a work based on the +Program (independent of having been made by running the Program). +Whether that is true depends on what the Program does. + +1. You may copy and distribute verbatim copies of the Program's + source code as you receive it, in any medium, provided that you + conspicuously and appropriately publish on each copy an appropriate + copyright notice and disclaimer of warranty; keep intact all the + notices that refer to this License and to the absence of any warranty; + and give any other recipients of the Program a copy of this License + along with the Program. + +You may charge a fee for the physical act of transferring a copy, and +you may at your option offer warranty protection in exchange for a fee. + +2. You may modify your copy or copies of the Program or any portion + of it, thus forming a work based on the Program, and copy and + distribute such modifications or work under the terms of Section 1 + above, provided that you also meet all of these conditions: + + + a) You must cause the modified files to carry prominent notices + stating that you changed the files and the date of any change. + + b) You must cause any work that you distribute or publish, that in + whole or in part contains or is derived from the Program or any + part thereof, to be licensed as a whole at no charge to all third + parties under the terms of this License. + + c) If the modified program normally reads commands interactively + when run, you must cause it, when started running for such + interactive use in the most ordinary way, to print or display an + announcement including an appropriate copyright notice and a + notice that there is no warranty (or else, saying that you provide + a warranty) and that users may redistribute the program under + these conditions, and telling the user how to view a copy of this + License. (Exception: if the Program itself is interactive but + does not normally print such an announcement, your work based on + the Program is not required to print an announcement.) + +These requirements apply to the modified work as a whole. If +identifiable sections of that work are not derived from the Program, +and can be reasonably considered independent and separate works in +themselves, then this License, and its terms, do not apply to those +sections when you distribute them as separate works. But when you +distribute the same sections as part of a whole which is a work based +on the Program, the distribution of the whole must be on the terms of +this License, whose permissions for other licensees extend to the +entire whole, and thus to each and every part regardless of who wrote it. + +Thus, it is not the intent of this section to claim rights or contest +your rights to work written entirely by you; rather, the intent is to +exercise the right to control the distribution of derivative or +collective works based on the Program. + +In addition, mere aggregation of another work not based on the Program +with the Program (or with a work based on the Program) on a volume of +a storage or distribution medium does not bring the other work under +the scope of this License. + +3. You may copy and distribute the Program (or a work based on it, + under Section 2) in object code or executable form under the terms of + Sections 1 and 2 above provided that you also do one of the following: + + + a) Accompany it with the complete corresponding machine-readable + source code, which must be distributed under the terms of Sections + 1 and 2 above on a medium customarily used for software interchange; or, + + b) Accompany it with a written offer, valid for at least three + years, to give any third party, for a charge no more than your + cost of physically performing source distribution, a complete + machine-readable copy of the corresponding source code, to be + distributed under the terms of Sections 1 and 2 above on a medium + customarily used for software interchange; or, + + c) Accompany it with the information you received as to the offer + to distribute corresponding source code. (This alternative is + allowed only for noncommercial distribution and only if you + received the program in object code or executable form with such + an offer, in accord with Subsection b above.) + +The source code for a work means the preferred form of the work for +making modifications to it. For an executable work, complete source +code means all the source code for all modules it contains, plus any +associated interface definition files, plus the scripts used to +control compilation and installation of the executable. However, as a +special exception, the source code distributed need not include +anything that is normally distributed (in either source or binary +form) with the major components (compiler, kernel, and so on) of the +operating system on which the executable runs, unless that component +itself accompanies the executable. + +If distribution of executable or object code is made by offering +access to copy from a designated place, then offering equivalent +access to copy the source code from the same place counts as +distribution of the source code, even though third parties are not +compelled to copy the source along with the object code. + +4. You may not copy, modify, sublicense, or distribute the Program + except as expressly provided under this License. Any attempt + otherwise to copy, modify, sublicense or distribute the Program is + void, and will automatically terminate your rights under this License. + However, parties who have received copies, or rights, from you under + this License will not have their licenses terminated so long as such + parties remain in full compliance. + +5. You are not required to accept this License, since you have not + signed it. However, nothing else grants you permission to modify or + distribute the Program or its derivative works. These actions are + prohibited by law if you do not accept this License. Therefore, by + modifying or distributing the Program (or any work based on the + Program), you indicate your acceptance of this License to do so, and + all its terms and conditions for copying, distributing or modifying + the Program or works based on it. + +6. Each time you redistribute the Program (or any work based on the + Program), the recipient automatically receives a license from the + original licensor to copy, distribute or modify the Program subject to + these terms and conditions. You may not impose any further + restrictions on the recipients' exercise of the rights granted herein. + You are not responsible for enforcing compliance by third parties to + this License. + +7. If, as a consequence of a court judgment or allegation of patent + infringement or for any other reason (not limited to patent issues), + conditions are imposed on you (whether by court order, agreement or + otherwise) that contradict the conditions of this License, they do not + excuse you from the conditions of this License. If you cannot + distribute so as to satisfy simultaneously your obligations under this + License and any other pertinent obligations, then as a consequence you + may not distribute the Program at all. For example, if a patent + license would not permit royalty-free redistribution of the Program by + all those who receive copies directly or indirectly through you, then + the only way you could satisfy both it and this License would be to + refrain entirely from distribution of the Program. + +If any portion of this section is held invalid or unenforceable under +any particular circumstance, the balance of the section is intended to +apply and the section as a whole is intended to apply in other +circumstances. + +It is not the purpose of this section to induce you to infringe any +patents or other property right claims or to contest validity of any +such claims; this section has the sole purpose of protecting the +integrity of the free software distribution system, which is +implemented by public license practices. Many people have made +generous contributions to the wide range of software distributed +through that system in reliance on consistent application of that +system; it is up to the author/donor to decide if he or she is willing +to distribute software through any other system and a licensee cannot +impose that choice. + +This section is intended to make thoroughly clear what is believed to +be a consequence of the rest of this License. + +8. If the distribution and/or use of the Program is restricted in + certain countries either by patents or by copyrighted interfaces, the + original copyright holder who places the Program under this License + may add an explicit geographical distribution limitation excluding + those countries, so that distribution is permitted only in or among + countries not thus excluded. In such case, this License incorporates + the limitation as if written in the body of this License. + +9. The Free Software Foundation may publish revised and/or new versions + of the General Public License from time to time. Such new versions will + be similar in spirit to the present version, but may differ in detail to + address new problems or concerns. + +Each version is given a distinguishing version number. If the Program +specifies a version number of this License which applies to it and "any +later version", you have the option of following the terms and conditions +either of that version or of any later version published by the Free +Software Foundation. If the Program does not specify a version number of +this License, you may choose any version ever published by the Free Software +Foundation. + +10. If you wish to incorporate parts of the Program into other free + programs whose distribution conditions are different, write to the author + to ask for permission. For software which is copyrighted by the Free + Software Foundation, write to the Free Software Foundation; we sometimes + make exceptions for this. Our decision will be guided by the two goals + of preserving the free status of all derivatives of our free software and + of promoting the sharing and reuse of software generally. + + NO WARRANTY + +11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY + FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN + OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES + PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED + OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS + TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE + PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, + REPAIR OR CORRECTION. + +12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING + WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR + REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, + INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING + OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED + TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY + YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER + PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE + POSSIBILITY OF SUCH DAMAGES. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs + +If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + +To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +convey the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + + Copyright (C) + + 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 2 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, write to the Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + +Also add information on how to contact you by electronic and paper mail. + +If the program is interactive, make it output a short notice like this +when it starts in an interactive mode: + + Gnomovision version 69, Copyright (C) year name of author + Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. + This is free software, and you are welcome to redistribute it + under certain conditions; type `show c' for details. + +The hypothetical commands `show w' and `show c' should show the appropriate +parts of the General Public License. Of course, the commands you use may +be called something other than `show w' and `show c'; they could even be +mouse-clicks or menu items--whatever suits your program. + +You should also get your employer (if you work as a programmer) or your +school, if any, to sign a "copyright disclaimer" for the program, if +necessary. Here is a sample; alter the names: + +Yoyodyne, Inc., hereby disclaims all copyright interest in the program +`Gnomovision' (which makes passes at compilers) written by James Hacker. + +, 1 April 1989 +Ty Coon, President of Vice + +This General Public License does not permit incorporating your program into +proprietary programs. If your program is a subroutine library, you may +consider it more useful to permit linking proprietary applications with the +library. If this is what you want to do, use the GNU Lesser General +Public License instead of this License. diff --git a/backend/api/handlers/auth.go b/backend/api/handlers/auth.go index 07c4db9..fd3862d 100644 --- a/backend/api/handlers/auth.go +++ b/backend/api/handlers/auth.go @@ -1,3 +1,6 @@ +// Copyright (c) 2024, s0up and the autobrr contributors. +// SPDX-License-Identifier: GPL-2.0-or-later + package handlers import ( diff --git a/backend/api/handlers/auth_config.go b/backend/api/handlers/auth_config.go index 478c396..4a18d5f 100644 --- a/backend/api/handlers/auth_config.go +++ b/backend/api/handlers/auth_config.go @@ -1,3 +1,6 @@ +// Copyright (c) 2024, s0up and the autobrr contributors. +// SPDX-License-Identifier: GPL-2.0-or-later + package handlers import ( diff --git a/backend/api/handlers/auth_test.go b/backend/api/handlers/auth_test.go index d8039c6..9ba7039 100644 --- a/backend/api/handlers/auth_test.go +++ b/backend/api/handlers/auth_test.go @@ -1,3 +1,6 @@ +// Copyright (c) 2024, s0up and the autobrr contributors. +// SPDX-License-Identifier: GPL-2.0-or-later + package handlers import ( diff --git a/backend/api/handlers/autobrr.go b/backend/api/handlers/autobrr.go index 6a6ff92..7130339 100644 --- a/backend/api/handlers/autobrr.go +++ b/backend/api/handlers/autobrr.go @@ -1,3 +1,6 @@ +// Copyright (c) 2024, s0up and the autobrr contributors. +// SPDX-License-Identifier: GPL-2.0-or-later + package handlers import ( diff --git a/backend/api/handlers/builtin_auth.go b/backend/api/handlers/builtin_auth.go index 3f6531d..2740259 100644 --- a/backend/api/handlers/builtin_auth.go +++ b/backend/api/handlers/builtin_auth.go @@ -1,3 +1,6 @@ +// Copyright (c) 2024, s0up and the autobrr contributors. +// SPDX-License-Identifier: GPL-2.0-or-later + package handlers import ( diff --git a/backend/api/handlers/events.go b/backend/api/handlers/events.go index ad2e838..996caa0 100644 --- a/backend/api/handlers/events.go +++ b/backend/api/handlers/events.go @@ -1,3 +1,6 @@ +// Copyright (c) 2024, s0up and the autobrr contributors. +// SPDX-License-Identifier: GPL-2.0-or-later + package handlers import ( diff --git a/backend/api/handlers/health.go b/backend/api/handlers/health.go index 82671e5..a015734 100644 --- a/backend/api/handlers/health.go +++ b/backend/api/handlers/health.go @@ -1,3 +1,6 @@ +// Copyright (c) 2024, s0up and the autobrr contributors. +// SPDX-License-Identifier: GPL-2.0-or-later + package handlers import ( diff --git a/backend/api/handlers/health_test.go b/backend/api/handlers/health_test.go index b37e079..05a211e 100644 --- a/backend/api/handlers/health_test.go +++ b/backend/api/handlers/health_test.go @@ -1,3 +1,6 @@ +// Copyright (c) 2024, s0up and the autobrr contributors. +// SPDX-License-Identifier: GPL-2.0-or-later + package handlers import ( diff --git a/backend/api/handlers/maintainerr.go b/backend/api/handlers/maintainerr.go index ced1f46..94bde17 100644 --- a/backend/api/handlers/maintainerr.go +++ b/backend/api/handlers/maintainerr.go @@ -1,3 +1,6 @@ +// Copyright (c) 2024, s0up and the autobrr contributors. +// SPDX-License-Identifier: GPL-2.0-or-later + package handlers import ( diff --git a/backend/api/handlers/omegabrr.go b/backend/api/handlers/omegabrr.go index c2475bf..236ce2e 100644 --- a/backend/api/handlers/omegabrr.go +++ b/backend/api/handlers/omegabrr.go @@ -1,3 +1,6 @@ +// Copyright (c) 2024, s0up and the autobrr contributors. +// SPDX-License-Identifier: GPL-2.0-or-later + package handlers import ( diff --git a/backend/api/handlers/overseerr.go b/backend/api/handlers/overseerr.go index 9b0c404..87bc445 100644 --- a/backend/api/handlers/overseerr.go +++ b/backend/api/handlers/overseerr.go @@ -1,3 +1,6 @@ +// Copyright (c) 2024, s0up and the autobrr contributors. +// SPDX-License-Identifier: GPL-2.0-or-later + package handlers import ( diff --git a/backend/api/handlers/plex.go b/backend/api/handlers/plex.go index d70f268..2b16234 100644 --- a/backend/api/handlers/plex.go +++ b/backend/api/handlers/plex.go @@ -1,3 +1,6 @@ +// Copyright (c) 2024, s0up and the autobrr contributors. +// SPDX-License-Identifier: GPL-2.0-or-later + package handlers import ( diff --git a/backend/api/handlers/prowlarr.go b/backend/api/handlers/prowlarr.go index bbbf41b..3c2036a 100644 --- a/backend/api/handlers/prowlarr.go +++ b/backend/api/handlers/prowlarr.go @@ -1,3 +1,6 @@ +// Copyright (c) 2024, s0up and the autobrr contributors. +// SPDX-License-Identifier: GPL-2.0-or-later + package handlers import ( diff --git a/backend/api/handlers/radarr.go b/backend/api/handlers/radarr.go index 15fb9e5..1a7b1db 100644 --- a/backend/api/handlers/radarr.go +++ b/backend/api/handlers/radarr.go @@ -1,3 +1,6 @@ +// Copyright (c) 2024, s0up and the autobrr contributors. +// SPDX-License-Identifier: GPL-2.0-or-later + package handlers import ( diff --git a/backend/api/handlers/settings.go b/backend/api/handlers/settings.go index b50cd06..443fb92 100644 --- a/backend/api/handlers/settings.go +++ b/backend/api/handlers/settings.go @@ -1,3 +1,6 @@ +// Copyright (c) 2024, s0up and the autobrr contributors. +// SPDX-License-Identifier: GPL-2.0-or-later + package handlers import ( diff --git a/backend/api/handlers/sonarr.go b/backend/api/handlers/sonarr.go index a2668c2..2069994 100644 --- a/backend/api/handlers/sonarr.go +++ b/backend/api/handlers/sonarr.go @@ -1,3 +1,6 @@ +// Copyright (c) 2024, s0up and the autobrr contributors. +// SPDX-License-Identifier: GPL-2.0-or-later + package handlers import ( diff --git a/backend/api/handlers/tailscale.go b/backend/api/handlers/tailscale.go index 8a9aac4..10982b8 100644 --- a/backend/api/handlers/tailscale.go +++ b/backend/api/handlers/tailscale.go @@ -1,3 +1,6 @@ +// Copyright (c) 2024, s0up and the autobrr contributors. +// SPDX-License-Identifier: GPL-2.0-or-later + package handlers import ( diff --git a/backend/api/handlers/testing/mocks.go b/backend/api/handlers/testing/mocks.go index bc46eb6..69c2331 100644 --- a/backend/api/handlers/testing/mocks.go +++ b/backend/api/handlers/testing/mocks.go @@ -1,3 +1,6 @@ +// Copyright (c) 2024, s0up and the autobrr contributors. +// SPDX-License-Identifier: GPL-2.0-or-later + package testing import ( diff --git a/backend/api/middleware/auth.go b/backend/api/middleware/auth.go index eb60644..daecc00 100644 --- a/backend/api/middleware/auth.go +++ b/backend/api/middleware/auth.go @@ -1,3 +1,6 @@ +// Copyright (c) 2024, s0up and the autobrr contributors. +// SPDX-License-Identifier: GPL-2.0-or-later + package middleware import ( diff --git a/backend/api/middleware/cache.go b/backend/api/middleware/cache.go index 68c71c6..dfcb43f 100644 --- a/backend/api/middleware/cache.go +++ b/backend/api/middleware/cache.go @@ -1,3 +1,6 @@ +// Copyright (c) 2024, s0up and the autobrr contributors. +// SPDX-License-Identifier: GPL-2.0-or-later + package middleware import ( diff --git a/backend/api/middleware/cors.go b/backend/api/middleware/cors.go index e895f11..d4efc76 100644 --- a/backend/api/middleware/cors.go +++ b/backend/api/middleware/cors.go @@ -1,3 +1,6 @@ +// Copyright (c) 2024, s0up and the autobrr contributors. +// SPDX-License-Identifier: GPL-2.0-or-later + package middleware import ( diff --git a/backend/api/middleware/csrf.go b/backend/api/middleware/csrf.go index 6434ece..85d4a32 100644 --- a/backend/api/middleware/csrf.go +++ b/backend/api/middleware/csrf.go @@ -1,3 +1,6 @@ +// Copyright (c) 2024, s0up and the autobrr contributors. +// SPDX-License-Identifier: GPL-2.0-or-later + package middleware import ( diff --git a/backend/api/middleware/logging.go b/backend/api/middleware/logging.go index 2ffa052..2d1decc 100644 --- a/backend/api/middleware/logging.go +++ b/backend/api/middleware/logging.go @@ -1,3 +1,6 @@ +// Copyright (c) 2024, s0up and the autobrr contributors. +// SPDX-License-Identifier: GPL-2.0-or-later + package middleware import ( diff --git a/backend/api/middleware/ratelimit.go b/backend/api/middleware/ratelimit.go index 7c2d4df..dff544c 100644 --- a/backend/api/middleware/ratelimit.go +++ b/backend/api/middleware/ratelimit.go @@ -1,3 +1,6 @@ +// Copyright (c) 2024, s0up and the autobrr contributors. +// SPDX-License-Identifier: GPL-2.0-or-later + package middleware import ( diff --git a/backend/api/middleware/secure.go b/backend/api/middleware/secure.go index e15aa95..a7077b5 100644 --- a/backend/api/middleware/secure.go +++ b/backend/api/middleware/secure.go @@ -1,3 +1,6 @@ +// Copyright (c) 2024, s0up and the autobrr contributors. +// SPDX-License-Identifier: GPL-2.0-or-later + package middleware import ( diff --git a/backend/api/routes/routes.go b/backend/api/routes/routes.go index b83faee..17893a5 100644 --- a/backend/api/routes/routes.go +++ b/backend/api/routes/routes.go @@ -1,3 +1,6 @@ +// Copyright (c) 2024, s0up and the autobrr contributors. +// SPDX-License-Identifier: GPL-2.0-or-later + package routes import ( diff --git a/backend/config/auth.go b/backend/config/auth.go index 4a88cb4..2a3c58a 100644 --- a/backend/config/auth.go +++ b/backend/config/auth.go @@ -1,3 +1,6 @@ +// Copyright (c) 2024, s0up and the autobrr contributors. +// SPDX-License-Identifier: GPL-2.0-or-later + package config import ( diff --git a/backend/config/errors.go b/backend/config/errors.go index f9ce494..c9e1504 100644 --- a/backend/config/errors.go +++ b/backend/config/errors.go @@ -1,3 +1,6 @@ +// Copyright (c) 2024, s0up and the autobrr contributors. +// SPDX-License-Identifier: GPL-2.0-or-later + package config import "errors" diff --git a/backend/database/database.go b/backend/database/database.go index a12bb67..6218214 100644 --- a/backend/database/database.go +++ b/backend/database/database.go @@ -1,3 +1,6 @@ +// Copyright (c) 2024, s0up and the autobrr contributors. +// SPDX-License-Identifier: GPL-2.0-or-later + package database import ( diff --git a/backend/database/database_integration_test.go b/backend/database/database_integration_test.go index d654261..d84c746 100644 --- a/backend/database/database_integration_test.go +++ b/backend/database/database_integration_test.go @@ -1,3 +1,6 @@ +// Copyright (c) 2024, s0up and the autobrr contributors. +// SPDX-License-Identifier: GPL-2.0-or-later + //go:build integration // +build integration diff --git a/backend/database/database_test.go b/backend/database/database_test.go index 2465d3b..8de38ec 100644 --- a/backend/database/database_test.go +++ b/backend/database/database_test.go @@ -1,3 +1,6 @@ +// Copyright (c) 2024, s0up and the autobrr contributors. +// SPDX-License-Identifier: GPL-2.0-or-later + package database import ( diff --git a/backend/handlers/webhook.go b/backend/handlers/webhook.go index 0ca6249..f168e95 100644 --- a/backend/handlers/webhook.go +++ b/backend/handlers/webhook.go @@ -1,3 +1,6 @@ +// Copyright (c) 2024, s0up and the autobrr contributors. +// SPDX-License-Identifier: GPL-2.0-or-later + package handlers import ( diff --git a/backend/main.go b/backend/main.go index b0b216b..0e1ebb6 100644 --- a/backend/main.go +++ b/backend/main.go @@ -1,3 +1,6 @@ +// Copyright (c) 2024, s0up and the autobrr contributors. +// SPDX-License-Identifier: GPL-2.0-or-later + package main import ( diff --git a/backend/models/factory.go b/backend/models/factory.go index a9eecf3..d10e4d3 100644 --- a/backend/models/factory.go +++ b/backend/models/factory.go @@ -1,3 +1,6 @@ +// Copyright (c) 2024, s0up and the autobrr contributors. +// SPDX-License-Identifier: GPL-2.0-or-later + package models import ( diff --git a/backend/models/factory_test.go b/backend/models/factory_test.go index 8844a25..b049207 100644 --- a/backend/models/factory_test.go +++ b/backend/models/factory_test.go @@ -1,3 +1,6 @@ +// Copyright (c) 2024, s0up and the autobrr contributors. +// SPDX-License-Identifier: GPL-2.0-or-later + package models import ( diff --git a/backend/models/service.go b/backend/models/service.go index b498619..85566e1 100644 --- a/backend/models/service.go +++ b/backend/models/service.go @@ -1,3 +1,6 @@ +// Copyright (c) 2024, s0up and the autobrr contributors. +// SPDX-License-Identifier: GPL-2.0-or-later + package models import ( diff --git a/backend/models/settings.go b/backend/models/settings.go index fadc40a..cca92bf 100644 --- a/backend/models/settings.go +++ b/backend/models/settings.go @@ -1,3 +1,6 @@ +// Copyright (c) 2024, s0up and the autobrr contributors. +// SPDX-License-Identifier: GPL-2.0-or-later + package models // ServiceConfiguration is the database model diff --git a/backend/services/autobrr/autobrr.go b/backend/services/autobrr/autobrr.go index f5d5071..cd00a10 100644 --- a/backend/services/autobrr/autobrr.go +++ b/backend/services/autobrr/autobrr.go @@ -1,3 +1,6 @@ +// Copyright (c) 2024, s0up and the autobrr contributors. +// SPDX-License-Identifier: GPL-2.0-or-later + package autobrr import ( diff --git a/backend/services/base/base.go b/backend/services/base/base.go index 8ef61b7..b2fa6e0 100644 --- a/backend/services/base/base.go +++ b/backend/services/base/base.go @@ -1,3 +1,6 @@ +// Copyright (c) 2024, s0up and the autobrr contributors. +// SPDX-License-Identifier: GPL-2.0-or-later + package base import ( diff --git a/backend/services/cache/cache.go b/backend/services/cache/cache.go index aaef2fb..a566268 100644 --- a/backend/services/cache/cache.go +++ b/backend/services/cache/cache.go @@ -1,3 +1,6 @@ +// Copyright (c) 2024, s0up and the autobrr contributors. +// SPDX-License-Identifier: GPL-2.0-or-later + package cache import ( diff --git a/backend/services/cache/cache_test.go b/backend/services/cache/cache_test.go index b90bb13..ff90378 100644 --- a/backend/services/cache/cache_test.go +++ b/backend/services/cache/cache_test.go @@ -1,3 +1,6 @@ +// Copyright (c) 2024, s0up and the autobrr contributors. +// SPDX-License-Identifier: GPL-2.0-or-later + package cache import ( diff --git a/backend/services/cache/init.go b/backend/services/cache/init.go index 7cb39b6..3d7be60 100644 --- a/backend/services/cache/init.go +++ b/backend/services/cache/init.go @@ -1,3 +1,6 @@ +// Copyright (c) 2024, s0up and the autobrr contributors. +// SPDX-License-Identifier: GPL-2.0-or-later + package cache import ( diff --git a/backend/services/cache/interface.go b/backend/services/cache/interface.go index 9749d14..6ac1973 100644 --- a/backend/services/cache/interface.go +++ b/backend/services/cache/interface.go @@ -1,3 +1,6 @@ +// Copyright (c) 2024, s0up and the autobrr contributors. +// SPDX-License-Identifier: GPL-2.0-or-later + package cache import ( diff --git a/backend/services/health.go b/backend/services/health.go index 8f378a7..de64c46 100644 --- a/backend/services/health.go +++ b/backend/services/health.go @@ -1,3 +1,6 @@ +// Copyright (c) 2024, s0up and the autobrr contributors. +// SPDX-License-Identifier: GPL-2.0-or-later + package services import ( diff --git a/backend/services/health_test.go b/backend/services/health_test.go index d754543..f2f3bb0 100644 --- a/backend/services/health_test.go +++ b/backend/services/health_test.go @@ -1,3 +1,6 @@ +// Copyright (c) 2024, s0up and the autobrr contributors. +// SPDX-License-Identifier: GPL-2.0-or-later + package services import ( diff --git a/backend/services/maintainerr/maintainerr.go b/backend/services/maintainerr/maintainerr.go index 989e243..d9d6790 100644 --- a/backend/services/maintainerr/maintainerr.go +++ b/backend/services/maintainerr/maintainerr.go @@ -1,3 +1,6 @@ +// Copyright (c) 2024, s0up and the autobrr contributors. +// SPDX-License-Identifier: GPL-2.0-or-later + package maintainerr import ( diff --git a/backend/services/omegabrr/omegabrr.go b/backend/services/omegabrr/omegabrr.go index 6ac8adc..8a56579 100644 --- a/backend/services/omegabrr/omegabrr.go +++ b/backend/services/omegabrr/omegabrr.go @@ -1,3 +1,6 @@ +// Copyright (c) 2024, s0up and the autobrr contributors. +// SPDX-License-Identifier: GPL-2.0-or-later + package omegabrr import ( diff --git a/backend/services/overseerr/overseerr.go b/backend/services/overseerr/overseerr.go index e474c88..6b36b44 100644 --- a/backend/services/overseerr/overseerr.go +++ b/backend/services/overseerr/overseerr.go @@ -1,3 +1,6 @@ +// Copyright (c) 2024, s0up and the autobrr contributors. +// SPDX-License-Identifier: GPL-2.0-or-later + package overseerr import ( diff --git a/backend/services/plex/plex.go b/backend/services/plex/plex.go index 02d32ad..252a3a5 100644 --- a/backend/services/plex/plex.go +++ b/backend/services/plex/plex.go @@ -1,3 +1,6 @@ +// Copyright (c) 2024, s0up and the autobrr contributors. +// SPDX-License-Identifier: GPL-2.0-or-later + package plex import ( diff --git a/backend/services/prowlarr/prowlarr.go b/backend/services/prowlarr/prowlarr.go index af16e8d..de08813 100644 --- a/backend/services/prowlarr/prowlarr.go +++ b/backend/services/prowlarr/prowlarr.go @@ -1,3 +1,6 @@ +// Copyright (c) 2024, s0up and the autobrr contributors. +// SPDX-License-Identifier: GPL-2.0-or-later + package prowlarr import ( diff --git a/backend/services/radarr/radarr.go b/backend/services/radarr/radarr.go index e05edd3..d8fbc1a 100644 --- a/backend/services/radarr/radarr.go +++ b/backend/services/radarr/radarr.go @@ -1,3 +1,6 @@ +// Copyright (c) 2024, s0up and the autobrr contributors. +// SPDX-License-Identifier: GPL-2.0-or-later + package radarr import ( diff --git a/backend/services/services.go b/backend/services/services.go index 09d0341..22cceff 100644 --- a/backend/services/services.go +++ b/backend/services/services.go @@ -1,3 +1,6 @@ +// Copyright (c) 2024, s0up and the autobrr contributors. +// SPDX-License-Identifier: GPL-2.0-or-later + package services import ( diff --git a/backend/services/sonarr/sonarr.go b/backend/services/sonarr/sonarr.go index 2a69296..c0868a8 100644 --- a/backend/services/sonarr/sonarr.go +++ b/backend/services/sonarr/sonarr.go @@ -1,3 +1,6 @@ +// Copyright (c) 2024, s0up and the autobrr contributors. +// SPDX-License-Identifier: GPL-2.0-or-later + package sonarr import ( diff --git a/backend/services/tailscale/tailscale.go b/backend/services/tailscale/tailscale.go index 8b9a856..b9963bd 100644 --- a/backend/services/tailscale/tailscale.go +++ b/backend/services/tailscale/tailscale.go @@ -1,3 +1,6 @@ +// Copyright (c) 2024, s0up and the autobrr contributors. +// SPDX-License-Identifier: GPL-2.0-or-later + package tailscale import ( diff --git a/backend/types/auth.go b/backend/types/auth.go index b8d4bbe..07139b4 100644 --- a/backend/types/auth.go +++ b/backend/types/auth.go @@ -1,3 +1,6 @@ +// Copyright (c) 2024, s0up and the autobrr contributors. +// SPDX-License-Identifier: GPL-2.0-or-later + package types import "time" diff --git a/backend/types/types.go b/backend/types/types.go index 93b0dc6..a27caad 100644 --- a/backend/types/types.go +++ b/backend/types/types.go @@ -1,3 +1,6 @@ +// Copyright (c) 2024, s0up and the autobrr contributors. +// SPDX-License-Identifier: GPL-2.0-or-later + package types import "time" diff --git a/backend/utils/auth.go b/backend/utils/auth.go index f95ee8e..61ad91e 100644 --- a/backend/utils/auth.go +++ b/backend/utils/auth.go @@ -1,3 +1,6 @@ +// Copyright (c) 2024, s0up and the autobrr contributors. +// SPDX-License-Identifier: GPL-2.0-or-later + package utils import ( diff --git a/backend/utils/auth_test.go b/backend/utils/auth_test.go index 2b629c0..623303e 100644 --- a/backend/utils/auth_test.go +++ b/backend/utils/auth_test.go @@ -1,3 +1,6 @@ +// Copyright (c) 2024, s0up and the autobrr contributors. +// SPDX-License-Identifier: GPL-2.0-or-later + package utils import ( diff --git a/src/App.css b/src/App.css index a837e0b..3d1ed43 100644 --- a/src/App.css +++ b/src/App.css @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2024, s0up and the autobrr contributors. + * SPDX-License-Identifier: GPL-2.0-or-later + */ + #root { margin: 0 auto; text-align: center; diff --git a/src/App.tsx b/src/App.tsx index 3477cb3..23c4ae2 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2024, s0up and the autobrr contributors. + * SPDX-License-Identifier: GPL-2.0-or-later + */ + import { ServiceHealthMonitor } from "./components/services/ServiceHealthMonitor"; import { ConfigurationProvider } from "./contexts/ConfigurationContext"; import { AuthProvider, useAuth } from "./contexts/AuthContext"; diff --git a/src/components/AddServicesMenu.tsx b/src/components/AddServicesMenu.tsx index 8d17a49..9d8f2e7 100644 --- a/src/components/AddServicesMenu.tsx +++ b/src/components/AddServicesMenu.tsx @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2024, s0up and the autobrr contributors. + * SPDX-License-Identifier: GPL-2.0-or-later + */ + import { Menu, Transition } from "@headlessui/react"; import { Fragment, useState, useEffect } from "react"; import { ServiceType } from "../types/service"; diff --git a/src/components/Toast.tsx b/src/components/Toast.tsx index e11152b..970540a 100644 --- a/src/components/Toast.tsx +++ b/src/components/Toast.tsx @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2024, s0up and the autobrr contributors. + * SPDX-License-Identifier: GPL-2.0-or-later + */ + import { FC } from "react"; import { CheckCircleIcon, ExclamationCircleIcon, ExclamationTriangleIcon, InformationCircleIcon, XMarkIcon } from "@heroicons/react/24/solid"; import { toast, Toast as Tooast } from "react-hot-toast"; diff --git a/src/components/auth/CallbackPage.tsx b/src/components/auth/CallbackPage.tsx index ff0571a..fe093d2 100644 --- a/src/components/auth/CallbackPage.tsx +++ b/src/components/auth/CallbackPage.tsx @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2024, s0up and the autobrr contributors. + * SPDX-License-Identifier: GPL-2.0-or-later + */ + import { useEffect, useState } from "react"; import { useNavigate, useSearchParams } from "react-router-dom"; import { useAuth } from "../../contexts/AuthContext"; diff --git a/src/components/auth/LoginPage.tsx b/src/components/auth/LoginPage.tsx index b563202..eef1f55 100644 --- a/src/components/auth/LoginPage.tsx +++ b/src/components/auth/LoginPage.tsx @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2024, s0up and the autobrr contributors. + * SPDX-License-Identifier: GPL-2.0-or-later + */ + import { useEffect, useState } from "react"; import { useNavigate, useLocation } from "react-router-dom"; import { useAuth } from "../../contexts/AuthContext"; diff --git a/src/components/auth/ProtectedRoute.tsx b/src/components/auth/ProtectedRoute.tsx index ead823b..e587207 100644 --- a/src/components/auth/ProtectedRoute.tsx +++ b/src/components/auth/ProtectedRoute.tsx @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2024, s0up and the autobrr contributors. + * SPDX-License-Identifier: GPL-2.0-or-later + */ + import React from "react"; import { Navigate, useLocation } from "react-router-dom"; import { useAuth } from "../../contexts/AuthContext"; diff --git a/src/components/configuration/ConfigurationForm.tsx b/src/components/configuration/ConfigurationForm.tsx index 202b70b..3eb060a 100644 --- a/src/components/configuration/ConfigurationForm.tsx +++ b/src/components/configuration/ConfigurationForm.tsx @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2024, s0up and the autobrr contributors. + * SPDX-License-Identifier: GPL-2.0-or-later + */ + import { useState } from "react"; import { useConfiguration } from "../../contexts/useConfiguration"; import { ServiceConfig } from "../../types/service"; diff --git a/src/components/services/ServiceCard.tsx b/src/components/services/ServiceCard.tsx index a48f5b4..ac5a4c2 100644 --- a/src/components/services/ServiceCard.tsx +++ b/src/components/services/ServiceCard.tsx @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2024, s0up and the autobrr contributors. + * SPDX-License-Identifier: GPL-2.0-or-later + */ + import React, { useState, useEffect } from "react"; import { Service } from "../../types/service"; import { ConfigurationForm } from "../configuration/ConfigurationForm"; diff --git a/src/components/services/ServiceGrid.tsx b/src/components/services/ServiceGrid.tsx index 8a45291..cfe43e0 100644 --- a/src/components/services/ServiceGrid.tsx +++ b/src/components/services/ServiceGrid.tsx @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2024, s0up and the autobrr contributors. + * SPDX-License-Identifier: GPL-2.0-or-later + */ + import { ServiceCard } from "./ServiceCard"; import { Service } from "../../types/service"; import LoadingSkeleton from "../shared/LoadingSkeleton"; diff --git a/src/components/services/ServiceHealthMonitor.tsx b/src/components/services/ServiceHealthMonitor.tsx index c2ceccd..e3ddeb5 100644 --- a/src/components/services/ServiceHealthMonitor.tsx +++ b/src/components/services/ServiceHealthMonitor.tsx @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2024, s0up and the autobrr contributors. + * SPDX-License-Identifier: GPL-2.0-or-later + */ + import { memo } from "react"; import { ServiceGrid } from "./ServiceGrid"; import { useServiceData } from "../../hooks/useServiceData"; diff --git a/src/components/services/TailscaleConfigModal.tsx b/src/components/services/TailscaleConfigModal.tsx index 45ba1ae..821de46 100644 --- a/src/components/services/TailscaleConfigModal.tsx +++ b/src/components/services/TailscaleConfigModal.tsx @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2024, s0up and the autobrr contributors. + * SPDX-License-Identifier: GPL-2.0-or-later + */ + import React, { useState, useEffect } from "react"; import { useConfiguration } from "../../contexts/useConfiguration"; import { useAuth } from "../../contexts/AuthContext"; diff --git a/src/components/services/TailscaleDeviceModal.tsx b/src/components/services/TailscaleDeviceModal.tsx index 913c06a..7ad6205 100644 --- a/src/components/services/TailscaleDeviceModal.tsx +++ b/src/components/services/TailscaleDeviceModal.tsx @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2024, s0up and the autobrr contributors. + * SPDX-License-Identifier: GPL-2.0-or-later + */ + import React, { useState, useEffect, useRef } from "react"; import { toast } from "react-hot-toast"; import Toast from "../Toast"; diff --git a/src/components/services/TailscaleStatusBar.tsx b/src/components/services/TailscaleStatusBar.tsx index 6e23b82..8740b76 100644 --- a/src/components/services/TailscaleStatusBar.tsx +++ b/src/components/services/TailscaleStatusBar.tsx @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2024, s0up and the autobrr contributors. + * SPDX-License-Identifier: GPL-2.0-or-later + */ + import React, { useEffect, useState, useCallback, useMemo } from "react"; import { CogIcon } from "@heroicons/react/24/solid"; import TailscaleDeviceModal from "./TailscaleDeviceModal"; diff --git a/src/components/services/autobrr/AutobrrStats.tsx b/src/components/services/autobrr/AutobrrStats.tsx index 768e7ce..296ffda 100644 --- a/src/components/services/autobrr/AutobrrStats.tsx +++ b/src/components/services/autobrr/AutobrrStats.tsx @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2024, s0up and the autobrr contributors. + * SPDX-License-Identifier: GPL-2.0-or-later + */ + import React from "react"; import { useServiceData } from "../../../hooks/useServiceData"; import { StatusIcon } from "../../ui/StatusIcon"; diff --git a/src/components/services/maintainerr/MaintainerrCollections.tsx b/src/components/services/maintainerr/MaintainerrCollections.tsx index 9b106f4..7337835 100644 --- a/src/components/services/maintainerr/MaintainerrCollections.tsx +++ b/src/components/services/maintainerr/MaintainerrCollections.tsx @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2024, s0up and the autobrr contributors. + * SPDX-License-Identifier: GPL-2.0-or-later + */ + import React from "react"; import { useServiceData } from "../../../hooks/useServiceData"; import { ArrowTopRightOnSquareIcon } from "@heroicons/react/24/solid"; diff --git a/src/components/services/maintainerr/MaintainerrService.tsx b/src/components/services/maintainerr/MaintainerrService.tsx index a21fa64..e1aacef 100644 --- a/src/components/services/maintainerr/MaintainerrService.tsx +++ b/src/components/services/maintainerr/MaintainerrService.tsx @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2024, s0up and the autobrr contributors. + * SPDX-License-Identifier: GPL-2.0-or-later + */ + import React from "react"; import { MaintainerrCollections } from "./MaintainerrCollections"; diff --git a/src/components/services/omegabrr/OmegabrrControls.tsx b/src/components/services/omegabrr/OmegabrrControls.tsx index 7af58e3..b70ecbf 100644 --- a/src/components/services/omegabrr/OmegabrrControls.tsx +++ b/src/components/services/omegabrr/OmegabrrControls.tsx @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2024, s0up and the autobrr contributors. + * SPDX-License-Identifier: GPL-2.0-or-later + */ + import React from "react"; import { triggerWebhookArrs, diff --git a/src/components/services/overseerr/OverseerrStats.tsx b/src/components/services/overseerr/OverseerrStats.tsx index 8b40e82..bb9e62f 100644 --- a/src/components/services/overseerr/OverseerrStats.tsx +++ b/src/components/services/overseerr/OverseerrStats.tsx @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2024, s0up and the autobrr contributors. + * SPDX-License-Identifier: GPL-2.0-or-later + */ + import React from "react"; import { useServiceData } from "../../../hooks/useServiceData"; diff --git a/src/components/services/plex/PlexCard.tsx b/src/components/services/plex/PlexCard.tsx index 8f567e5..09158e1 100644 --- a/src/components/services/plex/PlexCard.tsx +++ b/src/components/services/plex/PlexCard.tsx @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2024, s0up and the autobrr contributors. + * SPDX-License-Identifier: GPL-2.0-or-later + */ + import React from "react"; import { useServiceData } from "../../../hooks/useServiceData"; import { PlexSessionDisplay } from "./PlexSessionDisplay"; diff --git a/src/components/services/plex/PlexSessionDisplay.tsx b/src/components/services/plex/PlexSessionDisplay.tsx index a062d52..c391ff0 100644 --- a/src/components/services/plex/PlexSessionDisplay.tsx +++ b/src/components/services/plex/PlexSessionDisplay.tsx @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2024, s0up and the autobrr contributors. + * SPDX-License-Identifier: GPL-2.0-or-later + */ + import React from "react"; import { PlexSession } from "../../../types/service"; diff --git a/src/components/services/prowlarr/ProwlarrStats.tsx b/src/components/services/prowlarr/ProwlarrStats.tsx index 3ef0c0b..115fd43 100644 --- a/src/components/services/prowlarr/ProwlarrStats.tsx +++ b/src/components/services/prowlarr/ProwlarrStats.tsx @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2024, s0up and the autobrr contributors. + * SPDX-License-Identifier: GPL-2.0-or-later + */ + import React from "react"; import { useServiceData } from "../../../hooks/useServiceData"; import { StatsLoadingSkeleton } from "../../shared/StatsLoadingSkeleton"; diff --git a/src/components/services/radarr/RadarrStats.tsx b/src/components/services/radarr/RadarrStats.tsx index a9d594f..f28e62d 100644 --- a/src/components/services/radarr/RadarrStats.tsx +++ b/src/components/services/radarr/RadarrStats.tsx @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2024, s0up and the autobrr contributors. + * SPDX-License-Identifier: GPL-2.0-or-later + */ + import React from "react"; import { useServiceData } from "../../../hooks/useServiceData"; import { RadarrQueueItem } from "../../../types/service"; diff --git a/src/components/services/sonarr/SonarrStats.tsx b/src/components/services/sonarr/SonarrStats.tsx index 9fee471..c356631 100644 --- a/src/components/services/sonarr/SonarrStats.tsx +++ b/src/components/services/sonarr/SonarrStats.tsx @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2024, s0up and the autobrr contributors. + * SPDX-License-Identifier: GPL-2.0-or-later + */ + import React from "react"; import { useServiceData } from "../../../hooks/useServiceData"; import { SonarrQueueItem } from "../../../types/service"; diff --git a/src/components/shared/Card.tsx b/src/components/shared/Card.tsx index 034721b..9d102cf 100644 --- a/src/components/shared/Card.tsx +++ b/src/components/shared/Card.tsx @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2024, s0up and the autobrr contributors. + * SPDX-License-Identifier: GPL-2.0-or-later + */ + import React, { ReactNode } from "react"; interface CardProps { diff --git a/src/components/shared/ErrorBoundary.tsx b/src/components/shared/ErrorBoundary.tsx index 47da554..8e2722e 100644 --- a/src/components/shared/ErrorBoundary.tsx +++ b/src/components/shared/ErrorBoundary.tsx @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2024, s0up and the autobrr contributors. + * SPDX-License-Identifier: GPL-2.0-or-later + */ + import { Component, ErrorInfo, ReactNode } from "react"; import { XCircleIcon, ArrowPathIcon } from "@heroicons/react/24/outline"; diff --git a/src/components/shared/Footer.tsx b/src/components/shared/Footer.tsx index 39d231f..ab6ffa6 100644 --- a/src/components/shared/Footer.tsx +++ b/src/components/shared/Footer.tsx @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2024, s0up and the autobrr contributors. + * SPDX-License-Identifier: GPL-2.0-or-later + */ + import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; import { faGithub } from "@fortawesome/free-brands-svg-icons"; diff --git a/src/components/shared/HealthIndicator.tsx b/src/components/shared/HealthIndicator.tsx index 9617341..0462996 100644 --- a/src/components/shared/HealthIndicator.tsx +++ b/src/components/shared/HealthIndicator.tsx @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2024, s0up and the autobrr contributors. + * SPDX-License-Identifier: GPL-2.0-or-later + */ + import React from "react"; import { LoadingState } from "./LoadingState"; diff --git a/src/components/shared/LoadingSkeleton.tsx b/src/components/shared/LoadingSkeleton.tsx index 18881c4..dd038e3 100644 --- a/src/components/shared/LoadingSkeleton.tsx +++ b/src/components/shared/LoadingSkeleton.tsx @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2024, s0up and the autobrr contributors. + * SPDX-License-Identifier: GPL-2.0-or-later + */ + import React from "react"; export const LoadingSkeleton: React.FC = () => ( diff --git a/src/components/shared/LoadingState.tsx b/src/components/shared/LoadingState.tsx index fccea8d..e56eff0 100644 --- a/src/components/shared/LoadingState.tsx +++ b/src/components/shared/LoadingState.tsx @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2024, s0up and the autobrr contributors. + * SPDX-License-Identifier: GPL-2.0-or-later + */ + import React from "react"; interface LoadingStateProps { diff --git a/src/components/shared/ServiceActions.tsx b/src/components/shared/ServiceActions.tsx index 605c084..379b4f4 100644 --- a/src/components/shared/ServiceActions.tsx +++ b/src/components/shared/ServiceActions.tsx @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2024, s0up and the autobrr contributors. + * SPDX-License-Identifier: GPL-2.0-or-later + */ + import React from "react"; interface ServiceAction { diff --git a/src/components/shared/ServiceStatus.tsx b/src/components/shared/ServiceStatus.tsx index 49b55b7..5d60666 100644 --- a/src/components/shared/ServiceStatus.tsx +++ b/src/components/shared/ServiceStatus.tsx @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2024, s0up and the autobrr contributors. + * SPDX-License-Identifier: GPL-2.0-or-later + */ + import React from "react"; import { ServiceStatus as ServiceStatusType } from "../../types/service"; diff --git a/src/components/shared/StatsLoadingSkeleton.tsx b/src/components/shared/StatsLoadingSkeleton.tsx index b42069a..d0e7177 100644 --- a/src/components/shared/StatsLoadingSkeleton.tsx +++ b/src/components/shared/StatsLoadingSkeleton.tsx @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2024, s0up and the autobrr contributors. + * SPDX-License-Identifier: GPL-2.0-or-later + */ + import React from "react"; interface StatsLoadingSkeletonProps { diff --git a/src/components/shared/StatusCounters.tsx b/src/components/shared/StatusCounters.tsx index 9d665df..dabf913 100644 --- a/src/components/shared/StatusCounters.tsx +++ b/src/components/shared/StatusCounters.tsx @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2024, s0up and the autobrr contributors. + * SPDX-License-Identifier: GPL-2.0-or-later + */ + import React from "react"; import { Service } from "../../types/service"; import { StatusIcon } from "../ui/StatusIcon"; diff --git a/src/components/ui/AnimatedModal.tsx b/src/components/ui/AnimatedModal.tsx index 5622867..7ca9b7f 100644 --- a/src/components/ui/AnimatedModal.tsx +++ b/src/components/ui/AnimatedModal.tsx @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2024, s0up and the autobrr contributors. + * SPDX-License-Identifier: GPL-2.0-or-later + */ + import React, { Fragment } from "react"; import { Dialog, Transition } from "@headlessui/react"; import { XMarkIcon } from "@heroicons/react/24/outline"; diff --git a/src/components/ui/Button.tsx b/src/components/ui/Button.tsx index c58ef93..6ebacd7 100644 --- a/src/components/ui/Button.tsx +++ b/src/components/ui/Button.tsx @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2024, s0up and the autobrr contributors. + * SPDX-License-Identifier: GPL-2.0-or-later + */ + import React from "react"; type ButtonVariant = "primary" | "secondary" | "danger"; diff --git a/src/components/ui/FormInput.tsx b/src/components/ui/FormInput.tsx index 96ad07c..96bd29d 100644 --- a/src/components/ui/FormInput.tsx +++ b/src/components/ui/FormInput.tsx @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2024, s0up and the autobrr contributors. + * SPDX-License-Identifier: GPL-2.0-or-later + */ + import React, { useState } from "react"; import { EyeIcon, EyeSlashIcon } from "@heroicons/react/24/solid"; diff --git a/src/components/ui/Modal.tsx b/src/components/ui/Modal.tsx index d88b8f3..8bc0398 100644 --- a/src/components/ui/Modal.tsx +++ b/src/components/ui/Modal.tsx @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2024, s0up and the autobrr contributors. + * SPDX-License-Identifier: GPL-2.0-or-later + */ + import React from "react"; interface ModalProps { diff --git a/src/components/ui/ServiceHeader.tsx b/src/components/ui/ServiceHeader.tsx index a1b3c83..920638d 100644 --- a/src/components/ui/ServiceHeader.tsx +++ b/src/components/ui/ServiceHeader.tsx @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2024, s0up and the autobrr contributors. + * SPDX-License-Identifier: GPL-2.0-or-later + */ + import React, { useState } from "react"; import { ArrowTopRightOnSquareIcon, diff --git a/src/components/ui/StatusIcon.tsx b/src/components/ui/StatusIcon.tsx index 62c56a9..4a81bc3 100644 --- a/src/components/ui/StatusIcon.tsx +++ b/src/components/ui/StatusIcon.tsx @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2024, s0up and the autobrr contributors. + * SPDX-License-Identifier: GPL-2.0-or-later + */ + import React from "react"; type StatusType = diff --git a/src/components/ui/StatusIndicator.tsx b/src/components/ui/StatusIndicator.tsx index 414f1f6..6deb3a1 100644 --- a/src/components/ui/StatusIndicator.tsx +++ b/src/components/ui/StatusIndicator.tsx @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2024, s0up and the autobrr contributors. + * SPDX-License-Identifier: GPL-2.0-or-later + */ + import React from "react"; type StatusType = diff --git a/src/config/api.ts b/src/config/api.ts index d04056c..0b6cfae 100644 --- a/src/config/api.ts +++ b/src/config/api.ts @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2024, s0up and the autobrr contributors. + * SPDX-License-Identifier: GPL-2.0-or-later + */ + // Use different base URLs for development and production export const API_BASE_URL = import.meta.env.DEV ? '' // Empty for development to use relative URLs with Vite proxy diff --git a/src/config/auth.ts b/src/config/auth.ts index 3e45ccd..6ec67ca 100644 --- a/src/config/auth.ts +++ b/src/config/auth.ts @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2024, s0up and the autobrr contributors. + * SPDX-License-Identifier: GPL-2.0-or-later + */ + // Get the current frontend URL const getFrontendUrl = () => { // In development, use localhost:3000 diff --git a/src/config/repoUrls.ts b/src/config/repoUrls.ts index 4972add..3cd4ef6 100644 --- a/src/config/repoUrls.ts +++ b/src/config/repoUrls.ts @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2024, s0up and the autobrr contributors. + * SPDX-License-Identifier: GPL-2.0-or-later + */ + interface RepoUrls { [key: string]: string; } diff --git a/src/config/serviceTemplates.ts b/src/config/serviceTemplates.ts index 050b2e8..f6ac3a2 100644 --- a/src/config/serviceTemplates.ts +++ b/src/config/serviceTemplates.ts @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2024, s0up and the autobrr contributors. + * SPDX-License-Identifier: GPL-2.0-or-later + */ + import { Service } from '../types/service'; export const serviceTemplates: Omit[] = [ diff --git a/src/contexts/AuthContext.tsx b/src/contexts/AuthContext.tsx index 96960ed..642e166 100644 --- a/src/contexts/AuthContext.tsx +++ b/src/contexts/AuthContext.tsx @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2024, s0up and the autobrr contributors. + * SPDX-License-Identifier: GPL-2.0-or-later + */ + import React, { createContext, useContext, diff --git a/src/contexts/ConfigurationContext.tsx b/src/contexts/ConfigurationContext.tsx index b0357f3..48c3ec7 100644 --- a/src/contexts/ConfigurationContext.tsx +++ b/src/contexts/ConfigurationContext.tsx @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2024, s0up and the autobrr contributors. + * SPDX-License-Identifier: GPL-2.0-or-later + */ + import { useState, useEffect, ReactNode, useCallback, useRef } from "react"; import { API_BASE_URL, API_PREFIX } from "../config/api"; import { ServiceConfig } from "../types/service"; diff --git a/src/contexts/context.ts b/src/contexts/context.ts index 64300c7..92d4a79 100644 --- a/src/contexts/context.ts +++ b/src/contexts/context.ts @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2024, s0up and the autobrr contributors. + * SPDX-License-Identifier: GPL-2.0-or-later + */ + import { createContext } from "react"; import { ConfigurationContextType } from "./types"; diff --git a/src/contexts/types.ts b/src/contexts/types.ts index 3efa4be..1035ac4 100644 --- a/src/contexts/types.ts +++ b/src/contexts/types.ts @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2024, s0up and the autobrr contributors. + * SPDX-License-Identifier: GPL-2.0-or-later + */ + import { ServiceConfig } from "../types/service"; export interface ConfigurationContextType { diff --git a/src/contexts/useConfiguration.ts b/src/contexts/useConfiguration.ts index 16c9982..f9a283b 100644 --- a/src/contexts/useConfiguration.ts +++ b/src/contexts/useConfiguration.ts @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2024, s0up and the autobrr contributors. + * SPDX-License-Identifier: GPL-2.0-or-later + */ + import { useContext } from 'react'; import { ConfigurationContext } from './context'; diff --git a/src/hooks/useCachedServiceData.ts b/src/hooks/useCachedServiceData.ts index 7fe8299..5d8705b 100644 --- a/src/hooks/useCachedServiceData.ts +++ b/src/hooks/useCachedServiceData.ts @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2024, s0up and the autobrr contributors. + * SPDX-License-Identifier: GPL-2.0-or-later + */ + import { useCallback } from 'react'; import { Service, ServiceType } from '../types/service'; import { useConfiguration } from '../contexts/useConfiguration'; diff --git a/src/hooks/useEventSource.ts b/src/hooks/useEventSource.ts index c9dc24d..b6fe3e5 100644 --- a/src/hooks/useEventSource.ts +++ b/src/hooks/useEventSource.ts @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2024, s0up and the autobrr contributors. + * SPDX-License-Identifier: GPL-2.0-or-later + */ + import { useEffect, useRef, useState, useCallback } from 'react'; import { useAuth } from '../contexts/AuthContext'; diff --git a/src/hooks/usePollingService.ts b/src/hooks/usePollingService.ts index 6f6c279..c30d7a0 100644 --- a/src/hooks/usePollingService.ts +++ b/src/hooks/usePollingService.ts @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2024, s0up and the autobrr contributors. + * SPDX-License-Identifier: GPL-2.0-or-later + */ + import { useEffect, useRef, useState, useCallback } from 'react'; import { useConfiguration } from '../contexts/useConfiguration'; diff --git a/src/hooks/useServiceData.ts b/src/hooks/useServiceData.ts index c66c909..42cc6c8 100644 --- a/src/hooks/useServiceData.ts +++ b/src/hooks/useServiceData.ts @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2024, s0up and the autobrr contributors. + * SPDX-License-Identifier: GPL-2.0-or-later + */ + import { useState, useEffect, useCallback, useRef } from 'react'; import { Service, diff --git a/src/hooks/useServiceHealth.ts b/src/hooks/useServiceHealth.ts index 7cfd878..86f5927 100644 --- a/src/hooks/useServiceHealth.ts +++ b/src/hooks/useServiceHealth.ts @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2024, s0up and the autobrr contributors. + * SPDX-License-Identifier: GPL-2.0-or-later + */ + import { useCallback } from 'react'; import { useServiceData } from './useServiceData'; import { ServiceStatus } from '../types/service'; diff --git a/src/hooks/useServiceManagement.ts b/src/hooks/useServiceManagement.ts index 78176d1..81241bd 100644 --- a/src/hooks/useServiceManagement.ts +++ b/src/hooks/useServiceManagement.ts @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2024, s0up and the autobrr contributors. + * SPDX-License-Identifier: GPL-2.0-or-later + */ + import { useCallback, useState } from 'react'; import { ServiceType } from '../types/service'; import { useConfiguration } from '../contexts/useConfiguration'; diff --git a/src/main.tsx b/src/main.tsx index cbc296b..8e7766a 100644 --- a/src/main.tsx +++ b/src/main.tsx @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2024, s0up and the autobrr contributors. + * SPDX-License-Identifier: GPL-2.0-or-later + */ + import React from "react"; import ReactDOM from "react-dom/client"; import App from "./App.tsx"; diff --git a/src/types/auth.ts b/src/types/auth.ts index 1fe4c27..1fbba9f 100644 --- a/src/types/auth.ts +++ b/src/types/auth.ts @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2024, s0up and the autobrr contributors. + * SPDX-License-Identifier: GPL-2.0-or-later + */ + import { AuthConfig } from "../config/auth"; export interface User { diff --git a/src/types/service.ts b/src/types/service.ts index 10bbdc5..aff6f6a 100644 --- a/src/types/service.ts +++ b/src/types/service.ts @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2024, s0up and the autobrr contributors. + * SPDX-License-Identifier: GPL-2.0-or-later + */ + export type ServiceStatus = 'online' | 'offline' | 'warning' | 'error' | 'loading' | 'pending' | 'unknown'; export type ServiceType = 'autobrr' | 'omegabrr' | 'radarr' | 'sonarr' | 'prowlarr'| 'overseerr' | 'plex' | 'tailscale' | 'maintainerr' | 'other'; diff --git a/src/utils/api.ts b/src/utils/api.ts index f7e19d4..d43ef92 100644 --- a/src/utils/api.ts +++ b/src/utils/api.ts @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2024, s0up and the autobrr contributors. + * SPDX-License-Identifier: GPL-2.0-or-later + */ + interface RequestOptions { method: string; headers?: Record; diff --git a/src/utils/cache.ts b/src/utils/cache.ts index 1e58fa0..00f6008 100644 --- a/src/utils/cache.ts +++ b/src/utils/cache.ts @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2024, s0up and the autobrr contributors. + * SPDX-License-Identifier: GPL-2.0-or-later + */ + interface CacheEntry { data: T; timestamp: number; diff --git a/src/utils/index.ts b/src/utils/index.ts index 6c661e5..b859d9d 100644 --- a/src/utils/index.ts +++ b/src/utils/index.ts @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2024, s0up and the autobrr contributors. + * SPDX-License-Identifier: GPL-2.0-or-later + */ + export function classNames(...classes: (string | boolean | undefined | null)[]): string { return classes.filter(Boolean).join(' '); }