Commit Graph

23 Commits

Author SHA1 Message Date
Andrey Kozlov 84749ce870
Remove react (#824)
* convert to no react

* wip

* proper oss/nonoss fix

* more progress

* wip

* more progress

* fixes

* even more fixes

* even more fixes

* more fixes

* eslint added

* fixes

* fixes

* fixes

* fix annoying issues

* issues with export functions fixed

* properly embed data

* debug netlify

* fixes

* fix

* debug

* forgot async

* more fixes

* minor fixes

* do not forget eslint

Co-authored-by: Andrey Kozlov <zeus@Andreys-MacBook-Pro.local>
2022-06-03 15:01:22 +01:00
Andrey Kozlov 853af61ab4
vanilla js - no libs, no frameworks (#821)
Vanilla js

Co-authored-by: Andrey Kozlov <zeus@Andreys-MacBook-Pro.local>
2022-05-14 17:05:02 +01:00
Jordi Noguera 838deafa8a Fix screenshots 2021-01-19 16:54:49 +01:00
Jordi Noguera df3895d8e5
Switch to next (#685)
* Add next.js and remove babel-plugin-resolver

* Fix not defined errors for window and navigator

* Remove redux from homepage

* Render first landscape

* Put back sidebar

* Put back navigation

* Add page title

* Re-enable InternalLink

* Fix navigation between tabs

* Correctly set main content mode in syncToUrl

* Add TODO for parsing urls

* Use full path for image

* Render item modal

* Add close event to modal

* Open modal when clicking on item

* Only pass the necessary item data to the components

* Fix modal not opening in card mode

* Fix previous/next navigation

* Remove ItemDialogContainer and clean up

* Fix anonymous arrow function warning

* Re-enable zooming

* Set title for modal page

* Fix close modal not working

* Fix switchToLandscape

* It's not necessary to pass onSelectItem

* Put back summary

* Put back fullscreen toggle

* Put back number of tweets

* Preserve rest of params when switching landscapes

* Enable filtering by organization

* Clean up url generation

* Use stringifyUrl to encode arrays

* Enable headquarters filters

* Enable license filter

* Enable relation filter

* Re-enable reset filters

* Re-enable grouping

* Fix comment

* Re-enable sorting

* Remove unused methods

* Refactor decodeGrouping

* Set default grouping

* Fix header navigation

* Enable sidebar toggle

* Remove unnecessary title

* Remove unnecessary googlebot stuff

* Re-enable modal only

* Fix category filter

* Enable bestpractices filter

* Enable enduser filter

* Enable filtering by parent and language

* Remove dead

* Enable card style

* Add TODO items

* Add head info

* Fix embed

* Add fullscreen landscape

* Add TODO for acquisitions page

* Pre-rendering a modal does not load the entire landscape in the background

* Ignore out

* Fix modal not opening in card mode

* Rewrite DelayRender to use hooks

* Remove unnecessary prop cardStyle

* Add custom document so we can set lang on html

* Fixes to HomePage

* Make yarn build work

* Fix modal not closing

* Add path prefix for preview deploys

* Build one landscape for now

* Copy iframe resizer from node modules

* Disable screenshots for now

* Items urls are item/:item_id

* Remove _redirects

* Add logging

* It seems that a forward slash is needed

* Use full path

* Set right path for public

* Remove logging

* Re-enable screenshots

* Use right URL for screenshots

* Don't pre-render background underneath modal

* Add spinner TODO

* Remove unused code from home page

* Remove unnecessary parenthesis

* Convert Item inline style to jsx

* Configure webpack and some babel plugins

* Convert acquisitions page to next

* Remove dead code

* Add bundle analyzer

* Add moment to externals

* Add TODO

* Fix import for settings and lookup

* Clean up

* Remove syncToUrl

* Simplify babel and webpack

* Fix warnings

* Fix zoom calculations on fullscreen landscape

* Set version from query string in fullscreen landscape

* Get rid of Root Context

* Try using less data for pre-rendering

* Disable pre-fetching for now

* Pre-render material UI

* Calculate grouped items, width and height only once

* Use map for fields.relation.values

* Group and filter items before iterating

* Fix for pre-rendering blank landscape

* Don't fade in item

* Don't use isBrowser if possible

* Remove unnecessary event listener

* Fix current device throwing error when pre-rendering

* Fix layout issues on mobile

* Remove background color from logo

* Remove old HEAD

* Remove TODO

* Revert "Try using less data for pre-rendering"

This reverts commit 4c0472fe62627b4bf8b93d6de326150d0e54bc4c.

* Automatically generate iframeResizer.js when building pages/embed.js

* Fix issues caused by client/server rendering missmatch

* Don't pre-render item pages

* Consider the prefix when fetching item

* Fix rendered fewer hooks error

* We don't need to memoize page entries anymore

* Ready thing is not necessary

* If navigating directly to an item, load body with modal open automatically

* Fix http-equiv error

* Remove unnecessary TODO items

* Only load items from current landscape on each page

* Don't need to copy data.json

* Fullscreen landscapes are at /fullscreen[/landscape-name]

* Default title is already set in _app

* First pass at removing hard-coded "landscape"

* Show item info we already have instead of loading indicator when opening modal

* Remove animations from card mode

* Don't render page until params in query string are processed

* Print timing to check performance

* Skip hydration if query params are set for now

* Hard-code pre-rendered page to see performance

* Add embed comparison page

* Load all cards when embedding

* Fix modal error

* Move options to fields

* Fix fullscreen toggle issues

* Refactor long command to node script

* Fix filtering items error

* Re-enable exporting to CSV

* Rename ciServer to distServer

* Implement infinite scrolling on card-mode

* Require settings later so we know they've been generated

* Remove TODO item

* Re-enable opening items in new tab on mobile when embedding

* Remove TODO items

* Not sure how tests passed without this

* DRY test setup

* Remove logging stuff

* Add 404 page with redirect and notice

* Redirect legacy URLs to new format

* Set warning when URL is deprecated

* Handle legacy URLs in presets and detect active one

* Add redirects to 404 page for deploy preview

* Use router instead of location to detect legacy URL

* Improvements to hydration hack

* Fix unique keys in array warning

* Remove log

* Rename EntriesContext to LandscapeContext

* Break up catch-all page

* Rename classes

* Prerender pages specified in settings.yml

* Only load necessary data to render prerendered pages from settings.yml

* Simplify grouped items logic

* Remove default params

* Clean up routing

* Put back sass

* Re-enable commented out code

* Remove unused code

* Re-enable mobile zoom detection

* Remove unnecessary dependencies

* Remove webpack configuration

* Alias ./public to public

* Fix spelling

* Convert browserZoom and currentDevice to hooks

* Add TODO items

* Fixes for fullscreen page

* Fix infinite re-rendering

* Fix for empty category

* Re-enable all landscapes

* Fix Docker

* Add compression to dist server

* Check router.isReady to render component

* Add TODO item

* pnp linker

* more fixes

* fix for jest

* fix

* wip

* tmp

* Fix require warning

* Fix iOS issue

* Disable PNP for now

* get rid of sass

* Fix modal resizing

Co-authored-by: Andrey Kozlov <l-2732@yandex.ru>
2021-01-19 10:51:25 +01:00
Andrey Kozlov da81be6743
update babel (#690)
* update babel

* material-ui and puppeteer

* fix landscape rendering

* update jest too;

* more updates

* update react

* more updates

* update terser plugin

* support webpack 4 yet

* more updates

* more updates

* test
2021-01-17 10:25:17 +00:00
Andrey Kozlov 8e9690cbc6
weekly update, #75 (#637)
* weekly update, #75

* check that all images are properly processed

* ensure that we can process CNCF images locally

* fix

* fix

* fix

* fix

* test if lfedge is rendered properly

* use lfph

* fix

* test

* test

* latest version

* debug

* remove retry

* debug

* test

* debug more

* update

* debug

* more debug info

* check that ascreenshot hangs

* timeout on a screenshot

* debug

* ensure that netlify can process all lfph images

* remove unnecessary changes

* updates
2020-06-30 14:47:56 -04:00
Andrey Kozlov 3b474c69cf
626 - modify puppeteer for netlify (#627)
* test

* debug

* debug

* debug

* debug

* debug

* debug

* one more attempt

* do not reuse a browser

* fix

* use old puppeteer for rendering a landscape

* test this hack

* prepare to merge

* fix

* 2.0.11

* ready to merge
2020-06-19 08:36:09 -04:00
Andrey Kozlov 15761cb93c
565 yarn2 (#615)
* using yarn2, close #565

* update a netlify script

* disable progress bar

* fixes

* fix

* publish as beta

* 2.0.0-alpha.0

* 2.0.0-alpha.1

* fix

* 2.0.0

* fix

* publish yarn.lock too

* 2.0.1

* one more fix

* fix

* ensure that we install a latest yarn

* mention that we need to install a latest version of yarn

* check yarn version on Netlify

* try to use yarn from npm

* use yarn from npm

* fix a local build for netlify

* caching

* 2.0.2

* update readme

* 2.0.4

* merge a conflict

* fixes

* fix for yarn cache

* 2.0.5

* skip .pnp.js copy

* update babelrc

* 2.0.6

* suppress output from yarn when all is fine

* run jest tests one by one

* 2.0.7

* check if this helps locally

* 2.0.8

* prepre to merge

* remove nvm noise

* less noise

* hide curl progress
2020-06-17 13:58:05 +01:00
Andrey Kozlov c50775bc36 Revert "Revert "659 - speed up a build on for a landscapeapp (#573)""
This reverts commit a4c6be8899.
2020-05-30 00:21:27 +01:00
Dan Kohn a4c6be8899 Revert "659 - speed up a build on for a landscapeapp (#573)"
This reverts commit 488b90c3ed.
2020-05-29 19:19:30 -04:00
Andrey Kozlov 488b90c3ed
659 - speed up a build on for a landscapeapp (#573)
* check if this allows to install packages faster

* cache npm install

* update a script

* fix

* fix

* test if this works

* try to spot an error

* fix

* fix

* fix

* fix

* minor fix

* a fix

* support different docker images for a build

* oops

* try npm install instead

* run tests, renderLandscape, checkLandscape and prerender with a retry because of flaky chrome

* give a second chance to tasks

* simulate an error

* 3 chances to retry

* more fixes

* use a current nodejs in .babelrc

* retry a build if ssh fails
2020-05-29 16:03:44 -04:00
Jordi Noguera 1146a74be6
Automatically calculate optimal full screen size (#556) 2020-05-21 14:07:26 +01:00
Jordi Noguera 41b65cd6fc
Fix timeouts; Fix #524 (#527) 2020-02-24 17:11:56 +05:30
Jordi Noguera d892972f2f Reduce size of image previews; Fix #456 (#459) 2019-11-11 05:59:00 -05:00
Jordi Noguera d56859f320 Remove hardcoded settings from CNCF landscape; Fix #273 (#455)
* Remove hardcoded settings from CNCF landscape; Fix #273

* Rename isEndUserSupporter

* Move unnamed organization to settings
2019-11-08 16:04:16 +01:00
Andrey Kozlov b45e965720 do not wait 10 seconds, just wait for no more connections on rendering, close #324 (#443) 2019-11-02 07:22:02 +01:00
Andrey Kozlov 00c9f976c5 update packages, #75 (#438) 2019-10-29 00:30:10 +01:00
Andrey Kozlov 8638288490 replace new lines with space, close #396 (#404)
* replace new lines with space, close #396

* test what goes wrong

* one more attempt

* test if that is broken because of zoom

* forgot to remove one thing

* use different ways to render a text in a landscape depending if this is a browser or a pdf

* pdf is not a first parameter in the url to render a pdf doc
2019-10-15 13:25:56 -04:00
Andrey Kozlov 4bbca02712 Add support for a members landscape; works on #223
* some progress

* more progress

* force

* empty

* more progress

* more progress

* wip

* empty

* render members

* empty

* empty

* support an end user filter

* Show all end user supporters too

* empty

* empty

* empty

* show a proper badge for end user members

* empty

* Empty

* allow to hide top right header

* Empty commit to trigger build

Signed-off-by: Dan Kohn <dan@dankohn.com>

* support special https://www.cncf.io

* more changes to the special organizations

* properly handle membership for animals

* try a master branch
2019-07-10 18:00:27 -04:00
ZeusTheTrueGod d5817e993c show a latest project commit number instead of a latest landscapeappa commit 2018-12-14 15:03:47 +00:00
ZeusTheTrueGod ee88e16598 and even more fixes 2018-12-13 17:13:04 +00:00
ZeusTheTrueGod ea67c3ccd1 fixes to get it working 2018-12-09 21:05:01 +00:00
ZeusTheTrueGod 889019275b first commit 2018-12-02 21:04:47 +03:00