WIP WIP
This commit is contained in:
parent
505c517237
commit
5c67a95028
|
@ -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,
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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",
|
||||||
|
|
|
@ -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,
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user