Skip to content

Commit 4462e2b

Browse files
author
vikasrohit
authored
Merge pull request #1920 from appirio-tech/dev
Release to prod
2 parents 917b640 + afc579e commit 4462e2b

File tree

209 files changed

+7802
-5389
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

209 files changed

+7802
-5389
lines changed

.build-info

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"rndkey":"\\þû\u001c±7åI–\u0007ïˆRªÞǤ¦\u0015Ц\u0007¥ç\u001e:ÄX)™P§","timestamp":"2018-02-17T13:13:13.277Z"}
1+
{"rndkey":"»#\u0003b\u001d-‹j¯±\u000e&nbO÷. ÁˆÂ¹?•öë»\u000fÜí","timestamp":"2018-03-08T11:50:21.658Z"}

config/webpack/development.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,20 @@ combinedConfig.entry.main = combinedConfig.entry.main.filter((entry) => (
4646
entry !== 'webpack-hot-middleware/client?reload=true'
4747
))
4848

49+
/*
50+
Remove ExtractTextPlugin, because we want hot reload when editing styles
51+
*/
52+
const extractTextPluginIndex = combinedConfig.plugins.findIndex(plugin => plugin.constructor.name === 'ExtractTextPlugin')
53+
combinedConfig.plugins.splice(extractTextPluginIndex, 1)
54+
55+
combinedConfig.module.rules.forEach(rule => {
56+
if (rule.use){
57+
const extractTextLoaderIndex = rule.use.findIndex(use => use.loader && use.loader.indexOf('extract-css-chunks-webpack-plugin') >= 0)
58+
if (extractTextLoaderIndex >= 0) {
59+
rule.use.splice(extractTextLoaderIndex, 1)
60+
}
61+
}
62+
})
4963
/*
5064
Enable source maps.
5165
This also let us see original file names in browser console.

package-lock.json

Lines changed: 6673 additions & 4973 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/actions/loadUser.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ export function loadUserSuccess(dispatch, token) {
4949
if (currentUser) {
5050
getUserProfile(currentUser.handle).then((profile) => {
5151
currentUser = _.assign(currentUser, profile)
52-
// keeping profile for backward compaitability
52+
// keeping profile for backward compatibility
5353
currentUser.profile = profile
5454
// determine user role
5555
let userRole

src/api/projectAttachments.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,10 @@ export function updateProjectAttachment(projectId, attachmentId, attachment) {
1616
return axios.patch(
1717
`${PROJECTS_API_URL}/v4/projects/${projectId}/attachments/${attachmentId}`,
1818
{ param: attachment })
19-
.then ( resp => resp.data.result.content )
19+
.then ( resp => {
20+
resp.data.result.content.downloadUrl = `/projects/${projectId}/attachments/${attachmentId}`
21+
return _.get(resp.data, 'result.content', {})
22+
})
2023
}
2124

2225
export function removeProjectAttachment(projectId, attachmentId) {

src/api/projects.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export function getProjects(criteria, pageNum) {
2222
filter.segment = `in(${filter.segment})`
2323
}
2424
// convert filter object to string
25-
const filterStr = _.map(filter, (v, k) => `${k}=${v}`)
25+
const filterStr = _.map(filter, (v, k) => `${k}=${encodeURIComponent(v)}`)
2626
params.filter = filterStr.join('&')
2727
}
2828
// sort fields
@@ -80,7 +80,7 @@ export function createProject(projectProps) {
8080
// TODO: Remove this once none of the active projects
8181
// have the discussions tab enabled
8282
projectProps.details.hideDiscussions = true
83-
83+
8484
return axios.post(`${PROJECTS_API_URL}/v4/projects/`, { param: projectProps })
8585
.then( resp => {
8686
return _.get(resp.data, 'result.content', {})

src/assets/icons/Device-iPhone.svg

Lines changed: 0 additions & 2 deletions
Loading

src/assets/icons/arrow-6px-carret-down-active.svg

Lines changed: 0 additions & 1 deletion
Loading

src/assets/icons/arrow-6px-carret-down-normal.svg

Lines changed: 0 additions & 1 deletion
Loading

src/assets/icons/arrow-9px-carret-down-normal.svg

Lines changed: 0 additions & 1 deletion
Loading

0 commit comments

Comments
 (0)