-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathenvironment.test.ts
130 lines (121 loc) · 5.08 KB
/
environment.test.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
/* tslint:disable:object-literal-key-quotes */
// This file can be replaced during build by using the `fileReplacements` array.
// `ng build --prod` replaces `environment.ts` with `environment.prod.ts`.
// The list of file replacements can be found in `angular.json`.
import {Dashboard} from "../app/pref/dashboard.service";
/*
* 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.
*/
import "zone.js/dist/zone-error";
import {SSLayerConfiguration} from "../app/types"; // Included with Angular CLI.
const layers: SSLayerConfiguration = {
"available": [
{
"id": "flood",
"title": "Floods",
"sources": ["twitter"],
"hazards": ["flood"],
"warnings": "exclude",
"language": "*",
"annotations": ["source", "impact"],
"icons": ["flood"]
},
{
"id": "wind",
"title": "Wind",
"sources": ["twitter"],
"hazards": ["wind"],
"warnings": "exclude",
"language": "*",
"annotations": ["impact"],
"icons": ["strong-wind"]
}
],
"defaultLayer": "flood"
};
const defaultDashboard: Dashboard = {
boards: [{
deviceType: "all",
pages: [{
title: "First Page",
cards: []
}]
}]
};
export const environment = {
name: "test",
lamdaEnvironment: "test",
version: "test",
demo: false,
production: false,
test: true,
hmr: false,
rollbar: false,
toolbarColor: "accent",
// timezone: Intl.DateTimeFormat().resolvedOptions().timeZone,
timezone: "UTC",
multipleSessions: true, // Can the user be logged into multiple devices/browsers at once?
maxUsers: -1, // can be -1 (no limit), 0 - no logins, 1 - single user at a time, n - n concurrent users.
locale: "en-GB",
confirm: {
email: "",
password: ""
},
annotations: [
{
name: "impact",
title: "Impact",
// The ability to tag tweets with an impact annotation
options: [
{title: "1 – Minimal", value: "minimal", color: "#43A047"},
{title: "2 – Minor", value: "minor", color: "#FFEE58"},
{title: "3 - Significant", value: "significant", color: "#FFB300"},
{title: "4 - Severe", value: "severe", color: "#F4511E"}
]
},
{
name: "source",
title: "Source",
// The ability to tag tweets with a source
options: [
{title: "River", value: "river", color: "#43A047"},
{title: "Surface", value: "surface", color: "#FFEE58"},
{title: "Groundwater", value: "groundwater", color: "#FFB300"},
{title: "Coastal", value: "coastal", color: "#F4511E"}
]
},
],
features: ["impact", "source", "map", "dashboard", "analytics", "display"],
showErrors: true,
showLoadingMessages: true,
mostRecentDateIsNow: true,
sanitizeForGDPR: true,
continuousUpdateThresholdInMinutes: 5,
animateOnTimeSliderChange: false,
recentTweetHighlightOffsetInSeconds: 1200,
defaultDataSet: "uk-flood-live",
availableDataSets: ["uk-flood-live"], // A list of datasets that will appear in the toolbar dropdown, or "*" for all.
cacheProcessedTweets: false,
mapTileUrlTemplate: "https://api.mapbox.com/styles/v1/mapbox/streets-v11/tiles/{z}/{x}/{y}?access_token=pk.eyJ1IjoicnVkeWFydGh1ciIsImEiOiJjamZrem1ic3owY3k4MnhuYWt2dGxmZmk5In0.ddp6_hNhs_n9MJMrlBwTVg",
defaultDashboard,
layers,
layersEnabled: ["flood", "wind", "snow"],
blinkRateInMilliseconds: 1000,
// mapTileUrlTemplate:
// "https://api.tiles.mapbox.com/v4/{id}/{z}/{x}/{y}.png?access_token=pk.eyJ1IjoicnVkeWFydGh1ciIsImEiOiJjamZrem1ic3owY3k4MnhuYWt2dGxmZmk5In0.ddp6_hNhs_n9MJMrlBwTVg"
shareTextAutocompleteInGroup: true,
maxCallsPerMinute: 10000,
analyticsDefaultRegions: ["uk"],
countryDownloadRegionType: "bi_country",
exceedanceThreshold: 100,
countThreshold: 0,
publicDisplayTweetScroll: "all",
publicDisplayTweetScrollRate: 3000,
publicDisplayMaxTweets: 60,
publicDisplayMaxTweetsRetrieved: 200,
defaultPublicDisplayScript: "default_script",
};