profile
viewpoint

fregante/Awesome-WebExtensions 603

A curated list of awesome resources for WebExtensions development.

denis-sokolov/remove-github-forks 245

Clean your useless GitHub forks

DrewML/chrome-webstore-upload-cli 236

Upload/Publish Chrome Web Store extensions from the CLI

DrewML/chrome-webstore-upload 177

A small node.js module to upload/publish Chrome Extensions.

download-directory/download-directory.github.io 169

Web App: Download just a sub directory from a GitHub repo.

fregante/delegate-it 157

DOM event delegation, in <1KB

fregante/doma 84

Parse an HTML string into `DocumentFragment` or one `Element`, in a few bytes (in browser)

callumacrae/gulp-w3cjs 56

:vertical_traffic_light: w3cjs wrapper for gulp to validate your HTML

bevacqua/ftco 18

⚡ Browser extension that unshortens t.co links in TweetDeck and Twitter

Cacodaimon/GhostText-for-Chrome 13

GhostText Chrome extension

startedbtholt/deno-dev-container-example

started time in 9 minutes

startedd3/d3-time

started time in 9 minutes

startedtj/node-migrate

started time in 9 minutes

startedonhernandes/parserblade

started time in 9 minutes

startedradiovisual/get-video-id

started time in 10 minutes

starteddubzzz/fast-check

started time in 10 minutes

startedk4yt3x/video2x

started time in 10 minutes

startednicksawhney/bernie-sits

started time in 11 minutes

startedmdn/js-examples

started time in 12 minutes

startedscottishstoater/jamstack-web-starter

started time in 12 minutes

startedfregante/object-fit-images

started time in 2 hours

fork xixia1wencun/iphone-inline-video

📱 Make videos playable inline on the iPhone (prevents automatic fullscreen)

https://npm.im/iphone-inline-video

fork in 5 hours

startedgulp-community/gulp-pug

started time in 9 hours

PR opened fregante/ghatemplates

`esm-lint.yml`: remove unnecessary use of `cat`

I'm aware that this is a very substantial change but at least it makes it a bit easier to parse that pipeline :upside_down_face:

+1 -1

0 comment

1 changed file

pr created time in 12 hours

fork vladimyr/ghatemplates

GitHub Actions workflow templates for `$ ghat`

https://github.com/fregante/ghat

fork in 12 hours

startedWICG/performance-measure-memory

started time in 16 hours

startedInVisionApp/private-action-loader

started time in 20 hours

startedlspgn/edge-sql

started time in 21 hours

startedmlent/droplist

started time in a day

startedgribnoysup/wunderbar

started time in a day

startedhagenburger/pimd

started time in a day

startedatilafassina/a11y-reporter

started time in a day

startedEmaSuriano/gatsby-starter-mate

started time in a day

startedsapegin/shipit

started time in a day

issue commentvadimdemedes/dom-chef

Pass props to child components?

The concept of simultaneous invention in work :)

It seems to me that it was just a matter of time, since passing props to component constructor doesn't contradict the idea of ​​dom-chef in any way, and it is quite expected for granted by any person who is a little familiar with React xD

wimpyprogrammer

comment created time in a day

pull request commentvadimdemedes/dom-chef

Pass JSX props to function components instead of directly assigning them to the element

May I also ask you not to change this line?

"pretest:ava": "rollup -p json -p \"typescript={declaration: false, outDir: './tests'}\" --format cjs --dir tests tests/index.tsx",

The single quoted version works fine for me on macOS (and obviously on Linux, since the checks are run on Ubuntu), but doesn't work at all on Windows. Double quotes work for every OS, so it is worth keeping them for the convenience of future contributors

Kir-Antipov

comment created time in a day

Pull request review commentvadimdemedes/dom-chef

Pass JSX props to function components instead of directly assigning them to the element

 test('element created by function with existing children and attributes', t => { });  test('element created by function with combined children and attributes', t => {-	const Icon = () => <i className="sweet">Gummy <span>bears</span></i>;+	const Icon = ({children}: {children: Node[]}) => <i className="sweet">Gummy <span>bears</span>{children}</i>;

I don't think it really matters, since React Component defined kinda like this:

class Component<P = {}> {
    props: P;
    constructor(props: P) {
        this.props = props;
    }
}

So props can be of any type by definition. Record<string, any> suits it perfectly, imho

Kir-Antipov

comment created time in a day

pull request commentvadimdemedes/dom-chef

Pass JSX props to function components instead of directly assigning them to the element

Regarding this change: can you add a test to ensure this? Currently it passes regardless of this commit.

Yup, you accidentally swapped the blocks while inlining the functions, so props-forming logic was slightly broken. The test I added earlier passed as it relied on the h1 elements xD

Kir-Antipov

comment created time in a day

issue commentvadimdemedes/dom-chef

Pass props to child components?

Haha yeah that also surprised me. I assure you that Kir-Antipov and I are not in cahoots. 😉

I'm slowly building my first browser extension and used notlmn/browser-extension-template as the starting point. I've been looking at extensions like sindresorhus/refined-github and sindresorhus/hide-files-on-github for reference and first encountered dom-chef there.

React feels like overkill for what I'm building, and dom-chef seems like a great, small library so I'm giving it a whirl!

wimpyprogrammer

comment created time in a day

startedfregante/iphone-inline-video

started time in a day

more