컨텐츠로 건너뛰기

utils/pathGenerator

이 내용은 아직 번역본이 없습니다.

function ensureLeadingSlash(href: string): string

Defined in: studiocms/packages/studiocms_devapps/src/utils/pathGenerator.ts:33

Ensure the passed path starts with a leading slash.

string

string


function pathGenerator(endpointPath: string, _base: string): (path: string) => string

Defined in: studiocms/packages/studiocms_devapps/src/utils/pathGenerator.ts:40

Endpoint path generator

string

string

Function

string

string


function pathWithBase(path: string, _base: string): string

Defined in: studiocms/packages/studiocms_devapps/src/utils/pathGenerator.ts:12

Get the a root-relative URL path with the site’s base prefixed.

string

string

string


function stripLeadingSlash(href: string): string

Defined in: studiocms/packages/studiocms_devapps/src/utils/pathGenerator.ts:19

Ensure the passed path does not start with a leading slash.

string

string


function stripTrailingSlash(href: string): string

Defined in: studiocms/packages/studiocms_devapps/src/utils/pathGenerator.ts:26

Ensure the passed path does not end with a trailing slash.

string

string