-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdefaults.js
67 lines (63 loc) · 1.97 KB
/
defaults.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
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
import axios from 'axios';
import IconApps from 'mdi-material-ui/Apps';
import IconEmail from 'mdi-material-ui/Email';
import React from 'react';
import LoginLogout from '../../../core/LoginLogout';
const defaultContactHref = 'https://www.research.colostate.edu/ricro/contact';
const defaultHost =
process.env.NODE_ENV === 'development'
? 'http://localhost'
: 'https://services.ricro.colostate.edu';
const defaultPath = '/api/v3';
const defaultBasename = '/__dev/cru/v3';
const defaults = {
api: {
host: defaultHost,
path: defaultPath,
baseUrl: defaultHost + defaultPath,
editDisplayNamePath: '/user/edit-display-name/',
editProfileImagePath: '/user/edit-profile-image/',
axios: axios.create({
baseURL: defaultHost + defaultPath, // axios requires URL to be all caps
withCredentials: true,
}),
},
auth: {
host: defaultHost,
// Path that is protected by shibboleth
shibPath: '/auth/sso/?v=3',
loginPath: '/auth/v3/login/',
logoutPath: '/auth/v3/logout/',
},
app: {
name: 'App Template - Defaults',
// redux basename
basename: defaultBasename,
hasLogin: true,
// if hasLogin is false hasAutoLogin is ignored
hasAutoLogin: false,
nav: [
[
{ name: 'Apps', icon: <IconApps />, link: '/', linkComponent: 'a', disableActive: true },
<LoginLogout />,
{ name: 'Contact Us', icon: <IconEmail />, link: defaultContactHref },
],
],
// LogRocket object contains a string, `id`, that contains the LogRocket App ID
// This ID can be found under the LogRocket project settings > General Settings
// LogRocket: {
// id: 'id string'
// }
LogRocket: null,
},
debug: false,
defaultState: {},
unit: {
name: 'RICRO',
siteHref: 'https://www.research.colostate.edu/ricro/',
contactHref: defaultContactHref,
},
usedCreateConfigUtil: true,
};
export default defaults;
export { defaultBasename, defaultContactHref, defaultHost, defaultPath };