summary refs log tree commit diff stats
path: root/src/components/mod.rs
blob: 2a3a0b16fe79123334f67dfd113799c3c6a7dce8 (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
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)
}