environment.defaults.ts 3.63 KB
Newer Older
1
2
// This file should contains all the defaults settings shared in all environment files
// If you want to override properties for specific environment, do it in these files
3

4
import {ErrorBackendKeyEnum} from "@app/shared/enums/error-backend-key.enum";
5
import {ThemeEnum} from "@app/shared/enums/theme.enum";
Florent POITTEVIN's avatar
Florent POITTEVIN committed
6
import {Enums} from "@enums";
7
8
9
10
import {
  AppRoutesEnum,
  RoutesEnum,
} from "@shared/enums/routes.enum";
11
import {ViewModeTableEnum} from "@shared/enums/view-mode-table.enum";
12
import {defaultSolidifyEnvironment} from "solidify-frontend";
13
import {DlcmEnvironment} from "./environment.defaults.model";
14
15

export const defaultEnvironment: DlcmEnvironment = {
16
  ...defaultSolidifyEnvironment,
17
  appTitle: "DLCM - Portal",
18
  appDescription: "Platform for archiving research data",
19
  scope: "dlcm",
20
21
  listTagsComponentsWhereClickAllowToEnterInEditMode: [
    "dlcm-shared-table-person-orgunit-role-container",
22
    "dlcm-shared-table-orgunit-container",
23
  ],
Florent POITTEVIN's avatar
Florent POITTEVIN committed
24
  defaultLanguage: Enums.Language.LanguageEnum.en,
25
  appLanguages: [Enums.Language.LanguageEnum.en, Enums.Language.LanguageEnum.fr],
26
27
28
29
30
31
32
33
34
35
  appLanguagesTranslate: Enums.Language.LanguageEnumTranslate,
  appThemes: [ThemeEnum.dlcm, ThemeEnum.yareta, ThemeEnum.olos],
  appThemesTranslate: [
    {key: ThemeEnum.dlcm, value: "DLCM"},
    {key: ThemeEnum.yareta, value: "Yareta"},
    {key: ThemeEnum.olos, value: "Olos"},
  ],
  theme: ThemeEnum.dlcm,
  routeHomePage: RoutesEnum.homePage,
  routeSegmentEdit: AppRoutesEnum.edit,
36
  googleAnalyticsLearnMorePage: undefined,
37
38
39
  displayPrivacyPolicyAndTermsOfUseApprovalDialog: false,
  privacyPolicyLink: "",
  termsOfUseLink: "",
40

Homada.Boumedane's avatar
Homada.Boumedane committed
41
  // Base URL For Module Applications (override by AppAction.LoadModules)
42
  admin: "http://localhost:16105/dlcm/admin",
43

44
45
46
47
  // Documentation
  documentationTocApisGuide: "DLCM-APIs-toc.html",
  documentationTocIntegrationGuide: "DLCM-IntegrationGuide-toc.html",
  documentationTocToolsGuide: "DLCM-ToolsGuide-toc.html",
48
  documentationTocUserGuidePath: undefined,
49
50
  documentationTocUserGuide: undefined,

51
  // Orcid
52
  orcidQueryParam: "orcid",
53
  orcidAuthorizeUrl: "https://orcid.org/oauth/authorize",
54
  orcidUrl: "http://orcid.org",
55

56
57
58
  // Access request
  accessRequestRoute: "accessRequest",

59
  institutionUrl: "https://www.unige.ch/",
60

61
62
63
  // === Solidify Upload Environment ===
  errorUploadDuplicateFile: ErrorBackendKeyEnum.UPLOAD_DUPLICATE_DATA_FILES,

64
65
  // Home
  defaultHomeViewModeTableEnum: ViewModeTableEnum.tiles,
66
67
68
  defaultPageSizeHomePage: 10,
  defaultHomeOrgUnitSize: 1000,
  carouselUrl: undefined,
69
  frequencyChangeCarouselTileInSecond: 5,
Florent Poittevin's avatar
Florent Poittevin committed
70
  twitterAccount: "dlcm_ch",
71
  twitterTweetToDisplay: 4,
Florent Poittevin's avatar
Florent Poittevin committed
72

73
74
  urlNationalArchivePronom: "https://www.nationalarchives.gov.uk/PRONOM/",

75
  doiLink: "https://doi.org/",
76
  oaiProviderUrlEnd: "/oai-provider/oai?verb=Identify&smartView=dlcm_oai2.xsl",
77

Florent Poittevin's avatar
Florent Poittevin committed
78
  // Polling
79
  refreshTabStatusCounterIntervalInSecond: 60,
Florent Poittevin's avatar
Florent Poittevin committed
80
  refreshOrderAvailableIntervalInSecond: 5,
81
  refreshNotificationInboxAvailableIntervalInSecond: 60,
82
  refreshDepositSubmittedIntervalInSecond: 2,
83
  refreshSipProcessIntervalInSecond: 2,
84

85
  // Errors
86
87
88
  httpErrorKeyToSkipInErrorHandler: [
    ErrorBackendKeyEnum.UPLOAD_DUPLICATE_DATA_FILES,
  ],
89
90
91
92
93
94

  archivalStorageName: [
    "File",
    "S2",
  ],
  defaultStorageIndex: 0,
95
  fileSizeLimitForChecksumGenerationInMegabytes: 20,
96
97
98
99
100
101
102
103
104
};

/*
 * For easier debugging in development mode, you can import the following file
 * to ignore zone related error stack frames such as `zone.run`, `zoneDelegate.invokeTask`.
 *
 * This import should be commented out in production mode because it will have a negative impact
 * on performance if an error is thrown.
 */
105
// import 'zone.js/plugins/zone-error';  // Included with Angular CLI.