Files
JABA-WebStudio/app/__generated__/[about]._index.server.tsx
2025-10-09 05:14:38 -04:00

82 lines
2.8 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 nocodbPeopleTableId = "mn7h3guzxy96uar"
const system = _props.system
let itemsPerPage = 1000
let nocodbOfficerViewId = "vwfczgm0fa5lnkhn"
let nocodbToken = "w12xFAvVnpckAU0KTJWaGV3oN1KS96tINZlzI26I"
let nocodbPracticeTableId = "mguumu4w1pvajkj"
let nocodbPracticeViewId = "vwpa6c74wqj2n97h"
const nocodbOfficerData_1: ResourceRequest = {
name: "nocodbOfficerData",
url: `${nocodbUrl}/api/v2/tables/${nocodbPeopleTableId}/records?offset=${((+system?.search?.page || 1) - 1) * itemsPerPage}&limit=${itemsPerPage}`,
searchParams: [
{ name: "offset", value: "0" },
{ name: "viewId", value: nocodbOfficerViewId },
],
method: "get",
headers: [
{ name: "Cache-Control", value: "max-age=3600" },
{ name: "xc-token", value: nocodbToken },
],
}
const nocodbPracticeData: ResourceRequest = {
name: "nocodbPracticeData",
url: `https://nocodb.jaba.sheckeem.com/api/v2/tables/${nocodbPracticeTableId}/records`,
searchParams: [
{ name: "limit", value: "1000" },
{ name: "viewId", value: nocodbPracticeViewId },
{ name: "sort", value: "Practice" },
],
method: "get",
headers: [
{ name: "Cache-Control", value: "max-age=3600" },
{ name: "xc-token", value: nocodbToken },
],
}
const _data = new Map<string, ResourceRequest>([
["nocodbOfficerData_1", nocodbOfficerData_1],
["nocodbPracticeData", nocodbPracticeData],
])
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: "About Us | Jamaican-American Bar Association",
description: "We've been around since 2007 and we're here to stay. As a voluntary bar association of The Florida Bar, JABA was founded to help those in the community develop professionally. We host fundraisers and galas, award scholarships, and provide exposure, in support of those among us who aspire for more in the Jamaican-American community.",
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";