mirror of
				https://github.com/mealie-recipes/mealie.git
				synced 2025-10-31 10:13:32 -04:00 
			
		
		
		
	* unify look and feel + button validators * Fixes #741 * add github script to mealei-next * feat(frontend): 💄 improve user-flow for creating ingredients and units in editor Creating a unit/food in the recipe editor will not automatically assign that to the auto-complete element on the ingredient. It also no longer needs a dialog and will show at the bottom of the menu at all times. * fix whitespace issue with slot * add security check to properties * fix event refresh on delete * remove depreciated page * improve API token flow * hide recipe data if not advanced user * misc adds Co-authored-by: Hayden <hay-kot@pm.me>
		
			
				
	
	
		
			49 lines
		
	
	
		
			1000 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
			
		
		
	
	
			49 lines
		
	
	
		
			1000 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
| import { BaseAPI } from "../_base";
 | |
| 
 | |
| const prefix = "/api";
 | |
| 
 | |
| const routes = {
 | |
|   about: `${prefix}/admin/about`,
 | |
|   aboutStatistics: `${prefix}/admin/about/statistics`,
 | |
|   check: `${prefix}/admin/about/check`,
 | |
| };
 | |
| 
 | |
| export interface AdminAboutInfo {
 | |
|   production: boolean;
 | |
|   version: string;
 | |
|   demoStatus: boolean;
 | |
|   apiPort: number;
 | |
|   apiDocs: boolean;
 | |
|   dbType: string;
 | |
|   dbUrl: string;
 | |
|   defaultGroup: string;
 | |
| }
 | |
| 
 | |
| export interface AdminStatistics {
 | |
|   totalRecipes: number;
 | |
|   totalUsers: number;
 | |
|   totalGroups: number;
 | |
|   uncategorizedRecipes: number;
 | |
|   untaggedRecipes: number;
 | |
| }
 | |
| 
 | |
| export interface CheckAppConfig {
 | |
|   emailReady: boolean;
 | |
|   baseUrlSet: boolean;
 | |
|   isSiteSecure: boolean;
 | |
| }
 | |
| 
 | |
| export class AdminAboutAPI extends BaseAPI {
 | |
|   async about() {
 | |
|     return await this.requests.get<AdminAboutInfo>(routes.about);
 | |
|   }
 | |
| 
 | |
|   async statistics() {
 | |
|     return await this.requests.get(routes.aboutStatistics);
 | |
|   }
 | |
| 
 | |
|   async checkApp() {
 | |
|     return await this.requests.get<CheckAppConfig>(routes.check);
 | |
|   }
 | |
| }
 |