Commit Graph

16 Commits

Author SHA1 Message Date
Riku Rouvila
e9b95ed09e add list of most popular channels 2020-01-13 20:00:32 +02:00
Olavi Haapala
f4474523ad Chore/convert to typescript (#60)
* Convert to using TypeScript

Next.js v.9 allows converting an existing project to TS by simply renaming the files as TS files

* Fix type errors: Type 'string' is not assignable to type 'number'.

* Add mention about missing typings for javascript-time-ago

* Add GA_INITIALIZED to window

* Fix type error in feed transformers

* Model MembershipInfoForm state and props with TS

* Silence the typescript warning in MembershipInfoForm

* Add threshold to Fader props

* Fix Warning: Each child in a list should have a unique "key" prop.

Sponsors don't have ids – name is probably unique and can be used as a key

* Allow key as prop for SponsorLink

* Add type of the props for SponsorLink
2019-11-07 07:28:02 +02:00
Aarni Koskela
dcf26deb0f Upgrade dependencies, etc. (#55)
* Run prettify

* Upgrade dependencies and switch out some libraries:

* timeago (freshly jquery dependent) -> ReactTimeAgo
* next-ga -> react-ga and custom plumbing

* Move static/ to public/static/

As per https://github.com/zeit/next.js/blob/master/errors/static-dir-deprecated.md

* Fix cons->icons typo

* Import only what's necessary from lodash (223 -> 180 kb)

* Asyncify MembershipInfoForm
2019-10-30 11:05:08 -07:00
Aarni Koskela
1d76be6b79 Hint that the header video is muted, so it doesn't need a caption track 2019-10-30 09:47:41 +02:00
Joonas Kallunki
bcdc6ab9d1 Add missing correct lang-attribute 2019-10-30 06:20:46 +02:00
Joonas Kallunki
78de61889e Make alt-tags more descriptive 2019-10-30 06:20:25 +02:00
Toni Ristola
125abe45d9 refactored sponsor data into directory data 2019-10-25 09:37:44 +03:00
Aarni Koskela
76424448ec Get rid of noopener/noreferrer kvetches 2019-10-24 18:44:21 +03:00
Aarni Koskela
5a42210194 Add prettify command and run it 2019-10-24 18:25:48 +03:00
Toni Ristola
82ebbe0d92 moved project data under different folder 2019-10-24 18:03:49 +03:00
Toni Ristola
2ea81dad3c Refactoring patient projects 2019-10-24 17:29:38 +03:00
Aarni Koskela
186f8744ff Reinstate linting, fix kvetches 2019-09-23 16:25:42 +03:00
Aarni Koskela
ed0826a53a Add next-ga for Google Analytics 2019-09-23 16:21:58 +03:00
Aarni Koskela
a671acdf06 Reinstate Twitter icons 2019-09-23 16:15:37 +03:00
Aarni Koskela
e3c256d61c Get rid of legacy JS 2019-09-23 16:05:11 +03:00
Aarni Koskela
37e162732c Next.js-ify, step 1 2019-09-23 15:39:18 +03:00