-
Notifications
You must be signed in to change notification settings - Fork 214
Expand file tree
/
Copy pathconstants.js.hbs
More file actions
29 lines (22 loc) · 901 Bytes
/
constants.js.hbs
File metadata and controls
29 lines (22 loc) · 901 Bytes
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
/*
* Copyright (c) 2023, Salesforce, Inc.
* All rights reserved.
* SPDX-License-Identifier: BSD-3-Clause
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/BSD-3-Clause
*/
/*
Hello there! This is a demonstration of how to override a file from the base template.
It's necessary that the module export interface remain consistent,
as other files in the base template rely on constants.js, thus we
import the underlying constants.js, modifies it and re-export it.
*/
import {
DEFAULT_LIMIT_VALUES,
DEFAULT_SEARCH_PARAMS
} from '{{template.id}}/app/constants'
// original value is 25
DEFAULT_LIMIT_VALUES[0] = 3
DEFAULT_SEARCH_PARAMS.limit = 3
export const CUSTOM_HOME_TITLE = '🎉 Hello Extensible React Template!'
export {DEFAULT_LIMIT_VALUES, DEFAULT_SEARCH_PARAMS}
export * from '{{template.id}}/app/constants'