1
0
mirror of synced 2025-12-23 03:44:00 -05:00
Commit Graph

49 Commits

Author SHA1 Message Date
Mike Surowiec
a88e99c83a Reactify: release notes (#19799)
* reactify release-notes pages

* update GHAE/ES react release notes to not rely on javascripts/release-notes.js
2021-06-09 20:44:32 +00:00
Mike Surowiec
4fa725c404 Reactify: ProductReleases component on landing page (#19808) 2021-06-09 20:39:21 +00:00
Mike Surowiec
108377b209 add more react default rendered pages, fix toc items (#19783) 2021-06-08 15:35:32 -07:00
Kevin Heis
26a8e61d3a Update survey to use React/TS (#19728)
* Update survey to use React/TS

* Working survey form in react land

* A little cleanup

* Update Search.tsx

* Update Survey.tsx

* Remove token field from schema entirely, just let it fail validation

* Update events.js

* Update survey.html

* use Link component

* Use enum for state

* Update old to match new
2021-06-08 17:34:45 +00:00
Kevin Heis
93b2d9f1ec React: Add tooltip on external links when airgap (#19761)
* React: Add tooltip on external links when airgap

* Update Link.tsx

* Update Link.tsx

* Update Link.tsx
2021-06-08 14:34:13 +00:00
Mike Surowiec
04ba91fda0 Refactor React Header component (#19755) 2021-06-07 23:31:32 +00:00
Mike Surowiec
37499b80d2 Reactify article page rendering (#19679)
* feat: reactify article page rendering

* feat: add LearningTrackNav

* fix: use plain text title for article
2021-06-07 22:56:33 +00:00
Grace Park
e8c6d272d0 Merge branch 'main' into localization-grace 2021-06-07 13:19:03 -07:00
Grace Park
ecdc1e3714 Update components/HeaderNotifications.tsx
Co-authored-by: James M. Greene <JamesMGreene@github.com>
2021-06-07 12:50:29 -07:00
Mike Surowiec
349fa8edbe feat: add react graphql explorer page (#19704) 2021-06-07 12:26:16 -07:00
Mike Surowiec
75e5d2e2e1 Reactify: main landing page (#19724)
* update Search to allow mounting input and results in different places
2021-06-07 15:56:09 +00:00
Kevin Heis
5b5354d02f React search component (#19659)
* React search component

* Update Search.tsx

* Update Search.tsx

* Standalone mode, start on search with your keyboard

* Update Search.tsx

* Update Search.tsx

* Yay typescript

* Update search.js

* Update events.js
2021-06-04 19:48:56 +00:00
Kevin Heis
516106b7c5 Rename "helpfulness" to survey (#19727) 2021-06-04 12:22:31 -07:00
Mike Surowiec
f8f72fc1d8 fix: nextjs stylesheet usage (#19693)
* fix: nextjs stylesheet usage

* remove builtAssets css from react context
2021-06-03 17:55:01 +00:00
Mike Surowiec
bc1ee6c60d Custom Link component (#19682)
* use our own Link component instead of next/link directly

* only show link href warnings outside of production environments
2021-06-03 08:21:33 -07:00
Mike Surowiec
e0d9a061a3 React category / sub-landing page (#19635)
Re-work routes to use GlobalPage, implements TocLanding, bundle of minor cleanup / fixes
2021-06-02 16:28:39 +00:00
Grace Park
a3e36c0d6a Merge branch 'main' into localization-grace 2021-06-01 15:45:42 -07:00
Mike Surowiec
a55796928e fix: sidebar active class (#19630) 2021-05-28 12:49:31 -07:00
Mike Surowiec
2de358187c Performance testing NextJS / React (#19540)
* Remove json.parse(json.stringify( usage to improve performance
* Fix missing / duplicate keys in some renders
* Fix missing react-is dependency (only seemed to cause problems from pruning on the heroku deploy)
* Add nextjs tag to datadog-connect config when nextjs is a query param
* Fix router.asPath usage to exclude query param
* Fix styling inconsistencies noticed when testing
* Add a few tests
2021-05-27 15:17:27 -07:00
Grace Park
df318951ea Merge branch 'main' of https://github.com/github/docs-internal into localization-grace 2021-05-27 09:46:48 -07:00
Mike Surowiec
4661a36d5d feat: add alternate landing page layout (#19571) 2021-05-27 07:21:40 -07:00
Grace Park
d674299496 Adding React for the header notifications with mike 2021-05-26 12:47:03 -07:00
Mike Surowiec
37f73f0bb3 Heroku dev deps (#19431)
* fix: req.csrfToken doesn't always exist (e.g. 500 page)

* feat: update dockerfile and add nextjs to build

* fix: run linter

* move @babel deps -> dev deps

* move webpack looking things from deps -> dev deps

* move pa11y-ci to optional dep

* explicitly include optional deps for pa11y

* allow heroku dev deps to be installed

* fix: update postcss module

* fix: update dockerfile build

* tmp: disable renderReact

* see if another deploy is slower/faster

* move a few more packages to devDeps

* upgrade to package-lock v2

* use dayjs instead of date-fns

* move cross-env to devDeps

* remove unused 'del' package

* commit husky precommit hooks

* add hrtime to clone-for-build.js

* Revert "add hrtime to clone-for-build.js"

This reverts commit 70ee647bacce833f4ed2f621f62c63c1d85e5413.

* update babel/eslint

* fix: remove unused plugin

* try a .slugignore

* fix: heroku-postbuild to use npm run build

* fix: i cannot spell dereferenced

* add .next/cache to heroku cacheDirectories

* test cached build

* remove aws-sdk, see what breaks

* move jest-puppeteer to optional deps

* fix: update browser-test.yml to use newer node version

* move jimp to optional dependencies

* move puppeteer to optional dependencies

* fix: ci optional include

* fix: bad copy pasta

* remove previous react experiment

* update tests/README.md with note about optional deps

* bump node test version back to 14

* convert package-lock back to v1

* fix: use node 15.x to leverage npm optional deps

* fix: optional dep install

* test: see what happens with heroku/nodejs-typescript buildpack

* back to heroku/nodejs buildpack

* move jest to optional

* revert jest move

* remove .slugignore

* cleanup dockerfile, move xlsx-population to optional, add comment about optional deps

* Update Dockerfile

Co-authored-by: James M. Greene <JamesMGreene@github.com>

Co-authored-by: James M. Greene <JamesMGreene@github.com>
2021-05-24 15:40:50 -07:00
Rachael Sewell
264a12dc00 remove and rename old site tree components (#19478) 2021-05-20 18:58:54 +00:00
Rachael Sewell
8b0ba71391 add number of articles to all docs list (#19456) 2021-05-20 18:51:38 +00:00
Rachael Sewell
cf965e0892 Convert to new site tree (#19450) 2021-05-20 11:35:02 -07:00
Mike Surowiec
21bcb0fb31 fix: cookies may not be there 2021-05-19 08:33:41 -07:00
Mike Surowiec
debf09d016 change FeaturedArticles header color 2021-05-19 08:28:02 -07:00
Mike Surowiec
1213238aca fix: delay iframe rendering to improve page load 2021-05-19 08:27:58 -07:00
Mike Surowiec
02e743307c fix: minor lighthouse issues 2021-05-19 08:27:54 -07:00
Mike Surowiec
3675152d7d fix: tsc errors 2021-05-19 08:27:50 -07:00
Mike Surowiec
2fc3e7e403 feat: wire up remaining head data, csrf token 2021-05-19 08:27:34 -07:00
Mike Surowiec
e8b7d3b9fc Product landing page react (pt 4) (#19336)
* start SidebarNav, enable dark mode

* wip: sidebarnav, fix primer components theme rendering

* feat: ProductSiteTree, useFeatureFlag

* feat: add new product site tree (untested)

* wire up HomepageVersionPicker, run lint

* fix: remove re-render logic, fix homepage version picker to be natural width

* fix: support css + primer/components color modes

* fix: rename categoryId -> productId

* feat: ProductSiteTree and AllArticlesProduct

* fix: cleanup warnings

* fix: use next links on ProductSiteTreeNew

* fix: use next Link on AllArticlesProduct

* fix: add tooltip to ScrollButton, remove stylesheet dependency

* feat: ProductArticlesList component

* fix: convert color_mode value from cookie when necessary

* remove comments

* replace liquid with jsx

Co-authored-by: Rachael Sewell <rachmari@github.com>
2021-05-19 02:49:51 +00:00
Mike Surowiec
e92e11888c feat: add code examples, cleanup and minor fixes 2021-05-11 10:13:15 -07:00
Mike Surowiec
9036301ad1 feat: add CommunityExamples, enable /discussions 2021-05-11 09:10:49 -07:00
Mike Surowiec
f0fe065cef feat: implement changelog feed, guide section 2021-05-10 15:17:52 -07:00
Mike Surowiec
8598b600f3 wip: add LandingHero, FeaturedArticles 2021-05-07 16:35:11 -07:00
Mike Surowiec
03523a1822 feat: update useTranslation to be more advanced 2021-05-07 11:42:45 -07:00
Mike Surowiec
da2384c7a5 cleanup for PR 2021-05-07 08:47:22 -07:00
Mike Surowiec
fcd921d54b feat: add VersionPicker and LanguagePicker 2021-05-06 15:07:15 -07:00
Mike Surowiec
419e738aca wip: Header, HeaderNotifications 2021-05-06 15:07:15 -07:00
Mike Surowiec
35e624facd fix: cleanup Breadcrumbs.tsx 2021-05-06 14:03:59 -07:00
Mike Surowiec
13b260d1a2 fix: button icon hover 2021-05-05 16:46:56 -07:00
Mike Surowiec
0dd0bd254e fix: minor layout issues 2021-05-05 16:31:27 -07:00
Mike Surowiec
0ce7b00471 fix: linting 2021-05-05 16:20:53 -07:00
Mike Surowiec
7620a8edfa cleanup types 2021-05-05 16:02:32 -07:00
Mike Surowiec
f3a029b6dd feat: add SupportSection 2021-05-05 15:58:21 -07:00
Mike Surowiec
34dcba51f1 feat: add DefaultLayout, add to sponsors landing page 2021-05-05 14:54:49 -07:00
Mike Surowiec
eaddbc5db7 feat: add nextjs middleware handling (#19139)
* feat: add nextjs middleware handling split

* fix: eslint errors

* fix: filter boolean from csp list

* fix: feature flag nextjs server start

* feat: add prettier rules for ts,tsx files

* fix: remove unnecessary async from next middleware

* fix: next middleware name

* Update tsconfig.json

Co-authored-by: James M. Greene <JamesMGreene@github.com>

* Update next-env.d.ts

Co-authored-by: James M. Greene <JamesMGreene@github.com>

* fix: add typescript linting to lint command

* add comment for unsafe-eval, update webpack to use eval in development

* fix: feature flag typo

Co-authored-by: James M. Greene <JamesMGreene@github.com>
2021-05-05 15:23:46 +00:00