Skip to content
This repository has been archived by the owner on Jul 28, 2023. It is now read-only.

Use Preact for wikipedia.de banner #249

Merged
merged 15 commits into from
Oct 23, 2019
Merged

Use Preact for wikipedia.de banner #249

merged 15 commits into from
Oct 23, 2019

Conversation

gbirke
Copy link
Member

@gbirke gbirke commented Oct 21, 2019

No description provided.

gbirke added 10 commits October 16, 2019 10:12
A "Hello World" banner for wikipedia.de

Updated dependencies for Babel 7
Added jsx plugin

Temporarily commented out our custom webpack plugins - they cause
trouble (TODO).
Babel 7 and the `useBuiltIns: 'usage'` setting injects ES6 imports into
the CommonJS-based banners. This leads to the error message
TypeError: "exports" is read-only` in the compiled banners (See also
webpack/webpack#3997 and
babel/babel#6980 ).

Changed `getSkin` in "BannerFunctions" to preload all skin
manipulating classes.
The Application of Funds lightbox is not working - check with FR if needed
Add new component
Implement banner closing (shared state at the top, passed down thrugh
`bannerVisible` prop)
Add className utility function to generate conditional class names in a
more clean way.
Fill out TODOs for using the banner on wp.org
Pass the callback to the child method up the component hierarchy, via a
"trigger method", so the mobile banner can call the method for the
animation when it shows the fullpage banner.

Add explicitly evaluated spaces to TextHighlight child text to
circumvent [JSX space-eating behavior][1].

[1]: facebook/react#4134
@gbirke gbirke requested review from timEulitz and moiikana October 21, 2019 10:16
campaign_info.toml Outdated Show resolved Hide resolved
@gbirke gbirke merged commit e8a16c5 into master Oct 23, 2019
@gbirke gbirke deleted the preact-magic branch October 23, 2019 10:12
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants