Saltearse al contenido

consts

Esta página aún no está disponible en tu idioma.

type CurrentRESTAPIVersions = typeof currentRESTAPIVersions[number];

Defined in: studiocms/packages/studiocms/src/consts.ts:47

Current REST API Versions Type


type StudioCMSSocials = {
discord: string;
github: string;
githubContributors: string;
githubLicense: string;
};

Defined in: studiocms/packages/studiocms/src/consts.ts:80

StudioCMS Social Links Type

discord: string;

Defined in: studiocms/packages/studiocms/src/consts.ts:84

github: string;

Defined in: studiocms/packages/studiocms/src/consts.ts:81

githubContributors: string;

Defined in: studiocms/packages/studiocms/src/consts.ts:83

githubLicense: string;

Defined in: studiocms/packages/studiocms/src/consts.ts:82

const authAPIRoute: (route: string) => string;

Defined in: studiocms/packages/studiocms/src/consts.ts:121

string

string


const CMSMailerConfigId: string = '1';

Defined in: studiocms/packages/studiocms/src/consts.ts:12

StudioCMS Mailer Config Table Entry ID


const CMSNotificationSettingsId: string = '1';

Defined in: studiocms/packages/studiocms/src/consts.ts:17

StudioCMS Notification Settings Table Entry ID


const CMSSiteConfigId: number = 1;

Defined in: studiocms/packages/studiocms/src/consts.ts:7

StudioCMS Site Config Table Entry ID


const currentRESTAPIVersions: readonly ["v1"];

Defined in: studiocms/packages/studiocms/src/consts.ts:42

Current REST API Versions


const dashboardAPIRoute: (route: string) => string;

Defined in: studiocms/packages/studiocms/src/consts.ts:119

string

string


const defaultCacheLifeTime: TimeString = '5m';

Defined in: studiocms/packages/studiocms/src/consts.ts:24

The default lifetime for cached items. This value is used to determine how long an item should remain in the cache before it is considered expired. This value is used in ./schemas/config/sdk.ts to set the default cache lifetime.


const GhostUserDefaults: {
avatar: string;
id: string;
name: string;
username: string;
};

Defined in: studiocms/packages/studiocms/src/consts.ts:101

Default values for a “ghost” user in StudioCMS. This user represents a deleted user in the system.

avatar: string = 'https://seccdn.libravatar.org/static/img/mm/80.png';

id: string = '_StudioCMS_Ghost_User_';

name: string = 'Ghost (deleted user)';

username: string = 'studiocms_ghost_user';

const NotificationSettingsDefaults: {
emailVerification: boolean;
id: string;
oAuthBypassVerification: boolean;
requireAdminVerification: boolean;
requireEditorVerification: boolean;
};

Defined in: studiocms/packages/studiocms/src/consts.ts:111

Default values for the site Notifications configuration.

emailVerification: boolean = false;

id: string = CMSNotificationSettingsId;

oAuthBypassVerification: boolean = false;

requireAdminVerification: boolean = false;

requireEditorVerification: boolean = false;

const routesDir: {
api: (file: string) => string;
authAPI: (file: string) => string;
authPage: (file: string) => string;
dashApi: (file: string) => string;
dashRoute: (file: string) => string;
errors: (file: string) => string;
fts: (file: string) => string;
mailer: (file: string) => string;
middleware: (file: string) => string;
sdk: (file: string) => string;
v1Rest: (file: string) => string;
};

Defined in: studiocms/packages/studiocms/src/consts.ts:63

REST API Directory

api: (file: string) => string;

string

string

authAPI: (file: string) => string;

string

string

authPage: (file: string) => string;

string

string

dashApi: (file: string) => string;

string

string

dashRoute: (file: string) => string;

string

string

errors: (file: string) => string;

string

string

fts: (file: string) => string;

string

string

mailer: (file: string) => string;

string

string

middleware: (file: string) => string;

string

string

sdk: (file: string) => string;

string

string

v1Rest: (file: string) => string;

string

string


const StudioCMSMarkdownDefaults: {
autoLinkHeadings: boolean;
callouts: false;
discordSubtext: boolean;
flavor: "studiocms";
};

Defined in: studiocms/packages/studiocms/src/consts.ts:133

autoLinkHeadings: boolean = false;

callouts: false;

discordSubtext: boolean = false;

flavor: "studiocms";

const studioCMSSocials: StudioCMSSocials;

Defined in: studiocms/packages/studiocms/src/consts.ts:90

StudioCMS Social Links


const versionCacheLifetime: number;

Defined in: studiocms/packages/studiocms/src/consts.ts:37

The default lifetime for cached items in milliseconds. This value is used to determine how long an item should remain in the cache before it is considered expired.

function makeDashboardRoute(route?: string): (path: string) => string

Defined in: studiocms/packages/studiocms/src/consts.ts:123

string

Function

string

string