This commit is contained in:
zomars 2022-02-22 13:25:00 -07:00
parent 505c517237
commit 5c67a95028
13 changed files with 8 additions and 7 deletions

View File

@ -9,7 +9,7 @@ import { APPS as ConferencingApps } from "@lib/apps/conferencing/config";
import { APPS as PaymentApps } from "@lib/apps/payment/config"; import { APPS as PaymentApps } from "@lib/apps/payment/config";
const ALL_APPS_MAP = { const ALL_APPS_MAP = {
zoomvideo: appStore.zoomvideo.metadata, ...Object.values(appStore).map((app) => app.metadata),
...CalendarApps, ...CalendarApps,
...ConferencingApps, ...ConferencingApps,
...PaymentApps, ...PaymentApps,

View File

@ -20,7 +20,8 @@ const handler = async (req: NextApiRequest, res: NextApiResponse) => {
return res.status(404).json({ message: `API route not found` }); return res.status(404).json({ message: `API route not found` });
} }
const [appName, apiEndpoint] = args; const [_appName, apiEndpoint] = args;
const appName = _appName.split("_").join(""); // Transform `zoom_video` to `zoomvideo`;
try { try {
// TODO: Find a way to dynamically import these modules // TODO: Find a way to dynamically import these modules

View File

@ -2,7 +2,7 @@ import appStore from ".";
export function getAppRegistry() { export function getAppRegistry() {
return [ return [
appStore.zoomvideo.metadata, ...Object.values(appStore).map((app) => app.metadata),
{ {
name: "Cal Video", name: "Cal Video",
slug: "cal-video", slug: "cal-video",

View File

@ -7,9 +7,9 @@ export const metadata = {
description: _package.description, description: _package.description,
installed: true, installed: true,
category: "video", category: "video",
imageSrc: "/cal-com-icon.svg", imageSrc: "cal-com-icon.svg",
label: "Example App", label: "Example App",
logo: "/cal-com-icon.svg", logo: "cal-com-icon.svg",
publisher: "Cal.com", publisher: "Cal.com",
rating: 5, rating: 5,
reviews: 69, reviews: 69,

View File

@ -1,9 +1,9 @@
import * as example from "./_example"; import * as example from "./_example";
import * as zoomvideo from "./zoomvideo"; import * as zoom_video from "./zoom_video";
const appStore = { const appStore = {
example, example,
zoomvideo, zoom_video,
}; };
export default appStore; export default appStore;