|
|
|
|
25
|
icon: 'fa fa-file-text-o',
|
25
|
icon: 'fa fa-file-text-o',
|
26
|
color: '#fdfdfd',
|
26
|
color: '#fdfdfd',
|
27
|
domContainer: 'appContainer',
|
27
|
domContainer: 'appContainer',
|
28
|
- apiUrl: 'http://localhost:3001'
|
|
|
|
|
28
|
+ mockApiUrl: 'http://localhost:3001'
|
29
|
},
|
29
|
},
|
30
|
loggedUser: {
|
30
|
loggedUser: {
|
31
|
id: 5,
|
31
|
id: 5,
|
|
|
|
|
82
|
const { content, config } = this.state
|
82
|
const { content, config } = this.state
|
83
|
if (content.id === '-1') return // debug case
|
83
|
if (content.id === '-1') return // debug case
|
84
|
|
84
|
|
85
|
- const fetchResultPageHtml = await fetch(`${config.apiUrl}/workspace/${content.workspace.id}/content/${content.id}`, {
|
|
|
|
|
85
|
+ const fetchResultPageHtml = await fetch(`${config.mockApiUrl}/workspace/${content.workspace.id}/content/${content.id}`, {
|
86
|
...FETCH_CONFIG,
|
86
|
...FETCH_CONFIG,
|
87
|
method: 'GET'
|
87
|
method: 'GET'
|
88
|
})
|
88
|
})
|
89
|
- const fetchResultTimeline = await fetch(`${config.apiUrl}/workspace/${content.workspace.id}/content/${content.id}/timeline`, {
|
|
|
|
|
89
|
+ const fetchResultTimeline = await fetch(`${config.mockApiUrl}/workspace/${content.workspace.id}/content/${content.id}/timeline`, {
|
90
|
...FETCH_CONFIG,
|
90
|
...FETCH_CONFIG,
|
91
|
method: 'GET'
|
91
|
method: 'GET'
|
92
|
})
|
92
|
})
|