profile
viewpoint
Damian Green damiangreen London Freelance code monkey

damiangreen/isomorphic-react-fittext 4

React component that fits text on the screen.

damiangreen/react-live-clock 1

React clock with time-zones

damiangreen/Amazon.SimpleNotificationService.UtilExtensions 0

More parsing capabilities for SNS messages

damiangreen/angular-flower-expert-application 0

Practicing with Angularjs

damiangreen/angular-validator 0

Powerful, flexible and simple Angular validation!

damiangreen/ant-design 0

🐜 A UI Design Language

damiangreen/BiPartite 0

Create BiPartite visualization using D3

damiangreen/calendar 0

React Calendar

damiangreen/card 0

make your credit card form better in one line of code

damiangreen/clipper 0

An open source freeware polygon clipping library

issue commentpvoznyuk/react-live-clock

react-fittext@1.0.0" has incorrect peer dependency "react@^15.0.0"

Will this be published to npm?

damiangreen

comment created time in 4 days

pull request commentpvoznyuk/react-live-clock

Allow React ^16 as a peer

Will you be publishing to npm @anthony0030 ?

damiangreen

comment created time in 4 days

issue commentmegawac/babel-plugin-ramda

Can't seem to get it to work...

Was there a solution to this. I thought I've give it a try. I tried both with and without the useES: true,. My chunk size reminds identical before and after. My .babelrc: // Babel configuration // https://babeljs.io/docs/usage/api/ module.exports = { presets: [ [ '@babel/preset-env', { targets: { node: 'current', }, }, ], '@babel/preset-typescript', '@babel/preset-react', ], plugins: [ '@babel/plugin-syntax-dynamic-import', '@babel/plugin-syntax-import-meta', '@babel/plugin-proposal-class-properties', '@babel/plugin-proposal-json-strings', '@babel/plugin-proposal-optional-chaining', '@babel/plugin-proposal-nullish-coalescing-operator', 'ramda' ], ignore: ['node_modules', 'build'], }

mattgrande

comment created time in 18 days

issue commentant-design/ant-design

Option of AutoComplete Select should not use value as a key, as value may not be unique and React requires keys to be unique

I've worked around this issue like this: `import { any } from 'ramda'

// https://github.com/ant-design/ant-design/issues/11909

export const autocompleteSelectHack = <T extends { id: string }>( keyName: keyof T, ) => (acc: T[], item: T): T[] => [ ...acc, any(x => x[keyName] === item[keyName], acc) ? { ...item, keyName: ${item[keyName]} [${item.id}] } : item, ] `

then to consume: const makeOptions = (data: DataResponse, searchFilter: string) => data.components.componentPageEntries .reduce(autocompleteSelectHack('name'), []) .sort((a, b) => alphabetically(a.name, b.name)) .map(x => makeHighlightedOption(x, searchFilter, 'name'))

mjenczmyk

comment created time in 22 days

issue commentSTRML/react-grid-layout

Failed prop types on ResponsiveGridLayout

Either the documentation is wrong or the types are wrong

mei33

comment created time in 3 months

issue commentant-design/ant-design

Migrate to new lifecycle methods

Ah yes, you're right , the final thing i had to do was change react-dom to "react-dom": "npm:@hot-loader/react-dom", to get rid of the final table warnings

yesmeck

comment created time in 3 months

issue commentant-design/ant-design

Migrate to new lifecycle methods

No it doesnt

yesmeck

comment created time in 3 months

startedtypescript-eslint/typescript-eslint

started time in 3 months

issue commenttypescript-eslint/typescript-eslint

Support Parsing Nullish Coalescing, Optional Chaining and Assertion Functions (TS 3.7)

I've been struggling to get eslint to understand typescript's 3.7 features, especially optional chaining. I have parser: '@typescript-eslint/parser', '@typescript-eslint', in my plugins.

however I get undef errors when running eslint.
Would be amazing if someone can shed some light on what piece of the puzzle i'm missing

c-bandy

comment created time in 3 months

fork damiangreen/prettier

Prettier is an opinionated code formatter.

https://prettier.io

fork in 3 months

starteddamiangreen/react-live-clock

started time in 3 months

issue commentpvoznyuk/react-live-clock

react-fittext@1.0.0" has incorrect peer dependency "react@^15.0.0"

https://github.com/pvoznyuk/react-live-clock/pull/32

damiangreen

comment created time in 3 months

PR opened pvoznyuk/react-live-clock

Allow React ^16 as a peer

Allow React ^16 as a peer

+1 -1

0 comment

1 changed file

pr created time in 3 months

push eventdamiangreen/react-live-clock

Damian Green

commit sha c14d389a3f1bfa0564fbb5cfdf659866c765e9cb

Allow React ^16 as a peer

view details

push time in 3 months

pull request commentprettier/prettier

Support TypeScript 3.7 (and drop Node 6 support for direct inst…

@thorn0 Our devops jsut pulled tis down from AWS Console. I jsut switched back from "prettier": "https://github.com/Cryrivers/prettier.git",to using "prettier": "^1.18.2", and the error went away.

Note I have the latest "source-map-support": "^0.5.15", in my `dependencies

09:01:51
internal/modules/cjs/loader.js:638

09:01:51
throw err;

09:01:51
^

09:01:51
Error: Cannot find module 'source-map-support'

09:01:51
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:636:15)

09:01:51
at Function.Module._load (internal/modules/cjs/loader.js:562:25)

09:01:51
at Module.require (internal/modules/cjs/loader.js:692:17)

09:01:51
at require (internal/modules/cjs/helpers.js:25:18)

09:01:51
at Object.<anonymous> (/usr/src/app/server.js:1:1)

09:01:51
at Module._compile (internal/modules/cjs/loader.js:778:30)

09:01:51
at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)

09:01:51
at Module.load (internal/modules/cjs/loader.js:653:32)

09:01:51
at tryModuleLoad (internal/modules/cjs/loader.js:593:12)

09:01:51
at Function.Module._load (internal/modules/cjs/loader.js:585:3)
Cryrivers

comment created time in 3 months

pull request commentprettier/prettier

Support TypeScript 3.7 (and drop Node 6 support for direct inst…

@thorn0 It appears to happen on our Bamboo build server.

Cryrivers

comment created time in 3 months

pull request commentprettier/prettier

Support TypeScript 3.7 (and drop Node 6 support for direct inst…

Is anyone getting Error: Cannot find module 'source-map-support' issues with this?

Cryrivers

comment created time in 3 months

pull request commentprettier/prettier

Support TypeScript 3.7 (using a fork of typescript-estree)

@thorn0 that fixed it thanks!

fisker

comment created time in 3 months

pull request commentprettier/prettier

Support TypeScript 3.7 (using a fork of typescript-estree)

How do i add your fork as a dpendency? I tried yarn add https://github.com/fisker/prettier/tree/typescript-37-attempt-2 but received error https://github.com/fisker/prettier/tree/typescript-37-attempt-2: Extracting tar content of undefined failed, the file appears to be corrupt: "Invalid tar header. Maybe the tar is corrupted or it needs to be gunzipped?"

fisker

comment created time in 3 months

issue commentgianu/react-fittext

Resize within height as well

I've created a library that solves this, that works with react 16+ and allows for resizing of components https://github.com/damiangreen/isomorphic-react-fittext

MarcMagnin

comment created time in 3 months

issue commentgianu/react-fittext

React 16 support?

I've created a library that solves this, that works with react 16+ and allows for resizing of components https://github.com/damiangreen/isomorphic-react-fittext

pencilcheck

comment created time in 3 months

issue commentgianu/react-fittext

In a wide div with a short height the contents overflow the containing div unless a max font is specified

I've created a library that solves this, that works with react 16+ and allows for resizing of components https://github.com/damiangreen/isomorphic-react-fittext

damiangreen

comment created time in 3 months

issue commentapollographql/apollo-feature-requests

RefetchQueries function as asynchronous function

This has bitten us also.

fiuzagr

comment created time in 3 months

startedmicrosoft/TypeScript

started time in 3 months

push eventdamiangreen/isomorphic-react-fittext

Damian Green

commit sha 2d808d329acb794b0328db40a9824d8b69e9090a

remove react dev dep

view details

push time in 3 months

push eventdamiangreen/isomorphic-react-fittext

Damian Green

commit sha c81fd68f4ddc00a55c62ab2bdc1d90535c11b29e

update tsconfig + package.json

view details

push time in 3 months

push eventdamiangreen/isomorphic-react-fittext

Damian Green

commit sha e2cc6638b437f6431a19951b6eb670a0cd55f3e3

Bump version

view details

push time in 4 months

push eventdamiangreen/isomorphic-react-fittext

Damian Green

commit sha 38620237577160cf8042969c65caac555c6d833f

Change module to es2015

view details

push time in 4 months

starteddamiangreen/isomorphic-react-fittext

started time in 4 months

create barnchdamiangreen/isomorphic-react-fittext

branch : master

created branch time in 4 months

created repositorydamiangreen/isomorphic-react-fittext

React component that first text on the screen.

created time in 4 months

startedraisezhang/react-drag-listview

started time in 4 months

issue commentfacebook/react

React 16.10 broke Next.js/SSR applications

16.10.1 doesn't appear to work with Isomorphic style loader https://github.com/kriasoft/isomorphic-style-loader/issues/170

Timer

comment created time in 4 months

issue openedkriasoft/isomorphic-style-loader

Broken on React 16.10 - Invariant Violation: Invalid hook call. Hooks can only be called inside of the body of a function component.

Stack trace:

  - react.development.js:1533
    [my-code/[isomorphic-style-loader]/[react]/cjs/react.development.js:1533:26

  - react.development.js:1536 resolveDispatcher
    [my-code/[isomorphic-style-loader]/[react]/cjs/react.development.js:1536:5

  - react.development.js:1541 Object.useContext
    [my-code/[isomorphic-style-loader]/[react]/cjs/react.development.js:1541:20

  - useStyles.js:21 useStyles
    [my-code/[isomorphic-style-loader]/src/useStyles.js:21:25****

I suspect this line https://github.com/kriasoft/isomorphic-style-loader/blob/a990d947e79b47251f1af827adc81918494413fd/src/useStyles.js#L29 is breaking the rule of hooks because it is running an effect conditionally

created time in 4 months

issue commentmicrosoft/vscode

VSCODE slow after last update

Switching to the insiders edition with the updated Electron solved it for us

ViniciusFXavier

comment created time in 4 months

issue commentformatjs/react-intl

Recent version has broken IE

The debugger breaks here

image

mjcampagna

comment created time in 4 months

issue commentapollographql/react-apollo

MockedProvider query with Fragments throwing __typename warning

So I've read the comments but I don't see the solution

justinlevi

comment created time in 4 months

issue commentfacebook/watchman

Downloading latest windows builds gives non-functional watchman

I've kept scrolling but all builds seem to be failing

kumarharsh

comment created time in 5 months

startedapollographql/react-apollo

started time in 5 months

fork damiangreen/react-audio-player

A simple React wrapper on the HTML5 audio tag

fork in 5 months

more