78 lines
2.3 KiB
TypeScript
78 lines
2.3 KiB
TypeScript
/* eslint-disable */
|
|
/* This is a auto generated file for building the project */
|
|
|
|
|
|
import type { PageMeta } from "@webstudio-is/sdk";
|
|
import type { System, ResourceRequest } from "@webstudio-is/sdk";
|
|
export const getResources = (_props: { system: System }) => {
|
|
let nocodbUrl = "https://db.jamericanbar.com"
|
|
let nocodbEventsId = "m9sedens109pyru"
|
|
let nocodbEventsPastViewId = "vwzf6qcozmu9fpwq"
|
|
let nocodbToken = "w12xFAvVnpckAU0KTJWaGV3oN1KS96tINZlzI26I"
|
|
let nocodbEventsUpcomingViewId = "vw15o7vweo38aknc"
|
|
const nodobPastEventsData_1: ResourceRequest = {
|
|
name: "nodobPastEventsData",
|
|
url: `${nocodbUrl}/api/v2/tables/${nocodbEventsId}/records`,
|
|
searchParams: [
|
|
{ name: "viewId", value: nocodbEventsPastViewId },
|
|
{ name: "offset", value: "0" },
|
|
{ name: "limit", value: "3" },
|
|
],
|
|
method: "get",
|
|
headers: [
|
|
{ name: "xc-token", value: nocodbToken },
|
|
],
|
|
}
|
|
const nocodbUpcomingEventsData_1: ResourceRequest = {
|
|
name: "nocodbUpcomingEventsData",
|
|
url: `${nocodbUrl}/api/v2/tables/${nocodbEventsId}/records`,
|
|
searchParams: [
|
|
{ name: "viewId", value: nocodbEventsUpcomingViewId },
|
|
{ name: "offset", value: "0" },
|
|
{ name: "limit", value: "3" },
|
|
],
|
|
method: "get",
|
|
headers: [
|
|
{ name: "xc-token", value: nocodbToken },
|
|
],
|
|
}
|
|
const _data = new Map<string, ResourceRequest>([
|
|
["nodobPastEventsData_1", nodobPastEventsData_1],
|
|
["nocodbUpcomingEventsData_1", nocodbUpcomingEventsData_1],
|
|
])
|
|
const _action = new Map<string, ResourceRequest>([
|
|
])
|
|
return { data: _data, action: _action }
|
|
}
|
|
|
|
|
|
export const getPageMeta = ({
|
|
system,
|
|
resources,
|
|
}: {
|
|
system: System;
|
|
resources: Record<string, any>;
|
|
}): PageMeta => {
|
|
return {
|
|
title: "Events | Jamaican-American Bar Association",
|
|
description: "Join us at our events across South Florida, from scholarship ceremonies to grand galas to citizenship drives.",
|
|
excludePageFromSearch: true,
|
|
language: "",
|
|
socialImageAssetName: undefined,
|
|
socialImageUrl: "",
|
|
status: undefined,
|
|
redirect: "",
|
|
custom: [
|
|
],
|
|
};
|
|
};
|
|
|
|
|
|
type Params = Record<string, string | undefined>;
|
|
export const getRemixParams = ({ ...params }: Params): Params => {
|
|
return params
|
|
}
|
|
|
|
|
|
export const contactEmail = "jabaflorida@gmail.com";
|
|
|