Skip to content

Commit

Permalink
feat: add prettier on genetics
Browse files Browse the repository at this point in the history
  • Loading branch information
carcruz committed Jul 3, 2022
1 parent ebffbdb commit 91fd8b1
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 11 deletions.
6 changes: 6 additions & 0 deletions apps/genetics/.prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"singleQuote": true,
"trailingComma": "es5",
"arrowParens": "avoid",
"tabWidth": 2
}
4 changes: 2 additions & 2 deletions apps/genetics/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "0.1.2",
"license": "Apache-2.0",
"bugs": {
"url": "https://github.com/opentargets/platform/issues",
"url": "https://github.com/opentargets/ot-ui-apps/issues",
"email": "[email protected]"
},
"dependencies": {
Expand Down Expand Up @@ -80,7 +80,7 @@
"lint-staged": ">=10",
"nanoid-cli": "^1.1.0",
"nightwatch": "^1.1.13",
"prettier": "1.15.1",
"prettier": "^2.7.1",
"rollup-plugin-polyfill-node": "^0.9.0",
"sass": "^1.49.10",
"source-map-explorer": "^2.0.0",
Expand Down
9 changes: 6 additions & 3 deletions apps/genetics/src/ot-ui-components/components/Splash.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,14 @@ const styles = theme => ({
position: 'absolute',
zIndex: -1,
},
svg: {
position: 'fixed',
},
});

const DATA = [];
const uniformGenerator = d3.randomUniform();
for (let i = 0; i < 500; i++) {
for (let i = 0; i < 250; i++) {
DATA.push([uniformGenerator(), uniformGenerator()]);
}

Expand All @@ -36,7 +39,7 @@ class Splash extends React.Component {
const { classes, measureRef } = this.props;
return (
<div className={classes.splash} ref={measureRef}>
<svg ref={node => (this.svgRef = node)} />
<svg className={classes.svg} ref={node => (this.svgRef = node)} />
</div>
);
}
Expand All @@ -62,7 +65,7 @@ class Splash extends React.Component {
pointsVoronoi
.enter()
.append('path')
.attr('stroke', 'white')
.attr('stroke', 'rgba(232, 232, 232, 0.6)')
.attr('stroke-opacity', 0.3)
.attr('fill', 'none')
.merge(pointsVoronoi)
Expand Down
2 changes: 1 addition & 1 deletion apps/platform/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "0.1.2",
"license": "Apache-2.0",
"bugs": {
"url": "https://github.com/opentargets/platform/issues",
"url": "https://github.com/opentargets/ot-ui-apps/issues",
"email": "[email protected]"
},
"dependencies": {
Expand Down
5 changes: 5 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,15 @@
"name": "ot-ui-apps",
"version": "0.0.1",
"private": true,
"license": "Apache-2.0",
"workspaces": [
"apps/*",
"packages/*"
],
"bugs": {
"url": "https://github.com/opentargets/ot-ui-apps/issues",
"email": "[email protected]"
},
"scripts": {
"build": "turbo run build",
"build:no-cache": "turbo run build --parallel --no-cache",
Expand Down
5 changes: 0 additions & 5 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -11578,11 +11578,6 @@ prepend-http@^1.0.0:
resolved "https://registry.yarnpkg.com/prepend-http/-/prepend-http-1.0.4.tgz#d4f4562b0ce3696e41ac52d0e002e57a635dc6dc"
integrity sha512-PhmXi5XmoyKw1Un4E+opM2KcsJInDvKyuOumcjjw3waw86ZNjHwVUOOWLc4bCzLdcKNaWBH9e99sbWzDQsVaYg==

[email protected]:
version "1.15.1"
resolved "https://registry.yarnpkg.com/prettier/-/prettier-1.15.1.tgz#06c67106afb1b40e74b002353b2079cc7e0e67bf"
integrity sha512-4rgV2hyc/5Pk0XHH4VjJWHRgVjgRbpMfLQjREAhHBtyW1UvTFkjJEsueGYNYYZd9mn97K+1qv0EBwm11zoaSgA==

prettier@^2.5.1:
version "2.6.2"
resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.6.2.tgz#e26d71a18a74c3d0f0597f55f01fb6c06c206032"
Expand Down

0 comments on commit 91fd8b1

Please sign in to comment.