url_utils.ts

f
getBaseUrl

Determine portfolio base URL from the repository structure. Check the presence of ./dist/index.html to return either ./dist/ either ./ as base path.

f
getIndexUrl

Get portfolio index URL depending of the presence of /dist/index.html.

f
getRepoUrl

Get raw files repository base url.

f
getSourceUrl

Get portfolio source URL from request URL.

user_utils.ts

f
toUser

Transform a UserDomain into a User.

f
toUserDomain

Check hostname subdomain against UserDomain.

T
User

User login format of cohabit firstname.lastname.

T
UserDomain

User personal portfolio domain rerived from cohabit user login as firstname-lastname.