summary refs log tree commit diff stats
path: root/src/components/mod.rs
blob: ac9c9a70a2a62d14aa2a29e8c1eaab535d807eb5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
// 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
pub mod async_fetch;
pub mod banner;
pub mod catch_errors;
pub mod container;
pub mod form;
pub mod icon_p;
pub mod login_wall;

// placeholders
pub mod checkbox_placeholder;
pub mod input_placeholder;
pub mod select_placeholder;
pub mod textarea_placeholder;

// Specific
pub mod inventory;
pub mod product_overview;
pub mod product_parent_overview;
pub mod recipies;
pub mod site_header;
pub mod unit_overview;

fn get_id() -> u32 {
    static ID: AtomicU32 = AtomicU32::new(0);

    ID.fetch_add(1, Ordering::Relaxed)
}