mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-07-24 07:39:41 +02:00
Feature/UI updates (#990)
* titleCase utility * update rules ui * order by date_added * fix error on page refresh * fix health checks * fix cookbook return values
This commit is contained in:
parent
177a430d8c
commit
2211174636
6 changed files with 43 additions and 20 deletions
|
@ -4,6 +4,13 @@ export const useAsyncKey = function () {
|
|||
return String(Date.now());
|
||||
};
|
||||
|
||||
export const titleCase = function (str: string) {
|
||||
return str
|
||||
.split(" ")
|
||||
.map((word) => word.charAt(0).toUpperCase() + word.slice(1))
|
||||
.join(" ");
|
||||
};
|
||||
|
||||
export function detectServerBaseUrl(req?: IncomingMessage | null) {
|
||||
if (!req || req === undefined) {
|
||||
return "";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue