Skip to content

Commit 6a060ec

Browse files
committed
handling html entities properly
1 parent 5742d21 commit 6a060ec

File tree

6 files changed

+602
-318
lines changed

6 files changed

+602
-318
lines changed

app/components/SvnRevisionList.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,10 @@ export default class SvnRevisionList extends Component {
6868
console.log('Patch result: ');
6969

7070
const diff2HtmlConfig = { inputFormat: 'diff',
71-
outputFormat: 'line-by-line',
72-
showFiles: true
71+
outputFormat: 'side-by-side',
72+
showFiles: true,
73+
matching: 'words',
74+
synchronisedScroll: true
7375
};
7476

7577
console.log('Diff2Html result: ');
@@ -121,9 +123,7 @@ export default class SvnRevisionList extends Component {
121123
<ul>
122124
{rows}
123125
</ul>
124-
<div className="diff-container">
125-
{ ReactHtmlParser(this.state.prettyDiffHtml) }
126-
</div>
126+
<div className="diff-container" dangerouslySetInnerHTML={{ __html: this.state.prettyDiffHtml }} />
127127
</div>
128128
);
129129
}

app/main.prod.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/main.prod.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 30 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -123,95 +123,94 @@
123123
"babel-core": "^6.24.1",
124124
"babel-eslint": "^7.2.3",
125125
"babel-jest": "^20.0.3",
126-
"babel-loader": "^7.0.0",
126+
"babel-loader": "^7.1.0",
127127
"babel-plugin-add-module-exports": "^0.2.1",
128128
"babel-plugin-dev-expression": "^0.2.1",
129129
"babel-plugin-dynamic-import-webpack": "^1.0.1",
130130
"babel-plugin-flow-runtime": "^0.11.1",
131131
"babel-plugin-transform-class-properties": "^6.24.1",
132132
"babel-plugin-transform-es2015-classes": "^6.24.1",
133-
"babel-polyfill": "^6.23.0",
134133
"babel-preset-env": "^1.5.1",
135134
"babel-preset-react": "^6.24.1",
136135
"babel-preset-react-hmre": "^1.1.1",
137136
"babel-preset-react-optimize": "^1.0.1",
138137
"babel-preset-stage-0": "^6.24.1",
139138
"babel-register": "^6.24.1",
140-
"babili-webpack-plugin": "^0.1.1",
141-
"chalk": "^1.1.3",
142-
"concurrently": "^3.4.0",
139+
"babili-webpack-plugin": "^0.1.2",
140+
"chalk": "^2.0.1",
141+
"concurrently": "^3.5.0",
143142
"cross-env": "^5.0.0",
144143
"cross-spawn": "^5.1.0",
145144
"css-loader": "^0.28.3",
146-
"devtron": "^1.4.0",
147145
"electron": "^1.6.10",
148-
"electron-builder": "^18.0.1",
146+
"electron-builder": "^19.8.0",
149147
"electron-devtools-installer": "^2.2.0",
150-
"enzyme": "^2.8.2",
148+
"enzyme": "^2.9.1",
151149
"enzyme-to-json": "^1.5.1",
152150
"eslint": "^3.19.0",
153151
"eslint-config-airbnb": "^15.0.1",
154152
"eslint-formatter-pretty": "^1.1.0",
155-
"eslint-import-resolver-webpack": "^0.8.1",
156-
"eslint-plugin-compat": "^1.0.3",
153+
"eslint-import-resolver-webpack": "^0.8.3",
154+
"eslint-plugin-compat": "^1.0.4",
157155
"eslint-plugin-flowtype": "^2.33.0",
158156
"eslint-plugin-flowtype-errors": "^3.3.0",
159-
"eslint-plugin-import": "^2.3.0",
157+
"eslint-plugin-import": "^2.6.0",
160158
"eslint-plugin-jest": "^20.0.3",
161159
"eslint-plugin-jsx-a11y": "^5.0.3",
162160
"eslint-plugin-promise": "^3.5.0",
163-
"eslint-plugin-react": "^7.0.1",
161+
"eslint-plugin-react": "^7.1.0",
164162
"express": "^4.15.3",
165163
"extract-text-webpack-plugin": "^2.1.0",
166-
"fbjs-scripts": "^0.7.1",
164+
"fbjs-scripts": "^0.8.0",
167165
"file-loader": "^0.11.1",
168-
"flow-bin": "^0.47.0",
169-
"flow-runtime": "^0.12.0",
166+
"flow-bin": "^0.48.0",
167+
"flow-runtime": "^0.13.0",
170168
"flow-typed": "^2.1.2",
171-
"html-webpack-plugin": "^2.28.0",
169+
"html-webpack-plugin": "^2.29.0",
172170
"identity-obj-proxy": "^3.0.0",
173171
"jest": "^20.0.4",
174172
"jsdom": "^11.0.0",
175173
"minimist": "^1.2.0",
176174
"node-sass": "^4.5.3",
177-
"react-addons-test-utils": "^15.5.1",
178-
"react-test-renderer": "^15.5.4",
175+
"react-addons-test-utils": "^15.6.0",
176+
"react-test-renderer": "^15.6.1",
179177
"redux-logger": "^3.0.6",
180178
"rimraf": "^2.6.1",
181-
"sass-loader": "^6.0.5",
182-
"sinon": "^2.3.1",
179+
"sass-loader": "^6.0.6",
180+
"sinon": "^2.3.5",
183181
"spectron": "^3.7.0",
184182
"style-loader": "^0.18.1",
185-
"stylefmt": "^5.3.2",
186-
"stylelint": "^7.10.1",
183+
"stylefmt": "^6.0.0",
184+
"stylelint": "^7.12.0",
187185
"stylelint-config-standard": "^16.0.0",
188186
"url-loader": "^0.5.8",
189-
"webpack": "^2.6.1",
187+
"webpack": "^3.0.0",
190188
"webpack-bundle-analyzer": "^2.8.2",
191-
"webpack-dev-server": "^2.4.5",
189+
"webpack-dev-server": "^2.5.0",
192190
"webpack-merge": "^4.1.0"
193191
},
194192
"dependencies": {
195-
"electron-debug": "^1.1.0",
193+
"devtron": "^1.4.0",
194+
"electron-debug": "^1.2.0",
196195
"font-awesome": "^4.7.0",
197-
"history": "^4.6.1",
196+
"history": "^4.6.3",
198197
"prop-types": "^15.5.10",
199-
"react": "^15.5.4",
198+
"react": "^15.6.1",
200199
"react-datepicker": "^0.47.0",
201-
"react-dom": "^15.5.4",
200+
"react-dom": "^15.6.1",
202201
"react-hot-loader": "3.0.0-beta.6",
203202
"react-html-parser": "^1.0.3",
204203
"react-redux": "^5.0.5",
205204
"react-router": "^4.1.1",
206205
"react-router-dom": "^4.1.1",
207206
"react-router-redux": "^5.0.0-alpha.6",
208-
"redux": "^3.6.0",
207+
"redux": "^3.7.1",
209208
"redux-thunk": "^2.2.0",
210209
"source-map-support": "^0.4.15"
211210
},
212211
"devEngines": {
213-
"node": ">=6.x",
214-
"npm": ">=3.x",
212+
"node": ">=7.x",
213+
"npm": ">=4.x",
215214
"yarn": ">=0.21.3"
216215
}
217216
}

tmp/repo/.svn/wc.db

0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)