The frontend contains an environment.ts file that can be used to edit settings for the specific environment.
Type: boolean
This will enable production mode for Angular.
Type: string
The name of the application that should be shown to users. This is used in page titles and the like.
Type: { title: string, subtitle?: string, logo?: string, logoAlt?: string }
Specifies the look of the brand in the top navigation menu.
You can specify a title and a subtitle, which will be shown as such. For example, { main: 'Textcavator', secondary: 'Special Edition' } will look something like "Textcavator - Special Edition".
The logo should be the url of the logo you want to show. This can just be an absolute path like '/assets/logo.png', but you can use a full URL for external images.
logoAlt sets alt text for the logo. If you leave this empty or undefined, the logo will be hidden from assistive technologies, which is appropriate if it is purely decorative.
Type: string
Different servers typically require different about pages. We keep several pages in /frontend/src/assets/about/; this setting determines which file is used.
The name must match the filename without a path or file extension.
Type: string
The URL to the backend API endpoint. If the backend is served on the same domain as the frontend, you can use an absolute path (e.g. /api/) instead of a full URL. Relative paths (e.g. api/) are not supported.
The URL to the Django admin site. See the documentation for apiUrl.
The URL to the page where SAML users can log out. See the documentation for apiUrl.
Type: boolean
Whether to show the option for SAML login in the login or registration form.
Type: boolean
Set to true if this instance is intended to be embedded in an iframe, rather than visited directly.
This will affect the styling of the site; the main change is that the main navigation and footer will be hidden, which allows the site to fit into a different page. Note that this also limits options for users to navigate the site.
The effect is purely aesthetic. It does not adjust any server-side configurations, e.g. to set the X-Frame-Options header.
Type: number
Sets the cutoff point between direct downloads and scheduled downloads.
Type: string
Sets the semantic version of Textcavator that is displayed in the footer.
You could set this manually, but in most cases, you will import it from version.ts. That file is updated when you build the frontend, based on the version number in package.json. See Making a release.
Type: string
The URL to the source repository, which is linked in the footer.
Change this if you create a fork of Textcavator.
Can be used to add additional logos to the page footer.
Type: either undefined or an array of objects. Each item must match the following interface:
interface Logo {
path: string, // URL of the image source
url: string, // URL that the image should link to
alt: string, // alt text for the image
width: number, // width of the image in pixels
}Type: boolean
By default, the corpus selection menu will allow users to filter corpora based on their category, time period, and language. If the server has a very small number of corpora, or the corpora are very similar, you can use this this setting to hide the filters.
Type: MatomoConfig
Optional. To track usage data using matomo, use this setting to provide the URL of the matomo server, and the ID of this Textcavator site on your matomo server.
Note: the matomo.ts module handles the client-side configuration for matomo.