RED-3369: Set base URL for manual by env variable
This commit is contained in:
parent
39c7e8ab28
commit
7f1ca7fcfd
@ -31,7 +31,14 @@ import { SpotlightSearchComponent } from '@components/spotlight-search/spotlight
|
||||
import { PruningTranslationLoader } from '@utils/pruning-translation-loader';
|
||||
import { DatePipe } from '@shared/pipes/date.pipe';
|
||||
import * as links from '../assets/help-mode/links.json';
|
||||
import { HELP_DOCS, IqserHelpModeModule, MAX_RETRIES_ON_SERVER_ERROR, ServerErrorInterceptor, ToastComponent } from '@iqser/common-ui';
|
||||
import {
|
||||
HELP_DOCS,
|
||||
IqserHelpModeModule,
|
||||
MANUAL_BASE_URL,
|
||||
MAX_RETRIES_ON_SERVER_ERROR,
|
||||
ServerErrorInterceptor,
|
||||
ToastComponent,
|
||||
} from '@iqser/common-ui';
|
||||
import { KeycloakService } from 'keycloak-angular';
|
||||
import { GeneralSettingsService } from '@services/general-settings.service';
|
||||
import { BreadcrumbsComponent } from '@components/breadcrumbs/breadcrumbs.component';
|
||||
@ -127,6 +134,11 @@ const components = [AppComponent, AuthErrorComponent, NotificationsComponent, Sp
|
||||
provide: HELP_DOCS,
|
||||
useValue: links,
|
||||
},
|
||||
{
|
||||
provide: MANUAL_BASE_URL,
|
||||
useFactory: (configService: ConfigService) => configService.values.MANUAL_BASE_URL,
|
||||
deps: [ConfigService],
|
||||
},
|
||||
{
|
||||
provide: MAX_RETRIES_ON_SERVER_ERROR,
|
||||
useFactory: (configService: ConfigService) => configService.values.MAX_RETRIES_ON_SERVER_ERROR,
|
||||
|
||||
@ -19,5 +19,6 @@
|
||||
"OAUTH_IDP_HINT": null,
|
||||
"OAUTH_URL": "https://dev-05.iqser.cloud/auth/realms/redaction",
|
||||
"RECENT_PERIOD_IN_HOURS": 24,
|
||||
"SELECTION_MODE": "structural"
|
||||
"SELECTION_MODE": "structural",
|
||||
"MANUAL_BASE_URL": "https://docs.redactmanager.com/3.0"
|
||||
}
|
||||
|
||||
@ -1,42 +1,42 @@
|
||||
{
|
||||
"open-usermenu": {
|
||||
"en": "https://docs.redactmanager.com/2.2/en/user-menu-and-profile.html",
|
||||
"en": "/en/23200-user-menu-and-account.html",
|
||||
"de": "",
|
||||
"it": "",
|
||||
"fr": ""
|
||||
},
|
||||
"filter-dossier-list": {
|
||||
"en": "https://docs.redactmanager.com/2.2/en/creating-and-managing-dossiers/dossier-overview/dossier-list.html#UUID-e5177955-3e92-8627-0732-af8d4a2036e2",
|
||||
"en": "/en/26024-features-and-actions-in-the-dossier-overview.html",
|
||||
"de": "",
|
||||
"it": "",
|
||||
"fr": ""
|
||||
},
|
||||
"filter-document-list": {
|
||||
"en": "https://docs.redactmanager.com/preview/en/create-and-manage-dossier/dossier-overview/dossier-list.html",
|
||||
"en": "/en/create-and-manage-dossier/dossier-overview/dossier-list.html",
|
||||
"de": "",
|
||||
"it": "",
|
||||
"fr": ""
|
||||
},
|
||||
"dossiers-quickfilter-my-dossiers": {
|
||||
"en": "https://docs.redactmanager.com/preview/en/create-and-manage-dossier/dossier-overview/dossier-list.html",
|
||||
"en": "/en/create-and-manage-dossier/dossier-overview/dossier-list.html",
|
||||
"de": "",
|
||||
"it": "",
|
||||
"fr": ""
|
||||
},
|
||||
"search-in-entire-application": {
|
||||
"en": "https://docs.redactmanager.com/2.2/en/searching-the-application.html",
|
||||
"en": "/en/15632-searching-the-application.html",
|
||||
"de": "",
|
||||
"it": "",
|
||||
"fr": ""
|
||||
},
|
||||
"open-notifications": {
|
||||
"en": "https://docs.redactmanager.com/2.2/en/notifications.html",
|
||||
"en": "/en/15471-notifications.html",
|
||||
"de": "",
|
||||
"it": "",
|
||||
"fr": ""
|
||||
},
|
||||
"dossier-list": {
|
||||
"en": "https://docs.redactmanager.com/2.2/en/20941-dossier-liste.html",
|
||||
"en": "/en/20941-dossier-liste.html",
|
||||
"de": "",
|
||||
"it": "",
|
||||
"fr": ""
|
||||
@ -48,7 +48,7 @@
|
||||
"fr": ""
|
||||
},
|
||||
"new-dossier-button": {
|
||||
"en": "https://docs.redactmanager.com/2.2/en/creating-and-managing-dossiers/dossier-overview/creating-a-new-dossier.html",
|
||||
"en": "/en/creating-and-managing-dossiers/dossier-overview/creating-a-new-dossier.html",
|
||||
"de": "",
|
||||
"it": "",
|
||||
"fr": ""
|
||||
@ -90,19 +90,19 @@
|
||||
"fr": ""
|
||||
},
|
||||
"standard-view": {
|
||||
"en": "https://docs.redactmanager.com/2.2/en/editing-documents-in-the-editor/views-in-the-editor/standard-view.html",
|
||||
"en": "/en/editing-documents-in-the-editor/views-in-the-editor/standard-view.html",
|
||||
"de": "",
|
||||
"it": "",
|
||||
"fr": ""
|
||||
},
|
||||
"delta-view": {
|
||||
"en": "https://docs.redactmanager.com/2.2/en/editing-documents-in-the-editor/views-in-the-editor/delta-view.html",
|
||||
"en": "/en/editing-documents-in-the-editor/views-in-the-editor/delta-view.html",
|
||||
"de": "",
|
||||
"it": "",
|
||||
"fr": ""
|
||||
},
|
||||
"preview-view": {
|
||||
"en": "https://docs.redactmanager.com/2.2/en/editing-documents-in-the-editor/views-in-the-editor/preview.html",
|
||||
"en": "/en/editing-documents-in-the-editor/views-in-the-editor/preview.html",
|
||||
"de": "",
|
||||
"it": "",
|
||||
"fr": ""
|
||||
|
||||
@ -23,6 +23,7 @@ OAUTH_IDP_HINT="${OAUTH_IDP_HINT:-}"
|
||||
OAUTH_URL="${OAUTH_URL:-/auth}"
|
||||
RECENT_PERIOD_IN_HOURS="${RECENT_PERIOD_IN_HOURS:-24}"
|
||||
SELECTION_MODE="${SELECTION_MODE:-structural}"
|
||||
MANUAL_BASE_URL="${MANUAL_BASE_URL:-https://docs.redactmanager.com/3.0}"
|
||||
|
||||
|
||||
|
||||
@ -47,6 +48,7 @@ echo '{
|
||||
"OAUTH_URL":"'"$OAUTH_URL"'",
|
||||
"RECENT_PERIOD_IN_HOURS":'"$RECENT_PERIOD_IN_HOURS"',
|
||||
"SELECTION_MODE":"'"$SELECTION_MODE"'"
|
||||
"MANUAL_BASE_URL":"'"$MANUAL_BASE_URL"'"
|
||||
}' > /usr/share/nginx/html/ui/assets/config/config.json
|
||||
|
||||
echo 'Env variables: '
|
||||
|
||||
@ -1 +1 @@
|
||||
Subproject commit b808e4661e56aa93baca96c57f910443437112d4
|
||||
Subproject commit e5794fd7728e30655e7259eedd5d98bec518e22d
|
||||
Loading…
x
Reference in New Issue
Block a user