forked from enketo/enketo
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathconfig.js
38 lines (36 loc) · 1.39 KB
/
config.js
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
export default /** @type {const} */ ({
experimentalOptimizations: {
/**
* When set to `true`, recomputations of the evaluation cascade will be performed
* asynchronously to reduce time spent blocking UI updates. This may be improve
* perceived performance on large forms with complex chained computations. These
* computations are technically delayed and will perform more slowly, but their
* corresponding UI updates will render more quickly as each step in the chain of
* computations completes.
*/
computeAsync: window.location.search.includes('&computeAsync'),
},
/**
* When set to `true`, non-relevant values will be treated as blank. This behavior
* is largely consistent with JavaRosa.
*/
excludeNonRelevant: window.location.search.includes('&excludeNonRelevant'),
maps: [
{
tiles: ['https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png'],
name: 'streets',
attribution:
"© <a href='http://openstreetmap.org'>OpenStreetMap</a> | <a href='www.openstreetmap.org/copyright'>Terms</a>",
},
{
tiles: 'GOOGLE_SATELLITE',
name: 'satellite',
},
],
googleApiKey: '',
repeatOrdinals: false,
validateContinuously: false,
validatePage: true,
swipePage: true,
textMaxChars: 2000,
});