Skip to content

utils/case

Overview

Memoized case-conversion utilities for deriving route parts, CRUD names, and display titles from app and model names.

Properties

getAppModelDotName

Get the app model dot name for a given app and model.

Type: any

Source: client/lib/utils/case.js:95

getAppModelViewDotName

Get the app model view dot name for a given app, model, and view. We rely on startsWith() on the resulting key to filter them using getAppModelDotName().

Type: any

Source: client/lib/utils/case.js:113

getClientPkRoutePart

Get the primary key route part in camelCase for a given model.

Type: any

Source: client/lib/utils/case.js:61

getClientRoutePart

Get the client route part in snake_case for a given model.

Type: any

Source: client/lib/utils/case.js:41

getCRUDName

Get the CRUD name for a given model and view.

Type: any

Source: client/lib/utils/case.js:129

getLowerTitle

Get the lower case title for a given model.

Type: any

Source: client/lib/utils/case.js:51

getNormalizedKey

Get the normalized key (lowercase without spaces) for a given app, model or view identifier.

Type: any

Source: client/lib/utils/case.js:83

getPascalCaseName

Get the PascalCase name for a given model. This is useful for generating class names or file names in PascalCase format.

Type: any

Source: client/lib/utils/case.js:31

getPluralizedTitle

Get the pluralized title for a given model.

Type: any

Source: client/lib/utils/case.js:71

getServerActionName

Converts a dashed URL name to an underscored action name and returns it.

Type: any

Source: client/lib/utils/case.js:144

getServerRoutePart

Get the server route app part in snake_case for a given app. This is useful for generating server routes in snake_case format, for use in VUEDA urls.

Type: any

Source: client/lib/utils/case.js:20

memoizedSnakeCase

For turning various dev_strs or DevStrs or devStrs into a human-readable titles (Dev Strs).

Type: any

Source: client/lib/utils/case.js:159

memoizedStartCase

For turning various dev_strs or DevStrs or devStrs into a human-readable titles (Dev Strs).

Type: any

Source: client/lib/utils/case.js:152

Source

client/lib/utils/case.js:1

Documents matching: server v3.0.0a1.post1client v3.0.0-alpha.2