Logo
Explore Help
Sign In
Mirrors/mealie
1
0
Fork 0
You've already forked mealie
mirror of https://github.com/mealie-recipes/mealie.git synced 2025-10-28 08:44:36 -04:00
Code Issues Packages Projects Releases Wiki Activity
Files
788e176b16400adf76a6f835273ba1939e5d583f
mealie/frontend/composables/use-utils.ts

11 lines
282 B
TypeScript
Raw Normal View History

refactor(frontend): :construction: Migrate Dashboard to Nuxt Add API and Functinality for Admin Dashboard. Stills needs to clean-up. See // TODO's
2021-08-07 15:12:25 -08:00
export const useAsyncKey = function () {
return String(Date.now());
};
Refactor/composables-folder (#787) * move api clients and rename * organize recipes composables * rewrite useRecipeContext * refactor(frontend): :recycle: abstract common ingredient functionality. * feat(frontend): :sparkles: add scale, and back to recipe button + hide ingredients if none * update regex to mach 11. instead of just 1. * minor UX improvements Co-authored-by: Hayden K <hay-kot@pm.me>
2021-11-06 11:28:47 -08:00
export function uuid4() {
// @ts-ignore
return ([1e7] + -1e3 + -4e3 + -8e3 + -1e11).replace(/[018]/g, (c) =>
(c ^ (crypto.getRandomValues(new Uint8Array(1))[0] & (15 >> (c / 4)))).toString(16)
);
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.7 Page: 19ms Template: 1ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API