Commit Graph

109 Commits

Author SHA1 Message Date
Petri Partio
33f35b4a5a feat: new design for koodiklinikka.fi
Co-authored-by: Aarni Koskela <akx@iki.fi>
2024-05-30 16:19:26 +03:00
Aarni Koskela
71921eab5e Upgrade all the dependencies! 2022-05-05 15:05:20 +02:00
Aarni Koskela
b03519ec5f Remove font-awesome 2022-02-11 15:51:58 +02:00
Aarni Koskela
592886621d Migrate Stylus to SCSS 2022-02-11 15:51:58 +02:00
Aarni Koskela
fa188b6556 Modernize ESlint config 2022-02-11 15:30:10 +02:00
Aarni Koskela
648798e11f Yarn upgrade all the things 2022-02-11 14:49:11 +02:00
Riku Rouvila
3dce6e19b1 Render channel list dynamically based on channel activity (#80)
* render channel list dynamically based on channel activity

* rename slack message markdown transformer

* add hashtag before rendered channel names

* tune styles and add secondary channel listing

* remove emoji-dictionary
2020-10-02 12:59:39 +03:00
Olavi Haapala
0eba06f861 Inline the CSS for improved first paint performance (#81)
* Upgrade Next.js from 9.1.2 to 9.5.3

* Inline the CSS for improved first paint performance

* Change ENV to NODE_ENV

Possibly the CSS was not minified due to this
2020-09-30 15:12:47 +03:00
Olavi Haapala
ca5b251c7c Fix some performance issues
* Remove render blocking stripe JS that seems unnecessary
* Use native lazy loading of images
  - Truly a progressive enhancement, only affects browsers that support it
  - Causes a warning: [Intervention] An <img> element was lazyloaded with loading=lazy, but had no dimensions specified. Specifying dimensions improves performance. See https://crbug.com/954323, which can not be easily fixed
* Render content first, hydrate after that
2020-09-22 21:46:25 +03:00
Aarni Koskela
691aac0351 Fix prettify script and run prettier 2020-09-22 18:25:39 +03:00
Aarni Koskela
468d63704c Upgrades + warning fix (#70)
* Upgrade all the things!

* fix: heed 'viewport meta tags should not be used in _document.js's <Head>' warning
2020-09-22 17:08:47 +03:00
Riku Rouvila
52dc8a09e3 update author email 2020-01-13 20:18:40 +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
af08abfcb9 Enable eslint-plugin-jsx-a11y 2019-10-30 09:46:39 +02:00
Aarni Koskela
5a42210194 Add prettify command and run it 2019-10-24 18:25:48 +03:00
Aarni Koskela
1a57117749 Regenerate lockfile; bump Axios to non-vulnerable version 2019-09-23 16:50:56 +03:00
Aarni Koskela
d3c27df5a9 Remove unused proptypes dep 2019-09-23 16:38:22 +03:00
Aarni Koskela
a0dc44b133 Fix up build commands 2019-09-23 16:37:20 +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
37e162732c Next.js-ify, step 1 2019-09-23 15:39:18 +03:00
Riku Rouvila
bc48b5eff3 update vulnerable packages 2018-11-26 22:56:27 +02:00
Riku Rouvila
c4eb48cd9f add deploy script to deploy PRs to surge 2017-09-17 17:38:00 +01:00
snyk-bot
9994e827b6 fix: package.json to reduce vulnerabilities
The following vulnerabilities are fixed with an upgrade:
- https://snyk.io/vuln/npm:ecstatic:20151223

Latest report for d2s/koodiklinikka.fi:
https://snyk.io/test/github/d2s/koodiklinikka.fi
2017-08-04 11:53:31 +00:00
Riku Rouvila
510c8ed1a4 add missing dependencies 2017-07-06 20:55:01 +01:00
Cihan Bebek
5be8ba8cf4 add config 2017-07-06 13:32:37 +03:00
Keksike
278ecaec28 implement requesting of /membership (payment) api 2017-07-02 19:44:16 +03:00
Riku Rouvila
3a77e30aa8 add sponsor logos to footer 2017-02-08 21:58:28 +02:00
Toni Ristola
295c445518 added missing dependency 2015-11-29 11:26:07 +02:00
Toni Ristola
882c352312 updated to react 0.14 2015-11-27 21:35:15 +02:00
Toni Ristola
6a031384cf updated to react 0.13 2015-11-27 21:25:25 +02:00
Riku Rouvila
3115e81d3f Merge branch 'master' of github.com:leonidas/gulp-project-template 2015-11-27 13:52:06 +02:00
Riku Rouvila
ee615717cf use heroku instance in production mode 2015-11-25 16:18:39 +02:00
Chang Wang
aa4cbee8a0 add envify transform to inline environment variables 2015-11-25 02:33:54 -05:00
Chang Wang
631ded2aaf upgrade babel. add .babelrc 2015-11-23 16:30:23 -05:00
Riku Rouvila
711b98caa7 remove dist directory on start and on build 2015-10-22 20:22:41 +03:00
Riku Rouvila
f6a918d839 inline environment variables to built code 2015-10-04 14:43:09 +03:00
Riku Rouvila
69063d4d80 convert gulpfile into ES6+ 2015-09-30 21:17:05 +03:00
Riku Rouvila
a419cca534 Merge pull request #30 from cheapsteak/inject-resources
Inject resources from build directory. obviates rev-manifest.
2015-09-30 20:19:46 +03:00
Chang Wang
3820ee461d inject resources from build directory. obviates rev-manifest. 2015-09-30 13:15:51 -04:00
Riku Rouvila
8ee20f35f8 use airbnb's eslint configuration as a base to extend from. update eslint-related dependencies 2015-09-29 19:23:42 +03:00
Lauri Hahne
1b62bce932 update browsersync for node 4 2015-09-22 10:13:29 +03:00
Chang Wang
84ed329d81 extract js sourcemap into separate .map file 2015-08-20 16:28:34 -04:00
Riku Rouvila
54f261e1b7 replace gulp's built-in watch with gulp-watch
https://github.com/leonidas/gulp-project-template/issues/24
2015-08-12 22:11:38 +03:00
Riku Rouvila
907cf1a152 enable babel's experimental features
http://babeljs.io/docs/usage/experimental/
2015-07-26 20:13:34 +03:00
Riku Rouvila
4efe6800d1 remove deamdify 2015-07-14 21:01:12 +03:00
Riku Rouvila
57cc7be367 remove bower 2015-07-14 21:00:39 +03:00
Riku Rouvila
8ed68ff60d Replace karma with jsdom + mocha + chai
* Also a bit refactoring for better testability
2015-07-08 20:23:48 +03:00