diff options
| author | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2026-03-21 19:39:03 +0100 |
|---|---|---|
| committer | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2026-03-21 19:39:03 +0100 |
| commit | 5cfa9fa96401f130ff94bd74b5e247313c1c921d (patch) | |
| tree | d8ff63b0e23e74ce46f24fe7e74444cda9c4656a | |
| parent | build(cog): Init (diff) | |
| download | web-client-5cfa9fa96401f130ff94bd74b5e247313c1c921d.zip | |
chore(treewide): Apply copyright notices
67 files changed, 612 insertions, 7 deletions
diff --git a/.envrc b/.envrc index e103cca..d990cbe 100644 --- a/.envrc +++ b/.envrc @@ -1,9 +1,10 @@ #!/usr/bin/env sh -# rocie - An enterprise grocery management system +# rocie - An enterprise grocery management system - Web app # # Copyright (C) 2024 Benedikt Peetz <benedikt.peetz@b-peetz.de> # Copyright (C) 2025 Benedikt Peetz <benedikt.peetz@b-peetz.de> +# Copyright (C) 2026 Benedikt Peetz <benedikt.peetz@b-peetz.de> # SPDX-License-Identifier: GPL-3.0-or-later # # This file is part of Rocie. diff --git a/.gitignore b/.gitignore index cefbd74..bac304a 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,13 @@ +# rocie - An enterprise grocery management system - Web app +# +# Copyright (C) 2026 Benedikt Peetz <benedikt.peetz@b-peetz.de> +# SPDX-License-Identifier: GPL-3.0-or-later +# +# This file is part of Rocie. +# +# You should have received a copy of the License along with this program. +# If not, see <https://www.gnu.org/licenses/gpl-3.0.txt>. + /target /setup/target /dist diff --git a/.reuse/templates/default.jinja2 b/.reuse/templates/default.jinja2 index 41b4bf0..f4a35f0 100644 --- a/.reuse/templates/default.jinja2 +++ b/.reuse/templates/default.jinja2 @@ -1,5 +1,5 @@ {# -rocie - An enterprise grocery management system +rocie - An enterprise grocery management system - Web app Copyright (C) 2024 Benedikt Peetz <benedikt.peetz@b-peetz.de> Copyright (C) 2025 Benedikt Peetz <benedikt.peetz@b-peetz.de> diff --git a/Cargo.lock.license b/Cargo.lock.license new file mode 100644 index 0000000..fda8ef4 --- /dev/null +++ b/Cargo.lock.license @@ -0,0 +1,9 @@ +rocie - An enterprise grocery management system - Web app + +Copyright (C) 2026 Benedikt Peetz <benedikt.peetz@b-peetz.de> +SPDX-License-Identifier: GPL-3.0-or-later + +This file is part of Rocie. + +You should have received a copy of the License along with this program. +If not, see <https://www.gnu.org/licenses/gpl-3.0.txt>. diff --git a/Cargo.toml b/Cargo.toml index 9749bee..2d011e3 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,3 +1,13 @@ +# rocie - An enterprise grocery management system - Web app +# +# Copyright (C) 2026 Benedikt Peetz <benedikt.peetz@b-peetz.de> +# SPDX-License-Identifier: GPL-3.0-or-later +# +# This file is part of Rocie. +# +# You should have received a copy of the License along with this program. +# If not, see <https://www.gnu.org/licenses/gpl-3.0.txt>. + [package] name = "rocie-mobile" keywords = [] diff --git a/Trunk.toml b/Trunk.toml index fc54ece..a40dbb9 100644 --- a/Trunk.toml +++ b/Trunk.toml @@ -1,3 +1,13 @@ +# rocie - An enterprise grocery management system - Web app +# +# Copyright (C) 2026 Benedikt Peetz <benedikt.peetz@b-peetz.de> +# SPDX-License-Identifier: GPL-3.0-or-later +# +# This file is part of Rocie. +# +# You should have received a copy of the License along with this program. +# If not, see <https://www.gnu.org/licenses/gpl-3.0.txt>. + [[hooks]] stage = "pre_build" command = "tailwindcss" diff --git a/cog.toml b/cog.toml index 90dbbe5..e1adff7 100644 --- a/cog.toml +++ b/cog.toml @@ -1,4 +1,4 @@ -# rocie - An enterprise grocery management system +# rocie - An enterprise grocery management system - Web app # # Copyright (C) 2026 Benedikt Peetz <benedikt.peetz@b-peetz.de> # SPDX-License-Identifier: GPL-3.0-or-later diff --git a/flake.lock.license b/flake.lock.license new file mode 100644 index 0000000..fda8ef4 --- /dev/null +++ b/flake.lock.license @@ -0,0 +1,9 @@ +rocie - An enterprise grocery management system - Web app + +Copyright (C) 2026 Benedikt Peetz <benedikt.peetz@b-peetz.de> +SPDX-License-Identifier: GPL-3.0-or-later + +This file is part of Rocie. + +You should have received a copy of the License along with this program. +If not, see <https://www.gnu.org/licenses/gpl-3.0.txt>. diff --git a/flake.nix b/flake.nix index 425a1a9..bc989d6 100644 --- a/flake.nix +++ b/flake.nix @@ -1,7 +1,8 @@ -# rocie - An enterprise grocery management system +# rocie - An enterprise grocery management system - Web app # # Copyright (C) 2024 Benedikt Peetz <benedikt.peetz@b-peetz.de> # Copyright (C) 2025 Benedikt Peetz <benedikt.peetz@b-peetz.de> +# Copyright (C) 2026 Benedikt Peetz <benedikt.peetz@b-peetz.de> # SPDX-License-Identifier: GPL-3.0-or-later # # This file is part of Rocie. diff --git a/index.html b/index.html index 303ca24..2a30a50 100644 --- a/index.html +++ b/index.html @@ -1,3 +1,15 @@ +<!-- +rocie - An enterprise grocery management system - Web app + +Copyright (C) 2026 Benedikt Peetz <benedikt.peetz@b-peetz.de> +SPDX-License-Identifier: GPL-3.0-or-later + +This file is part of Rocie. + +You should have received a copy of the License along with this program. +If not, see <https://www.gnu.org/licenses/gpl-3.0.txt>. +--> + <!doctype html> <html lang="en"> <head> diff --git a/nix/package.nix b/nix/package.nix index e692242..c01c320 100644 --- a/nix/package.nix +++ b/nix/package.nix @@ -1,7 +1,8 @@ -# rocie - An enterprise grocery management system +# rocie - An enterprise grocery management system - Web app # # Copyright (C) 2024 Benedikt Peetz <benedikt.peetz@b-peetz.de> # Copyright (C) 2025 Benedikt Peetz <benedikt.peetz@b-peetz.de> +# Copyright (C) 2026 Benedikt Peetz <benedikt.peetz@b-peetz.de> # SPDX-License-Identifier: GPL-3.0-or-later # # This file is part of Rocie. diff --git a/public/input.css b/public/input.css index b5c61c9..fbc9c72 100644 --- a/public/input.css +++ b/public/input.css @@ -1,3 +1,15 @@ +/* + * rocie - An enterprise grocery management system - Web app + * + * Copyright (C) 2026 Benedikt Peetz <benedikt.peetz@b-peetz.de> + * SPDX-License-Identifier: GPL-3.0-or-later + * + * This file is part of Rocie. + * + * You should have received a copy of the License along with this program. + * If not, see <https://www.gnu.org/licenses/gpl-3.0.txt>. + */ + @tailwind base; @tailwind components; @tailwind utilities; diff --git a/public/logo.svg.license b/public/logo.svg.license new file mode 100644 index 0000000..fda8ef4 --- /dev/null +++ b/public/logo.svg.license @@ -0,0 +1,9 @@ +rocie - An enterprise grocery management system - Web app + +Copyright (C) 2026 Benedikt Peetz <benedikt.peetz@b-peetz.de> +SPDX-License-Identifier: GPL-3.0-or-later + +This file is part of Rocie. + +You should have received a copy of the License along with this program. +If not, see <https://www.gnu.org/licenses/gpl-3.0.txt>. diff --git a/public/manifest.json.license b/public/manifest.json.license new file mode 100644 index 0000000..fda8ef4 --- /dev/null +++ b/public/manifest.json.license @@ -0,0 +1,9 @@ +rocie - An enterprise grocery management system - Web app + +Copyright (C) 2026 Benedikt Peetz <benedikt.peetz@b-peetz.de> +SPDX-License-Identifier: GPL-3.0-or-later + +This file is part of Rocie. + +You should have received a copy of the License along with this program. +If not, see <https://www.gnu.org/licenses/gpl-3.0.txt>. diff --git a/rocie-macros/.gitignore b/rocie-macros/.gitignore index ea8c4bf..d11eb93 100644 --- a/rocie-macros/.gitignore +++ b/rocie-macros/.gitignore @@ -1 +1,11 @@ +# rocie - An enterprise grocery management system - Web app +# +# Copyright (C) 2026 Benedikt Peetz <benedikt.peetz@b-peetz.de> +# SPDX-License-Identifier: GPL-3.0-or-later +# +# This file is part of Rocie. +# +# You should have received a copy of the License along with this program. +# If not, see <https://www.gnu.org/licenses/gpl-3.0.txt>. + /target diff --git a/rocie-macros/Cargo.lock.license b/rocie-macros/Cargo.lock.license new file mode 100644 index 0000000..fda8ef4 --- /dev/null +++ b/rocie-macros/Cargo.lock.license @@ -0,0 +1,9 @@ +rocie - An enterprise grocery management system - Web app + +Copyright (C) 2026 Benedikt Peetz <benedikt.peetz@b-peetz.de> +SPDX-License-Identifier: GPL-3.0-or-later + +This file is part of Rocie. + +You should have received a copy of the License along with this program. +If not, see <https://www.gnu.org/licenses/gpl-3.0.txt>. diff --git a/rocie-macros/Cargo.toml b/rocie-macros/Cargo.toml index afbb942..33e4aae 100644 --- a/rocie-macros/Cargo.toml +++ b/rocie-macros/Cargo.toml @@ -1,3 +1,13 @@ +# rocie - An enterprise grocery management system - Web app +# +# Copyright (C) 2026 Benedikt Peetz <benedikt.peetz@b-peetz.de> +# SPDX-License-Identifier: GPL-3.0-or-later +# +# This file is part of Rocie. +# +# You should have received a copy of the License along with this program. +# If not, see <https://www.gnu.org/licenses/gpl-3.0.txt>. + [package] name = "rocie-macros" version = "0.1.0" diff --git a/rocie-macros/src/form/generate.rs b/rocie-macros/src/form/generate.rs index 89acea8..732bb58 100644 --- a/rocie-macros/src/form/generate.rs +++ b/rocie-macros/src/form/generate.rs @@ -1,3 +1,13 @@ +// rocie - An enterprise grocery management system - Web app +// +// Copyright (C) 2026 Benedikt Peetz <benedikt.peetz@b-peetz.de> +// SPDX-License-Identifier: GPL-3.0-or-later +// +// This file is part of Rocie. +// +// You should have received a copy of the License along with this program. +// If not, see <https://www.gnu.org/licenses/gpl-3.0.txt>. + use proc_macro::TokenStream; use proc_macro2::TokenStream as TokenStream2; use quote::{format_ident, quote}; diff --git a/rocie-macros/src/form/mod.rs b/rocie-macros/src/form/mod.rs index 978b081..9586905 100644 --- a/rocie-macros/src/form/mod.rs +++ b/rocie-macros/src/form/mod.rs @@ -1,3 +1,13 @@ +// rocie - An enterprise grocery management system - Web app +// +// Copyright (C) 2026 Benedikt Peetz <benedikt.peetz@b-peetz.de> +// SPDX-License-Identifier: GPL-3.0-or-later +// +// This file is part of Rocie. +// +// You should have received a copy of the License along with this program. +// If not, see <https://www.gnu.org/licenses/gpl-3.0.txt>. + use syn::{Expr, Ident, LitStr, Type}; mod generate; diff --git a/rocie-macros/src/form/parse.rs b/rocie-macros/src/form/parse.rs index 2cf8799..1af8cdc 100644 --- a/rocie-macros/src/form/parse.rs +++ b/rocie-macros/src/form/parse.rs @@ -1,3 +1,13 @@ +// rocie - An enterprise grocery management system - Web app +// +// Copyright (C) 2026 Benedikt Peetz <benedikt.peetz@b-peetz.de> +// SPDX-License-Identifier: GPL-3.0-or-later +// +// This file is part of Rocie. +// +// You should have received a copy of the License along with this program. +// If not, see <https://www.gnu.org/licenses/gpl-3.0.txt>. + use quote::format_ident; use syn::{ Expr, Ident, LitStr, Token, Type, diff --git a/rocie-macros/src/lib.rs b/rocie-macros/src/lib.rs index 4fb4340..984d1fa 100644 --- a/rocie-macros/src/lib.rs +++ b/rocie-macros/src/lib.rs @@ -1,3 +1,13 @@ +// rocie - An enterprise grocery management system - Web app +// +// Copyright (C) 2026 Benedikt Peetz <benedikt.peetz@b-peetz.de> +// SPDX-License-Identifier: GPL-3.0-or-later +// +// This file is part of Rocie. +// +// You should have received a copy of the License along with this program. +// If not, see <https://www.gnu.org/licenses/gpl-3.0.txt>. + use proc_macro::TokenStream; use crate::form::form_impl; diff --git a/scripts/generate_logo.sh b/scripts/generate_logo.sh index af89bc8..bd97ecf 100755 --- a/scripts/generate_logo.sh +++ b/scripts/generate_logo.sh @@ -1,5 +1,15 @@ #! /bin/sh +# rocie - An enterprise grocery management system - Web app +# +# Copyright (C) 2026 Benedikt Peetz <benedikt.peetz@b-peetz.de> +# SPDX-License-Identifier: GPL-3.0-or-later +# +# This file is part of Rocie. +# +# You should have received a copy of the License along with this program. +# If not, see <https://www.gnu.org/licenses/gpl-3.0.txt>. + if [ -f "./dist/favicon-1024.png" ]; then # Bail out early exit 0 diff --git a/scripts/setup.sh b/scripts/setup.sh index 175ec13..f456fcc 100755 --- a/scripts/setup.sh +++ b/scripts/setup.sh @@ -1,5 +1,15 @@ #! /usr/bin/env sh +# rocie - An enterprise grocery management system - Web app +# +# Copyright (C) 2026 Benedikt Peetz <benedikt.peetz@b-peetz.de> +# SPDX-License-Identifier: GPL-3.0-or-later +# +# This file is part of Rocie. +# +# You should have received a copy of the License along with this program. +# If not, see <https://www.gnu.org/licenses/gpl-3.0.txt>. + cargo run --manifest-path ./webserver/Cargo.toml & trunk serve diff --git a/setup/Cargo.lock.license b/setup/Cargo.lock.license new file mode 100644 index 0000000..fda8ef4 --- /dev/null +++ b/setup/Cargo.lock.license @@ -0,0 +1,9 @@ +rocie - An enterprise grocery management system - Web app + +Copyright (C) 2026 Benedikt Peetz <benedikt.peetz@b-peetz.de> +SPDX-License-Identifier: GPL-3.0-or-later + +This file is part of Rocie. + +You should have received a copy of the License along with this program. +If not, see <https://www.gnu.org/licenses/gpl-3.0.txt>. diff --git a/setup/Cargo.toml b/setup/Cargo.toml index bb8f741..c1dc114 100644 --- a/setup/Cargo.toml +++ b/setup/Cargo.toml @@ -1,3 +1,13 @@ +# rocie - An enterprise grocery management system - Web app +# +# Copyright (C) 2026 Benedikt Peetz <benedikt.peetz@b-peetz.de> +# SPDX-License-Identifier: GPL-3.0-or-later +# +# This file is part of Rocie. +# +# You should have received a copy of the License along with this program. +# If not, see <https://www.gnu.org/licenses/gpl-3.0.txt>. + [package] name = "setup" version = "0.1.0" diff --git a/setup/src/main.rs b/setup/src/main.rs index 90bd23d..436835a 100644 --- a/setup/src/main.rs +++ b/setup/src/main.rs @@ -1,3 +1,13 @@ +// rocie - An enterprise grocery management system - Web app +// +// Copyright (C) 2026 Benedikt Peetz <benedikt.peetz@b-peetz.de> +// SPDX-License-Identifier: GPL-3.0-or-later +// +// This file is part of Rocie. +// +// You should have received a copy of the License along with this program. +// If not, see <https://www.gnu.org/licenses/gpl-3.0.txt>. + use std::{ process::{Child, Command}, thread::sleep, diff --git a/src/api/mod.rs b/src/api/mod.rs index eb9ca3a..26b98a1 100644 --- a/src/api/mod.rs +++ b/src/api/mod.rs @@ -1,3 +1,13 @@ +// rocie - An enterprise grocery management system - Web app +// +// Copyright (C) 2026 Benedikt Peetz <benedikt.peetz@b-peetz.de> +// SPDX-License-Identifier: GPL-3.0-or-later +// +// This file is part of Rocie. +// +// You should have received a copy of the License along with this program. +// If not, see <https://www.gnu.org/licenses/gpl-3.0.txt>. + use leptos::error::Error; use rocie_client::{ apis::{ diff --git a/src/components/async_fetch.rs b/src/components/async_fetch.rs index 43469a7..b32de10 100644 --- a/src/components/async_fetch.rs +++ b/src/components/async_fetch.rs @@ -1,3 +1,13 @@ +// rocie - An enterprise grocery management system - Web app +// +// Copyright (C) 2026 Benedikt Peetz <benedikt.peetz@b-peetz.de> +// SPDX-License-Identifier: GPL-3.0-or-later +// +// This file is part of Rocie. +// +// You should have received a copy of the License along with this program. +// If not, see <https://www.gnu.org/licenses/gpl-3.0.txt>. + macro_rules! AsyncResource { ( ( diff --git a/src/components/banner.rs b/src/components/banner.rs index 3244a07..856e718 100644 --- a/src/components/banner.rs +++ b/src/components/banner.rs @@ -1,3 +1,13 @@ +// rocie - An enterprise grocery management system - Web app +// +// Copyright (C) 2026 Benedikt Peetz <benedikt.peetz@b-peetz.de> +// SPDX-License-Identifier: GPL-3.0-or-later +// +// This file is part of Rocie. +// +// You should have received a copy of the License along with this program. +// If not, see <https://www.gnu.org/licenses/gpl-3.0.txt>. + use leptos::{ IntoView, component, prelude::{ClassAttribute, ElementChild}, diff --git a/src/components/buy.rs.license b/src/components/buy.rs.license new file mode 100644 index 0000000..fda8ef4 --- /dev/null +++ b/src/components/buy.rs.license @@ -0,0 +1,9 @@ +rocie - An enterprise grocery management system - Web app + +Copyright (C) 2026 Benedikt Peetz <benedikt.peetz@b-peetz.de> +SPDX-License-Identifier: GPL-3.0-or-later + +This file is part of Rocie. + +You should have received a copy of the License along with this program. +If not, see <https://www.gnu.org/licenses/gpl-3.0.txt>. diff --git a/src/components/catch_errors.rs b/src/components/catch_errors.rs index d5a452d..fed6c4c 100644 --- a/src/components/catch_errors.rs +++ b/src/components/catch_errors.rs @@ -1,3 +1,13 @@ +// rocie - An enterprise grocery management system - Web app +// +// Copyright (C) 2026 Benedikt Peetz <benedikt.peetz@b-peetz.de> +// SPDX-License-Identifier: GPL-3.0-or-later +// +// This file is part of Rocie. +// +// You should have received a copy of the License along with this program. +// If not, see <https://www.gnu.org/licenses/gpl-3.0.txt>. + use leptos::{ IntoView, component, error::ErrorBoundary, diff --git a/src/components/checkbox_placeholder.rs b/src/components/checkbox_placeholder.rs index a1aaa0c..2006808 100644 --- a/src/components/checkbox_placeholder.rs +++ b/src/components/checkbox_placeholder.rs @@ -1,3 +1,13 @@ +// rocie - An enterprise grocery management system - Web app +// +// Copyright (C) 2026 Benedikt Peetz <benedikt.peetz@b-peetz.de> +// SPDX-License-Identifier: GPL-3.0-or-later +// +// This file is part of Rocie. +// +// You should have received a copy of the License along with this program. +// If not, see <https://www.gnu.org/licenses/gpl-3.0.txt>. + use leptos::{ IntoView, component, html::Input, diff --git a/src/components/container.rs b/src/components/container.rs index 3b56713..32005c5 100644 --- a/src/components/container.rs +++ b/src/components/container.rs @@ -1,3 +1,13 @@ +// rocie - An enterprise grocery management system - Web app +// +// Copyright (C) 2026 Benedikt Peetz <benedikt.peetz@b-peetz.de> +// SPDX-License-Identifier: GPL-3.0-or-later +// +// This file is part of Rocie. +// +// You should have received a copy of the License along with this program. +// If not, see <https://www.gnu.org/licenses/gpl-3.0.txt>. + use leptos::{ IntoView, component, prelude::{Children, ClassAttribute, ElementChild}, diff --git a/src/components/form.rs b/src/components/form.rs index 9c371ad..f2ae396 100644 --- a/src/components/form.rs +++ b/src/components/form.rs @@ -1 +1,11 @@ +// rocie - An enterprise grocery management system - Web app +// +// Copyright (C) 2026 Benedikt Peetz <benedikt.peetz@b-peetz.de> +// SPDX-License-Identifier: GPL-3.0-or-later +// +// This file is part of Rocie. +// +// You should have received a copy of the License along with this program. +// If not, see <https://www.gnu.org/licenses/gpl-3.0.txt>. + pub(crate) use rocie_macros::Form; diff --git a/src/components/icon_p.rs b/src/components/icon_p.rs index 372e280..cf979ad 100644 --- a/src/components/icon_p.rs +++ b/src/components/icon_p.rs @@ -1,3 +1,13 @@ +// rocie - An enterprise grocery management system - Web app +// +// Copyright (C) 2026 Benedikt Peetz <benedikt.peetz@b-peetz.de> +// SPDX-License-Identifier: GPL-3.0-or-later +// +// This file is part of Rocie. +// +// You should have received a copy of the License along with this program. +// If not, see <https://www.gnu.org/licenses/gpl-3.0.txt>. + use leptos::{ IntoView, component, prelude::{ClassAttribute, ElementChild, Signal}, diff --git a/src/components/input_placeholder.rs b/src/components/input_placeholder.rs index 0589363..47cd06d 100644 --- a/src/components/input_placeholder.rs +++ b/src/components/input_placeholder.rs @@ -1,3 +1,13 @@ +// rocie - An enterprise grocery management system - Web app +// +// Copyright (C) 2026 Benedikt Peetz <benedikt.peetz@b-peetz.de> +// SPDX-License-Identifier: GPL-3.0-or-later +// +// This file is part of Rocie. +// +// You should have received a copy of the License along with this program. +// If not, see <https://www.gnu.org/licenses/gpl-3.0.txt>. + use leptos::{ IntoView, component, error::Error, diff --git a/src/components/inventory.rs b/src/components/inventory.rs index 31b1c12..905e066 100644 --- a/src/components/inventory.rs +++ b/src/components/inventory.rs @@ -1,3 +1,13 @@ +// rocie - An enterprise grocery management system - Web app +// +// Copyright (C) 2026 Benedikt Peetz <benedikt.peetz@b-peetz.de> +// SPDX-License-Identifier: GPL-3.0-or-later +// +// This file is part of Rocie. +// +// You should have received a copy of the License along with this program. +// If not, see <https://www.gnu.org/licenses/gpl-3.0.txt>. + use leptos::{IntoView, component, view}; use crate::{ diff --git a/src/components/login_wall.rs b/src/components/login_wall.rs index fd5c64f..134e278 100644 --- a/src/components/login_wall.rs +++ b/src/components/login_wall.rs @@ -1,3 +1,13 @@ +// rocie - An enterprise grocery management system - Web app +// +// Copyright (C) 2026 Benedikt Peetz <benedikt.peetz@b-peetz.de> +// SPDX-License-Identifier: GPL-3.0-or-later +// +// This file is part of Rocie. +// +// You should have received a copy of the License along with this program. +// If not, see <https://www.gnu.org/licenses/gpl-3.0.txt>. + use leptos::{ IntoView, component, error::Error, diff --git a/src/components/mod.rs b/src/components/mod.rs index 2a3a0b1..ac9c9a7 100644 --- a/src/components/mod.rs +++ b/src/components/mod.rs @@ -1,3 +1,13 @@ +// rocie - An enterprise grocery management system - Web app +// +// Copyright (C) 2026 Benedikt Peetz <benedikt.peetz@b-peetz.de> +// SPDX-License-Identifier: GPL-3.0-or-later +// +// This file is part of Rocie. +// +// You should have received a copy of the License along with this program. +// If not, see <https://www.gnu.org/licenses/gpl-3.0.txt>. + use std::sync::atomic::{AtomicU32, Ordering}; // Generic diff --git a/src/components/product_overview.rs b/src/components/product_overview.rs index 233b8a7..6cded3f 100644 --- a/src/components/product_overview.rs +++ b/src/components/product_overview.rs @@ -1,3 +1,13 @@ +// rocie - An enterprise grocery management system - Web app +// +// Copyright (C) 2026 Benedikt Peetz <benedikt.peetz@b-peetz.de> +// SPDX-License-Identifier: GPL-3.0-or-later +// +// This file is part of Rocie. +// +// You should have received a copy of the License along with this program. +// If not, see <https://www.gnu.org/licenses/gpl-3.0.txt>. + use leptos::{IntoView, component, view}; use crate::{ diff --git a/src/components/product_parent_overview.rs b/src/components/product_parent_overview.rs index 4aa2a0f..ad55f9f 100644 --- a/src/components/product_parent_overview.rs +++ b/src/components/product_parent_overview.rs @@ -1,3 +1,13 @@ +// rocie - An enterprise grocery management system - Web app +// +// Copyright (C) 2026 Benedikt Peetz <benedikt.peetz@b-peetz.de> +// SPDX-License-Identifier: GPL-3.0-or-later +// +// This file is part of Rocie. +// +// You should have received a copy of the License along with this program. +// If not, see <https://www.gnu.org/licenses/gpl-3.0.txt>. + use leptos::{IntoView, component, view}; use crate::{ diff --git a/src/components/recipies.rs b/src/components/recipies.rs index 755954e..81975fb 100644 --- a/src/components/recipies.rs +++ b/src/components/recipies.rs @@ -1,3 +1,13 @@ +// rocie - An enterprise grocery management system - Web app +// +// Copyright (C) 2026 Benedikt Peetz <benedikt.peetz@b-peetz.de> +// SPDX-License-Identifier: GPL-3.0-or-later +// +// This file is part of Rocie. +// +// You should have received a copy of the License along with this program. +// If not, see <https://www.gnu.org/licenses/gpl-3.0.txt>. + use leptos::{IntoView, component, view}; use crate::{ diff --git a/src/components/select_placeholder.rs b/src/components/select_placeholder.rs index 7289793..06c9103 100644 --- a/src/components/select_placeholder.rs +++ b/src/components/select_placeholder.rs @@ -1,3 +1,13 @@ +// rocie - An enterprise grocery management system - Web app +// +// Copyright (C) 2026 Benedikt Peetz <benedikt.peetz@b-peetz.de> +// SPDX-License-Identifier: GPL-3.0-or-later +// +// This file is part of Rocie. +// +// You should have received a copy of the License along with this program. +// If not, see <https://www.gnu.org/licenses/gpl-3.0.txt>. + use leptos::{ IntoView, component, error::Error, diff --git a/src/components/site_header.rs b/src/components/site_header.rs index 65f7137..f1d80c1 100644 --- a/src/components/site_header.rs +++ b/src/components/site_header.rs @@ -1,3 +1,13 @@ +// rocie - An enterprise grocery management system - Web app +// +// Copyright (C) 2026 Benedikt Peetz <benedikt.peetz@b-peetz.de> +// SPDX-License-Identifier: GPL-3.0-or-later +// +// This file is part of Rocie. +// +// You should have received a copy of the License along with this program. +// If not, see <https://www.gnu.org/licenses/gpl-3.0.txt>. + use icondata_core::Icon as DataIcon; use leptos::prelude::{ClassAttribute, ElementChild, IntoView, OnAttribute, component, view}; use leptos_icons::Icon; diff --git a/src/components/textarea_placeholder.rs b/src/components/textarea_placeholder.rs index a0bae6d..1feb19f 100644 --- a/src/components/textarea_placeholder.rs +++ b/src/components/textarea_placeholder.rs @@ -1,3 +1,13 @@ +// rocie - An enterprise grocery management system - Web app +// +// Copyright (C) 2026 Benedikt Peetz <benedikt.peetz@b-peetz.de> +// SPDX-License-Identifier: GPL-3.0-or-later +// +// This file is part of Rocie. +// +// You should have received a copy of the License along with this program. +// If not, see <https://www.gnu.org/licenses/gpl-3.0.txt>. + use leptos::{ IntoView, component, html::Textarea, diff --git a/src/components/unit_overview.rs b/src/components/unit_overview.rs index 0ea3825..66e8b26 100644 --- a/src/components/unit_overview.rs +++ b/src/components/unit_overview.rs @@ -1,3 +1,13 @@ +// rocie - An enterprise grocery management system - Web app +// +// Copyright (C) 2026 Benedikt Peetz <benedikt.peetz@b-peetz.de> +// SPDX-License-Identifier: GPL-3.0-or-later +// +// This file is part of Rocie. +// +// You should have received a copy of the License along with this program. +// If not, see <https://www.gnu.org/licenses/gpl-3.0.txt>. + use leptos::{IntoView, component, view}; use rocie_client::models::{Unit, UnitProperty}; diff --git a/src/lib.rs b/src/lib.rs index 45f6e90..3357c1e 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,4 +1,15 @@ #![expect( + +// rocie - An enterprise grocery management system - Web app +// +// Copyright (C) 2026 Benedikt Peetz <benedikt.peetz@b-peetz.de> +// SPDX-License-Identifier: GPL-3.0-or-later +// +// This file is part of Rocie. +// +// You should have received a copy of the License along with this program. +// If not, see <https://www.gnu.org/licenses/gpl-3.0.txt>. + unreachable_pub, reason = "leptos' component macro generates this warning" )] diff --git a/src/main.rs b/src/main.rs index c3eaadf..dabeedb 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,4 +1,15 @@ #![expect( + +// rocie - An enterprise grocery management system - Web app +// +// Copyright (C) 2026 Benedikt Peetz <benedikt.peetz@b-peetz.de> +// SPDX-License-Identifier: GPL-3.0-or-later +// +// This file is part of Rocie. +// +// You should have received a copy of the License along with this program. +// If not, see <https://www.gnu.org/licenses/gpl-3.0.txt>. + unused_crate_dependencies, reason = "We use them in the lib version of this crate" )] diff --git a/src/pages/associate_barcode.rs b/src/pages/associate_barcode.rs index 0e1308d..0bd5f69 100644 --- a/src/pages/associate_barcode.rs +++ b/src/pages/associate_barcode.rs @@ -1,3 +1,13 @@ +// rocie - An enterprise grocery management system - Web app +// +// Copyright (C) 2026 Benedikt Peetz <benedikt.peetz@b-peetz.de> +// SPDX-License-Identifier: GPL-3.0-or-later +// +// This file is part of Rocie. +// +// You should have received a copy of the License along with this program. +// If not, see <https://www.gnu.org/licenses/gpl-3.0.txt>. + use leptos::{ IntoView, component, prelude::{ElementExt, Get, Show, WriteSignal, signal}, diff --git a/src/pages/buy.rs b/src/pages/buy.rs index e4cd599..b5349e7 100644 --- a/src/pages/buy.rs +++ b/src/pages/buy.rs @@ -1,3 +1,13 @@ +// rocie - An enterprise grocery management system - Web app +// +// Copyright (C) 2026 Benedikt Peetz <benedikt.peetz@b-peetz.de> +// SPDX-License-Identifier: GPL-3.0-or-later +// +// This file is part of Rocie. +// +// You should have received a copy of the License along with this program. +// If not, see <https://www.gnu.org/licenses/gpl-3.0.txt>. + use leptos::{ IntoView, component, prelude::{Get, Show, signal}, diff --git a/src/pages/create_product.rs b/src/pages/create_product.rs index fdf8f28..3a8cd39 100644 --- a/src/pages/create_product.rs +++ b/src/pages/create_product.rs @@ -1,3 +1,13 @@ +// rocie - An enterprise grocery management system - Web app +// +// Copyright (C) 2026 Benedikt Peetz <benedikt.peetz@b-peetz.de> +// SPDX-License-Identifier: GPL-3.0-or-later +// +// This file is part of Rocie. +// +// You should have received a copy of the License along with this program. +// If not, see <https://www.gnu.org/licenses/gpl-3.0.txt>. + use std::{convert::Infallible, iter, str::FromStr}; use leptos::{ diff --git a/src/pages/create_product_parent.rs b/src/pages/create_product_parent.rs index 152347a..29771b5 100644 --- a/src/pages/create_product_parent.rs +++ b/src/pages/create_product_parent.rs @@ -1,3 +1,13 @@ +// rocie - An enterprise grocery management system - Web app +// +// Copyright (C) 2026 Benedikt Peetz <benedikt.peetz@b-peetz.de> +// SPDX-License-Identifier: GPL-3.0-or-later +// +// This file is part of Rocie. +// +// You should have received a copy of the License along with this program. +// If not, see <https://www.gnu.org/licenses/gpl-3.0.txt>. + use std::{convert::Infallible, iter, str::FromStr}; use leptos::{ diff --git a/src/pages/create_recipe.rs b/src/pages/create_recipe.rs index 20ec4ed..3ef6143 100644 --- a/src/pages/create_recipe.rs +++ b/src/pages/create_recipe.rs @@ -1,3 +1,13 @@ +// rocie - An enterprise grocery management system - Web app +// +// Copyright (C) 2026 Benedikt Peetz <benedikt.peetz@b-peetz.de> +// SPDX-License-Identifier: GPL-3.0-or-later +// +// This file is part of Rocie. +// +// You should have received a copy of the License along with this program. +// If not, see <https://www.gnu.org/licenses/gpl-3.0.txt>. + use std::{iter, str::FromStr}; use leptos::{ diff --git a/src/pages/home.rs b/src/pages/home.rs index e3767fd..dfc2c54 100644 --- a/src/pages/home.rs +++ b/src/pages/home.rs @@ -1,3 +1,13 @@ +// rocie - An enterprise grocery management system - Web app +// +// Copyright (C) 2026 Benedikt Peetz <benedikt.peetz@b-peetz.de> +// SPDX-License-Identifier: GPL-3.0-or-later +// +// This file is part of Rocie. +// +// You should have received a copy of the License along with this program. +// If not, see <https://www.gnu.org/licenses/gpl-3.0.txt>. + use leptos::{ IntoView, component, prelude::{ClassAttribute, ElementChild, GetUntracked}, diff --git a/src/pages/inventory.rs b/src/pages/inventory.rs index 0ad5613..c023fb9 100644 --- a/src/pages/inventory.rs +++ b/src/pages/inventory.rs @@ -1,3 +1,13 @@ +// rocie - An enterprise grocery management system - Web app +// +// Copyright (C) 2026 Benedikt Peetz <benedikt.peetz@b-peetz.de> +// SPDX-License-Identifier: GPL-3.0-or-later +// +// This file is part of Rocie. +// +// You should have received a copy of the License along with this program. +// If not, see <https://www.gnu.org/licenses/gpl-3.0.txt>. + use leptos::{ IntoView, component, prelude::{ClassAttribute, ElementChild}, diff --git a/src/pages/login.rs b/src/pages/login.rs index af3f660..93f72c9 100644 --- a/src/pages/login.rs +++ b/src/pages/login.rs @@ -1,3 +1,13 @@ +// rocie - An enterprise grocery management system - Web app +// +// Copyright (C) 2026 Benedikt Peetz <benedikt.peetz@b-peetz.de> +// SPDX-License-Identifier: GPL-3.0-or-later +// +// This file is part of Rocie. +// +// You should have received a copy of the License along with this program. +// If not, see <https://www.gnu.org/licenses/gpl-3.0.txt>. + use leptos::{ IntoView, component, prelude::{Get, Show, signal}, diff --git a/src/pages/mod.rs b/src/pages/mod.rs index 8a38db2..4f3db7d 100644 --- a/src/pages/mod.rs +++ b/src/pages/mod.rs @@ -1,3 +1,13 @@ +// rocie - An enterprise grocery management system - Web app +// +// Copyright (C) 2026 Benedikt Peetz <benedikt.peetz@b-peetz.de> +// SPDX-License-Identifier: GPL-3.0-or-later +// +// This file is part of Rocie. +// +// You should have received a copy of the License along with this program. +// If not, see <https://www.gnu.org/licenses/gpl-3.0.txt>. + pub mod associate_barcode; pub mod buy; pub mod create_product; diff --git a/src/pages/not_found.rs b/src/pages/not_found.rs index 2adb598..e18ae62 100644 --- a/src/pages/not_found.rs +++ b/src/pages/not_found.rs @@ -1,3 +1,13 @@ +// rocie - An enterprise grocery management system - Web app +// +// Copyright (C) 2026 Benedikt Peetz <benedikt.peetz@b-peetz.de> +// SPDX-License-Identifier: GPL-3.0-or-later +// +// This file is part of Rocie. +// +// You should have received a copy of the License along with this program. +// If not, see <https://www.gnu.org/licenses/gpl-3.0.txt>. + use leptos::{IntoView, component, prelude::ElementChild, view}; use crate::components::site_header::SiteHeader; diff --git a/src/pages/product.rs b/src/pages/product.rs index 0e4ac04..6676718 100644 --- a/src/pages/product.rs +++ b/src/pages/product.rs @@ -1,3 +1,13 @@ +// rocie - An enterprise grocery management system - Web app +// +// Copyright (C) 2026 Benedikt Peetz <benedikt.peetz@b-peetz.de> +// SPDX-License-Identifier: GPL-3.0-or-later +// +// This file is part of Rocie. +// +// You should have received a copy of the License along with this program. +// If not, see <https://www.gnu.org/licenses/gpl-3.0.txt>. + use leptos::{ IntoView, component, prelude::{ElementChild, Get, IntoAny}, diff --git a/src/pages/products.rs b/src/pages/products.rs index 5c5b885..d52792c 100644 --- a/src/pages/products.rs +++ b/src/pages/products.rs @@ -1,3 +1,13 @@ +// rocie - An enterprise grocery management system - Web app +// +// Copyright (C) 2026 Benedikt Peetz <benedikt.peetz@b-peetz.de> +// SPDX-License-Identifier: GPL-3.0-or-later +// +// This file is part of Rocie. +// +// You should have received a copy of the License along with this program. +// If not, see <https://www.gnu.org/licenses/gpl-3.0.txt>. + use leptos::{ IntoView, component, prelude::{ClassAttribute, ElementChild}, diff --git a/src/pages/provision.rs b/src/pages/provision.rs index 340a076..da2b874 100644 --- a/src/pages/provision.rs +++ b/src/pages/provision.rs @@ -1,3 +1,13 @@ +// rocie - An enterprise grocery management system - Web app +// +// Copyright (C) 2026 Benedikt Peetz <benedikt.peetz@b-peetz.de> +// SPDX-License-Identifier: GPL-3.0-or-later +// +// This file is part of Rocie. +// +// You should have received a copy of the License along with this program. +// If not, see <https://www.gnu.org/licenses/gpl-3.0.txt>. + use leptos::{ IntoView, component, prelude::{Get, Show, signal}, diff --git a/src/pages/recipe.rs b/src/pages/recipe.rs index 4e56e1d..604aba3 100644 --- a/src/pages/recipe.rs +++ b/src/pages/recipe.rs @@ -1,4 +1,15 @@ #![expect( + +// rocie - An enterprise grocery management system - Web app +// +// Copyright (C) 2026 Benedikt Peetz <benedikt.peetz@b-peetz.de> +// SPDX-License-Identifier: GPL-3.0-or-later +// +// This file is part of Rocie. +// +// You should have received a copy of the License along with this program. +// If not, see <https://www.gnu.org/licenses/gpl-3.0.txt>. + clippy::needless_pass_by_value, reason = "It's soo much easier to just pass these values by value" )] diff --git a/src/pages/recipies.rs b/src/pages/recipies.rs index c372d9b..9f0d517 100644 --- a/src/pages/recipies.rs +++ b/src/pages/recipies.rs @@ -1,3 +1,13 @@ +// rocie - An enterprise grocery management system - Web app +// +// Copyright (C) 2026 Benedikt Peetz <benedikt.peetz@b-peetz.de> +// SPDX-License-Identifier: GPL-3.0-or-later +// +// This file is part of Rocie. +// +// You should have received a copy of the License along with this program. +// If not, see <https://www.gnu.org/licenses/gpl-3.0.txt>. + use leptos::{ IntoView, component, prelude::{ClassAttribute, ElementChild, OnAttribute}, diff --git a/src/pages/units.rs b/src/pages/units.rs index a5d8655..96cc732 100644 --- a/src/pages/units.rs +++ b/src/pages/units.rs @@ -1,3 +1,13 @@ +// rocie - An enterprise grocery management system - Web app +// +// Copyright (C) 2026 Benedikt Peetz <benedikt.peetz@b-peetz.de> +// SPDX-License-Identifier: GPL-3.0-or-later +// +// This file is part of Rocie. +// +// You should have received a copy of the License along with this program. +// If not, see <https://www.gnu.org/licenses/gpl-3.0.txt>. + use leptos::{ IntoView, component, prelude::{ClassAttribute, CollectView, ElementChild}, diff --git a/tailwind.config.js b/tailwind.config.js index d752bbe..6929dd9 100644 --- a/tailwind.config.js +++ b/tailwind.config.js @@ -1,3 +1,13 @@ +// rocie - An enterprise grocery management system - Web app +// +// Copyright (C) 2026 Benedikt Peetz <benedikt.peetz@b-peetz.de> +// SPDX-License-Identifier: GPL-3.0-or-later +// +// This file is part of Rocie. +// +// You should have received a copy of the License along with this program. +// If not, see <https://www.gnu.org/licenses/gpl-3.0.txt>. + /** @type {import('tailwindcss').Config} */ module.exports = { content: ["*.html", "./**/*.rs"], diff --git a/treefmt.nix b/treefmt.nix index 164f46d..97f6316 100644 --- a/treefmt.nix +++ b/treefmt.nix @@ -1,7 +1,8 @@ -# rocie - An enterprise grocery management system +# rocie - An enterprise grocery management system - Web app # # Copyright (C) 2024 Benedikt Peetz <benedikt.peetz@b-peetz.de> # Copyright (C) 2025 Benedikt Peetz <benedikt.peetz@b-peetz.de> +# Copyright (C) 2026 Benedikt Peetz <benedikt.peetz@b-peetz.de> # SPDX-License-Identifier: GPL-3.0-or-later # # This file is part of Rocie. diff --git a/update.sh b/update.sh index 96231c5..08d565e 100755 --- a/update.sh +++ b/update.sh @@ -1,9 +1,10 @@ #!/usr/bin/env sh -# rocie - An enterprise grocery management system +# rocie - An enterprise grocery management system - Web app # # Copyright (C) 2024 Benedikt Peetz <benedikt.peetz@b-peetz.de> # Copyright (C) 2025 Benedikt Peetz <benedikt.peetz@b-peetz.de> +# Copyright (C) 2026 Benedikt Peetz <benedikt.peetz@b-peetz.de> # SPDX-License-Identifier: GPL-3.0-or-later # # This file is part of Rocie. |
