Aller au contenu

consts

Ce contenu n’est pas encore disponible dans votre langue.

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:79

StudioCMS Social Links Type

discord: string;

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

github: string;

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

githubContributors: string;

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

githubLicense: string;

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

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

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

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:118

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:100

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:110

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;
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

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:132

autoLinkHeadings: boolean = false;

callouts: false;

discordSubtext: boolean = false;

flavor: "studiocms";

const studioCMSSocials: StudioCMSSocials;

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

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:122

string

Function

string

string