chore: update point system

This commit is contained in:
2026-03-07 23:26:30 +01:00
parent b0061cec8a
commit 51c65d1179
2 changed files with 142 additions and 80 deletions
+8 -4
View File
@@ -661,6 +661,12 @@ export const deleteCategoryAdmin = async (
// PARAMÈTRES GLOBAUX
// ============================================
export interface PointsTier {
min: number;
max: number; // 0 = illimité
points: number;
}
export interface AppSettings {
penalties_enabled: boolean;
show_amende_score: boolean;
@@ -668,10 +674,8 @@ export interface AppSettings {
points_categories_weed: string[];
points_categories_zipette: string[];
points_separated: boolean;
points_weed_threshold_price: number;
points_weed_per_threshold: number;
points_zipette_threshold_price: number;
points_zipette_per_threshold: number;
points_weed_tiers: PointsTier[];
points_zipette_tiers: PointsTier[];
}
export const getSettings = async (): Promise<{ success: boolean; settings?: AppSettings; error?: string }> => {