A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/signumsoftware/framework/commit/08f78128326fad5eaf80f184d67f76863f5aa8a9 below:

update package.json · signumsoftware/framework@08f7812 · GitHub

File tree Expand file treeCollapse file tree 5 files changed

+149

-227

lines changed

Filter options

Expand file treeCollapse file tree 5 files changed

+149

-227

lines changed Original file line number Diff line number Diff line change

@@ -276,25 +276,18 @@ interface CustomToggleProps {

276 276

onClick?: (e: React.MouseEvent<any>) => void;

277 277

}

278 278 279 -

class CustomToggle extends React.Component<CustomToggleProps> {

280 -

constructor(props: CustomToggleProps, context: any) {

281 -

super(props, context);

282 -

}

283 279 284 -

handleClick = (e: React.MouseEvent<any>) => {

285 -

e.preventDefault();

286 -

this.props.onClick!(e);

287 -

}

288 - 289 -

render() {

290 -

return (

291 -

<a href="" onClick={this.handleClick}>

292 -

{this.props.children}

293 -

</a>

294 -

);

295 -

}

296 -

}

280 +

const CustomToggle = React.forwardRef(function CustomToggle(p: { children: React.ReactNode, onClick: React.MouseEventHandler }, ref: React.Ref<HTMLAnchorElement>) {

297 281 282 +

return (

283 +

<a

284 +

ref={ref}

285 +

href=""

286 +

onClick={e => { e.preventDefault(); p.onClick(e); }}>

287 +

{p.children}

288 +

</a>

289 +

);

290 +

});

298 291 299 292

Typeahead.defaultProps = {

300 293

getItems: undefined as any,

Original file line number Diff line number Diff line change

@@ -30,7 +30,7 @@ export class ReactVisitor {

30 30 31 31

const oldChildren = React.Children.toArray(element.props.children);

32 32 33 -

const newChildren = React.Children.map(oldChildren, c => this.visitChild(c));

33 +

const newChildren = React.Children.map(oldChildren, c => this.visitChild(c as React.ReactChild));

34 34 35 35

if (newChildren.length != oldChildren.length || newChildren.some((n, i) => n !== oldChildren[i]))

36 36

return React.cloneElement(element, undefined, newChildren);

Original file line number Diff line number Diff line change

@@ -174,29 +174,24 @@ export function QuickLinkWidget(p: QuickLinkWidgetProps) {

174 174

}

175 175 176 176 177 -

class QuickLinkToggle extends React.Component<{ onClick?: (e: React.MouseEvent<any>) => void, links: any[] | undefined }> {

177 +

const QuickLinkToggle = React.forwardRef(function CustomToggle(p: { onClick: React.MouseEventHandler, links: any[] | undefined }, ref: React.Ref<HTMLAnchorElement>) {

178 178 179 -

handleClick = (e: React.MouseEvent<any>) => {

180 -

e.preventDefault();

181 -

this.props.onClick!(e);

182 -

}

179 +

const links = p.links;

183 180 184 -

render() {

185 -

const links = this.props.links;

186 -

return (

187 -

<a

188 -

className={classes("badge badge-pill", links?.some(l => !l.isShy) ? "badge-warning" : "badge-light", "sf-quicklinks")}

189 -

title={StyleContext.default.titleLabels ? QuickLinkMessage.Quicklinks.niceToString() : undefined}

190 -

role="button"

191 -

href="#"

192 -

data-toggle="dropdown"

193 -

onClick={this.handleClick} >

194 -

{links && <FontAwesomeIcon icon="star" />}

195 -

{links ? "\u00A0" + links.length : "…"}

196 -

</a>

197 -

);

198 -

}

199 -

}

181 +

return (

182 +

<a

183 +

ref={ref}

184 +

className={classes("badge badge-pill", links?.some(l => !l.isShy) ? "badge-warning" : "badge-light", "sf-quicklinks")}

185 +

title={StyleContext.default.titleLabels ? QuickLinkMessage.Quicklinks.niceToString() : undefined}

186 +

role="button"

187 +

href="#"

188 +

data-toggle="dropdown"

189 +

onClick={e => { e.preventDefault(); p.onClick(e); }}>

190 +

{links && <FontAwesomeIcon icon="star" />}

191 +

{links ? "\u00A0" + links.length : "…"}

192 +

</a>

193 +

);

194 +

});

200 195 201 196

export interface QuickLinkOptions {

202 197

isVisible?: boolean;

Original file line number Diff line number Diff line change

@@ -21,28 +21,28 @@

21 21

},

22 22

"homepage": "https://github.com/signumsoftware/framework#readme",

23 23

"dependencies": {

24 -

"@fortawesome/fontawesome-svg-core": "1.2.25",

25 -

"@fortawesome/free-brands-svg-icons": "5.11.2",

26 -

"@fortawesome/free-regular-svg-icons": "5.11.2",

27 -

"@fortawesome/free-solid-svg-icons": "5.11.2",

28 -

"@fortawesome/react-fontawesome": "0.1.6",

24 +

"@fortawesome/fontawesome-svg-core": "1.2.27",

25 +

"@fortawesome/free-brands-svg-icons": "5.12.1",

26 +

"@fortawesome/free-regular-svg-icons": "5.12.1",

27 +

"@fortawesome/free-solid-svg-icons": "5.12.1",

28 +

"@fortawesome/react-fontawesome": "0.1.8",

29 29

"@types/d3": "5.7.2",

30 30

"@types/d3-scale-chromatic": "1.3.1",

31 -

"@types/history": "4.7.3",

31 +

"@types/history": "4.7.5",

32 32

"@types/prop-types": "15.7.3",

33 -

"@types/react": "16.9.15",

34 -

"@types/react-dom": "16.9.4",

35 -

"@types/react-router": "5.1.2",

36 -

"@types/react-router-dom": "5.1.1",

37 -

"@types/react-transition-group": "4.2.3",

38 33

"@types/react-widgets": "4.3.3",

34 +

"@types/react": "16.9.23",

35 +

"@types/react-dom": "16.9.5",

36 +

"@types/react-router": "5.1.4",

37 +

"@types/react-router-dom": "5.1.3",

38 +

"@types/react-transition-group": "4.2.4",

39 39

"@types/query-string": "5.1.0",

40 40

"moment": "2.24.0",

41 41

"numbro": "2.1.2",

42 42

"popper.js": "1.15.0",

43 43

"query-string": "5.1.1",

44 -

"react": "16.11.0",

45 -

"react-bootstrap": "1.0.0-beta.14",

46 -

"react-dom": "16.11.0"

44 +

"react": "16.12.0",

45 +

"react-bootstrap": "1.0.0-beta.16",

46 +

"react-dom": "16.12.0"

47 47

}

48 48

}

You can’t perform that action at this time.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4