-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathenvironment.demo.ts
185 lines (174 loc) · 6.9 KB
/
environment.demo.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
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
/* 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"; // Included with Angular CLI.
import {SSLayerConfiguration} from "../app/types";
const defaultDashboard: Dashboard = {
boards: [{
deviceType: "all",
pages: [{
title: "First Page",
cards: []
}]
}]
};
const layers: SSLayerConfiguration = {
"available": [
{
"id": "flood",
"title": "Floods",
"sources": ["twitter"],
"hazards": ["flood"],
"warnings": "exclude",
"language": "*",
"annotations": ["source", "impact"],
"icons": ["flood"]
},
{
"id": "flood-cy",
"title": "Floods (Welsh Language)",
"sources": ["twitter"],
"hazards": ["flood"],
"warnings": "exclude",
"language": "cy",
"annotations": ["source", "impact"],
"icons": ["flood"]
},
{
"id": "flood-with-warnings",
"title": "Floods (includes warnings)",
"sources": ["twitter"],
"hazards": ["flood"],
"warnings": "include",
"language": "*",
"annotations": ["source", "impact"],
"icons": ["flood", "storm-warning"]
},
{
"id": "flood-warnings-only",
"title": "Floods (only warnings)",
"sources": ["twitter"],
"hazards": ["flood"],
"warnings": "only",
"language": "*",
"annotations": ["source", "impact"],
"icons": ["storm-warning"]
},
{
"id": "wind",
"title": "Wind",
"sources": ["twitter"],
"hazards": ["wind"],
"warnings": "exclude",
"language": "*",
"annotations": ["impact"],
"icons": ["strong-wind"]
},
{
"id": "wind-and-flood",
"title": "Wind & Flood",
"sources": ["twitter"],
"hazards": ["wind", "flood"],
"warnings": "exclude",
"language": "*",
"annotations": ["source", "impact"],
"icons": ["flood", "strong-wind"]
},
{
"id": "snow",
"title": "Snow",
"sources": ["twitter"],
"hazards": ["snow"],
"warnings": "exclude",
"language": "*",
"annotations": ["impact"],
"icons": ["snow"]
},
],
"defaultLayer": "flood"
};
export const environment = {
name: "demo",
lamdaEnvironment: "demo",
version: "demo",
demo: true,
production: true,
hmr: false,
rollbar: false,
toolbarColor: "primary",
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"],
features: ["impact", "source", "map", "dashboard", "analytics", "display"],
showErrors: false,
showLoadingMessages: true,
mostRecentDateIsNow: false,
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: 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,
useRestMapData: true,
maxCallsPerMinute: 10000,
analyticsDefaultRegions: ["uk"],
tweetCSVExportFormat: "default",
showAnalyticsSideMenu: false,
countryDownloadRegionType: "bi_country",
exceedanceThreshold: 100,
countThreshold: 0,
publicDisplayTweetScroll: "all",
publicDisplayTweetScrollRate: 3000,
publicDisplayMaxTweets: 60,
publicDisplayMaxTweetsRetrieved: 200,
defaultPublicDisplayScript: "default_script",
};