consts
Esta página aún no está disponible en tu idioma.
Type Aliases
Section titled “Type Aliases”CurrentRESTAPIVersions
Section titled “CurrentRESTAPIVersions”type CurrentRESTAPIVersions = typeof currentRESTAPIVersions[number];
Defined in: studiocms/packages/studiocms/src/consts.ts:47
Current REST API Versions Type
StudioCMSSocials
Section titled “StudioCMSSocials”type StudioCMSSocials = { discord: string; github: string; githubContributors: string; githubLicense: string;};
Defined in: studiocms/packages/studiocms/src/consts.ts:80
StudioCMS Social Links Type
Properties
Section titled “Properties”discord
Section titled “discord”discord: string;
Defined in: studiocms/packages/studiocms/src/consts.ts:84
github
Section titled “github”github: string;
Defined in: studiocms/packages/studiocms/src/consts.ts:81
githubContributors
Section titled “githubContributors”githubContributors: string;
Defined in: studiocms/packages/studiocms/src/consts.ts:83
githubLicense
Section titled “githubLicense”githubLicense: string;
Defined in: studiocms/packages/studiocms/src/consts.ts:82
Variables
Section titled “Variables”authAPIRoute()
Section titled “authAPIRoute()”const authAPIRoute: (route: string) => string;
Defined in: studiocms/packages/studiocms/src/consts.ts:121
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”string
CMSMailerConfigId
Section titled “CMSMailerConfigId”const CMSMailerConfigId: string = '1';
Defined in: studiocms/packages/studiocms/src/consts.ts:12
StudioCMS Mailer Config Table Entry ID
CMSNotificationSettingsId
Section titled “CMSNotificationSettingsId”const CMSNotificationSettingsId: string = '1';
Defined in: studiocms/packages/studiocms/src/consts.ts:17
StudioCMS Notification Settings Table Entry ID
CMSSiteConfigId
Section titled “CMSSiteConfigId”const CMSSiteConfigId: number = 1;
Defined in: studiocms/packages/studiocms/src/consts.ts:7
StudioCMS Site Config Table Entry ID
currentRESTAPIVersions
Section titled “currentRESTAPIVersions”const currentRESTAPIVersions: readonly ["v1"];
Defined in: studiocms/packages/studiocms/src/consts.ts:42
Current REST API Versions
dashboardAPIRoute()
Section titled “dashboardAPIRoute()”const dashboardAPIRoute: (route: string) => string;
Defined in: studiocms/packages/studiocms/src/consts.ts:119
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”string
defaultCacheLifeTime
Section titled “defaultCacheLifeTime”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.
GhostUserDefaults
Section titled “GhostUserDefaults”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.
Type declaration
Section titled “Type declaration”avatar
Section titled “avatar”avatar: string = 'https://seccdn.libravatar.org/static/img/mm/80.png';
id: string = '_StudioCMS_Ghost_User_';
name: string = 'Ghost (deleted user)';
username
Section titled “username”username: string = 'studiocms_ghost_user';
NotificationSettingsDefaults
Section titled “NotificationSettingsDefaults”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.
Type declaration
Section titled “Type declaration”emailVerification
Section titled “emailVerification”emailVerification: boolean = false;
id: string = CMSNotificationSettingsId;
oAuthBypassVerification
Section titled “oAuthBypassVerification”oAuthBypassVerification: boolean = false;
requireAdminVerification
Section titled “requireAdminVerification”requireAdminVerification: boolean = false;
requireEditorVerification
Section titled “requireEditorVerification”requireEditorVerification: boolean = false;
routesDir
Section titled “routesDir”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
Type declaration
Section titled “Type declaration”api: (file: string) => string;
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”string
authAPI()
Section titled “authAPI()”authAPI: (file: string) => string;
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”string
authPage()
Section titled “authPage()”authPage: (file: string) => string;
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”string
dashApi()
Section titled “dashApi()”dashApi: (file: string) => string;
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”string
dashRoute()
Section titled “dashRoute()”dashRoute: (file: string) => string;
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”string
errors()
Section titled “errors()”errors: (file: string) => string;
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”string
fts: (file: string) => string;
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”string
mailer()
Section titled “mailer()”mailer: (file: string) => string;
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”string
middleware()
Section titled “middleware()”middleware: (file: string) => string;
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”string
sdk: (file: string) => string;
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”string
v1Rest()
Section titled “v1Rest()”v1Rest: (file: string) => string;
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”string
StudioCMSMarkdownDefaults
Section titled “StudioCMSMarkdownDefaults”const StudioCMSMarkdownDefaults: { autoLinkHeadings: boolean; callouts: false; discordSubtext: boolean; flavor: "studiocms";};
Defined in: studiocms/packages/studiocms/src/consts.ts:133
Type declaration
Section titled “Type declaration”autoLinkHeadings
Section titled “autoLinkHeadings”autoLinkHeadings: boolean = false;
callouts
Section titled “callouts”callouts: false;
discordSubtext
Section titled “discordSubtext”discordSubtext: boolean = false;
flavor
Section titled “flavor”flavor: "studiocms";
studioCMSSocials
Section titled “studioCMSSocials”const studioCMSSocials: StudioCMSSocials;
Defined in: studiocms/packages/studiocms/src/consts.ts:90
StudioCMS Social Links
versionCacheLifetime
Section titled “versionCacheLifetime”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.
Functions
Section titled “Functions”makeDashboardRoute()
Section titled “makeDashboardRoute()”function makeDashboardRoute(route?: string): (path: string) => string
Defined in: studiocms/packages/studiocms/src/consts.ts:123
Parameters
Section titled “Parameters”route?
Section titled “route?”string
Returns
Section titled “Returns”Function
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”string