style: ui readability refactor v1.2.2 (removed uppercase, tracking, increased font sizes)

This commit is contained in:
Daniel Bedeleanu
2026-04-11 11:22:40 +03:00
parent 99b70a9de8
commit 4136d49936
25 changed files with 2552 additions and 548 deletions

View File

@@ -22,6 +22,11 @@ export const inventoryApi = {
return res.data;
},
getStats: async () => {
const res = await axios.get(`${getBackendUrl()}/items/stats`);
return res.data;
},
syncBulkOperations: async (userId: number, operations: any[]) => {
const url = `${getBackendUrl()}/operations/bulk-sync`;
try {
@@ -93,6 +98,24 @@ export const inventoryApi = {
const res = await axios.delete(`${getBackendUrl()}/users/${userId}`);
return res.data;
},
updateUser: async (userId: number, data: any) => {
const res = await axios.put(`${getBackendUrl()}/users/${userId}`, data);
return res.data;
},
getLdapConfig: async () => {
const res = await axios.get(`${getBackendUrl()}/users/ldap-config`);
return res.data;
},
updateLdapConfig: async (config: any) => {
const res = await axios.post(`${getBackendUrl()}/users/ldap-config`, config);
return res.data;
},
testLdapConnection: async (config: any) => {
const res = await axios.post(`${getBackendUrl()}/users/test-ldap`, config);
return res.data;
},
// Categories
getCategories: async () => {
@@ -103,6 +126,10 @@ export const inventoryApi = {
const res = await axios.post(`${getBackendUrl()}/categories/`, data);
return res.data;
},
updateCategory: async (id: number, data: any) => {
const res = await axios.put(`${getBackendUrl()}/categories/${id}`, data);
return res.data;
},
deleteCategory: async (id: number) => {
const res = await axios.delete(`${getBackendUrl()}/categories/${id}`);
return res.data;

6
frontend/lib/utils.ts Normal file
View File

@@ -0,0 +1,6 @@
import { clsx, type ClassValue } from 'clsx';
import { twMerge } from 'tailwind-merge';
export function cn(...inputs: ClassValue[]) {
return twMerge(clsx(inputs));
}