mirror of https://github.com/Squidex/squidex.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
51 lines
1.0 KiB
51 lines
1.0 KiB
/*
|
|
* Squidex Headless CMS
|
|
*
|
|
* @license
|
|
* Copyright (c) Sebastian Stehle. All rights reserved
|
|
*/
|
|
|
|
export class ApiUrlConfig {
|
|
public readonly value: string;
|
|
|
|
constructor(value: string) {
|
|
if (value.indexOf('/', value.length - 1) < 0) {
|
|
value = value + '/';
|
|
}
|
|
|
|
this.value = value;
|
|
}
|
|
|
|
public buildUrl(path: string) {
|
|
if (path.indexOf('/') === 0) {
|
|
path = path.substr(1);
|
|
}
|
|
|
|
return this.value + path;
|
|
}
|
|
}
|
|
|
|
export class CurrencyConfig {
|
|
constructor(
|
|
public readonly code: string,
|
|
public readonly symbol: string,
|
|
public readonly showAfter: boolean = true
|
|
) {
|
|
}
|
|
}
|
|
|
|
export class AnalyticsIdConfig {
|
|
constructor(public value: string) { }
|
|
}
|
|
|
|
export class DecimalSeparatorConfig {
|
|
constructor(public readonly value: string) { }
|
|
}
|
|
|
|
export class ProductionModeConfig {
|
|
constructor(public readonly isProductionMode: boolean) { }
|
|
}
|
|
|
|
export class UserReportConfig {
|
|
constructor(public readonly siteId: string) { }
|
|
}
|