Initial export from WebStudio.is
This commit is contained in:
60
app/__generated__/[posts]._index.server.tsx
generated
Normal file
60
app/__generated__/[posts]._index.server.tsx
generated
Normal file
@@ -0,0 +1,60 @@
|
||||
/* 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 ghostUrl = "https://blog.jamericanbar.com"
|
||||
let ghostContentApiKey = "c9014d5d9ceabb1dd08f0ec0a3"
|
||||
let postsPerPage = 50
|
||||
const system = _props.system
|
||||
const ghostPosts_1: ResourceRequest = {
|
||||
name: "ghostPosts",
|
||||
url: `${ghostUrl}/ghost/api/content/posts/?key=${ghostContentApiKey}&include=authors,tags&limit=${postsPerPage}&filter=visibility:public${system?.search?.search ? `%2Btitle:~'${system?.search?.search}'` : ''}${system?.search?.page ? `&page=${system?.search?.page}` : ''}`,
|
||||
searchParams: [
|
||||
],
|
||||
method: "get",
|
||||
headers: [
|
||||
{ name: "Accept-Version", value: "v5.0" },
|
||||
],
|
||||
}
|
||||
const _data = new Map<string, ResourceRequest>([
|
||||
["ghostPosts_1", ghostPosts_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: "Posts",
|
||||
description: "",
|
||||
excludePageFromSearch: true,
|
||||
language: "",
|
||||
socialImageAssetName: undefined,
|
||||
socialImageUrl: "",
|
||||
status: 200,
|
||||
redirect: "",
|
||||
custom: [
|
||||
],
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
type Params = Record<string, string | undefined>;
|
||||
export const getRemixParams = ({ ...params }: Params): Params => {
|
||||
return params
|
||||
}
|
||||
|
||||
|
||||
export const contactEmail = "sheckeem@gmail.com";
|
||||
|
||||
Reference in New Issue
Block a user