App store metadata refactor (#2495)

* Delete api

* Fixes circular dependencies

* Revert "Delete api"

This reverts commit 174177a8331fc376b2dc7abda2c7adc56b24dd60.

* Delete _metadata.ts

* Update metadata.ts
This commit is contained in:
Omar López authored and GitHub committed 2022-04-14 20:04:21 -06:00
1 parent 94f64f9730
commit ba73960a02
30 files changed
+446 -362

No files matched your search

+5 -3
View File
@@ -3,11 +3,13 @@ import { TFunction } from "next-i18next";
import type { App } from "@calcom/types/App";
import appStore from ".";
import { LocationType } from "./locations";
// If you import this file on any app it should produce circular dependency
// import appStore from "./index";
import { appStoreMetadata } from "./metadata";
const ALL_APPS_MAP = Object.keys(appStore).reduce((store, key) => {
store[key] = appStore[key as keyof typeof appStore].metadata;
const ALL_APPS_MAP = Object.keys(appStoreMetadata).reduce((store, key) => {
store[key] = appStoreMetadata[key as keyof typeof appStoreMetadata];
return store;
}, {} as Record<string, App>);