Граф коммитов

532 Коммитов

Автор SHA1 Сообщение Дата
Robert Sese 3d45346c34
New nested param table styles for REST (#30862) 2022-09-20 12:57:49 -07:00
github-openapi-bot 757066487d
Update OpenAPI Descriptions (#30924)
Co-authored-by: github-openapi-bot <github-openapi-bot@users.noreply.github.com>
Co-authored-by: Rachael Sewell <rachmari@github.com>
Co-authored-by: Grace Park <gracepark@github.com>
Co-authored-by: Grace Park <gracepark@Graces-MacBook-Pro-2.local>
Co-authored-by: Hector Alfaro <hectorsector@github.com>
Co-authored-by: Ashwin Jeyaseelan <8gitbrix@github.com>
Co-authored-by: hubwriter <hubwriter@github.com>
Co-authored-by: Sarita Iyer <66540150+saritai@users.noreply.github.com>
2022-09-19 10:28:23 -07:00
Peter Bengtsson 907199f00e
don't scroll when replacing auto-refreshing (#30835) 2022-09-16 09:04:48 -04:00
Robert Sese 8d60c08173
Fix featured video links versioning (#30788) 2022-09-15 16:51:14 +00:00
Peter Bengtsson 37fa4e871e
auto-refresh content (#30689)
Co-authored-by: Sarah Schneider <sarahs@users.noreply.github.com>
2022-09-14 16:58:27 +00:00
Robert Sese 57c1ed5d6e
Update permissions statement design (#30703) 2022-09-13 16:19:53 +00:00
Grace Park b84b627e8c
Fix bug for ghec version of experimental pages (#30494) 2022-09-06 16:14:25 +00:00
Manuel Bergler 219638d7d4
Fix Management Console API code samples (#30455) 2022-09-06 15:58:04 +00:00
hubwriter dbb8426cb4
Codespaces: Use correct keypress formatting (#30248) 2022-09-01 11:59:02 +00:00
Grace Park e75e6d3638
Add new line for gh cli for REST CodeSamples to work (#30364) 2022-08-30 19:53:14 +00:00
Sarah Edwards 148257a793
Make autogenerated REST examples work with JWTs (#30352) 2022-08-29 17:32:34 +00:00
Grace Park 543b3eee9d
Unbreak for code in rest tables and remove unnecessary import (#30314) 2022-08-29 17:12:00 +00:00
Peter Bengtsson e7280bb896
silence unit test warning from useTheme (#30286) 2022-08-26 15:44:24 +00:00
Kevin Heis 303d5190db
Create a translations test suite (#30000)
* Scaffold files for migration

* Move user-agent into unit suite

* Nothing to move from browser suite

* Migrate tests to translations/content

* Migrate existing translation test to meta

* No graphql tests to migrate

* Migrate lint-translation-reporter

* Migrate lint-translation-reporter

* Remove languages-schema, unused

* Restore languages-schema

* Restore languages-schema

* Migrate rendering

* Migrate routing

* Migrate most of unit

* Remove dead files, comment out tests that aren't expected to work yet

* Migrate from get-redirect

* Migrate page and pages

* Migrate linting code

* Fix lint issues

* Found a few more

* Run prettier

* Move crowdin-config test and helper

* Update crowdin-config.js

* Remove translation linting, crowdin config lint, reduce file count

* Remove test that's been skipped for a year

* Restore linting with note to remove later

* Update lint-translation-reporter.js

* Clean up rendering suite

* Update rendering.js

* Remove excessive describe blocks

* Redirect tests

* Clean up unit

* Remove test that's never called

* Don't compare early access

* Rename test suites

* Update "content" tests

* Update files.js

* Update search.js

* Update files.js

* Update files.js
2022-08-25 12:38:03 -07:00
Grace Park df6b782b11
Update navlist for MiniTocs (#30167)
* update navlist

* fix tests

* update to component

* update platform

* update key

* fix platform tool picker issue

* add key

* remove unnecessary key

* fix test

* update styling

* fix indented test

* Update components/ui/MiniTocs/MiniTocs.tsx

Co-authored-by: Peter Bengtsson <peterbe@github.com>

* remove null

Co-authored-by: Peter Bengtsson <peterbe@github.com>
2022-08-25 09:33:08 -07:00
Peter Bengtsson 7bd83ef4b1
able to use HTML tags in playground markdown content (#30256)
* able to use HTML tags in playground Markdown content

* small fixes
2022-08-25 14:34:08 +00:00
Rachael Sewell 28423ba069
simplify openapi schema parsing (#30192) 2022-08-24 22:14:39 +00:00
hubwriter a4d56c1134
Codespaces: Fix rendering of keyboard input in Typescript file (#30218)
Fix rendering of keyboard input
2022-08-24 15:39:46 +01:00
Sarah Edwards d2a2113c11
REST new user guidance (#29642) 2022-08-23 19:31:01 +00:00
Peter Bengtsson fe80f4ae4d
suppress es-search if ELASTICSEARCH_URL isn't configured (#30096)
* suppress es-search if ELASTICSEARCH_URL isn't configured

* simplify

* simple 500 error instead
2022-08-19 20:54:37 +00:00
Peter Bengtsson cb97fb4db3
Search result widget expands the whole page down (#30101) 2022-08-19 12:24:09 -04:00
Peter Bengtsson 8765c628ff
dedicated search results page (redux) (#29902)
* dedicated search results page (redux)

* Update SearchResults.tsx

* adding pagination

* fix pagination

* say something on NoQuery

* better Flash

* tidying link

* small fixes for results

* debug info

* l18n the meta info

* inDebugMode

* basic jest rendering of the skeleton page

* basic jest rendering test

* fix content tests

* better document title

* fix tests

* quote query in page title

* use home page sidebar

* something when nothing is found

* parseInt no longer needs the 10

* fix linting tests

* fix test

* prettier

* Update pages/search.tsx

Co-authored-by: Rachael Sewell <rachmari@github.com>

Co-authored-by: Kevin Heis <heiskr@users.noreply.github.com>
Co-authored-by: Rachael Sewell <rachmari@github.com>
2022-08-19 13:36:55 +00:00
Peter Bengtsson d38b8351a8
Revert "Update to NavList for minitocs" (#30051)
Revert "Update to NavList for minitocs (#29885)"

This reverts commit b5ea7bbcc5.
2022-08-18 09:44:23 -04:00
Rachael Sewell 961f985cfe
Revert "Refactor openapi table func" (#30040) 2022-08-17 17:24:11 -07:00
Rachael Sewell 792f4c626a
Refactor openapi table func (#29924) 2022-08-17 13:46:15 -07:00
Kevin Heis 74db5c9eca
Update README.md 2022-08-15 14:13:30 -07:00
Kevin Heis 3cb36aa99f
Remove airgap mode (#29964) 2022-08-15 21:05:21 +00:00
Kevin Heis 688a274f1f
Remove CSRF check (#29910)
* Use color_mode for gating "sign up" button

* Remove csrf check

* Add `res.removeHeader('set-cookie')` to cache-control

* Update static-assets.js

* Remove package

* Remove tough-cookie

* Update cache-control.js

* Update cache-control.js

* Update cache-control.js
2022-08-15 19:28:42 +00:00
Kevin Heis 242c4c1f72
Also check preferred_color_mode for hasAccount state (#29958)
Update useHasAccount.ts
2022-08-15 17:54:09 +00:00
Peter Bengtsson 700a33df69
use the languages definitely known in context (#29920) 2022-08-12 20:36:22 +00:00
Kevin Heis ca61b3465a
Use color_mode for gating "sign up" button (#29901)
* Use color_mode for gating "sign up" button

* Update useHasAccount.ts

* Update useHasAccount.ts

* Update useHasAccount.ts
2022-08-12 18:18:58 +00:00
Grace Park b5ea7bbcc5
Update to NavList for minitocs (#29885)
* update to NavList for minitocs

* fix minitoc tests
2022-08-11 18:40:02 -07:00
Rachael Sewell b552180c04
remove unused properties from decorated rest schemas (#29881) 2022-08-12 00:09:41 +00:00
Grace Park 0426962aec
Fix single quote escaping for curl examples (#29876)
fix single quote escaping for curl examples
2022-08-11 22:26:58 +00:00
Peter Bengtsson 1897eb1c94
remove 'This aritlce is also available ...' when changing back to Eng… (#29868)
remove 'This aritlce is also available ...' when changing back to English
2022-08-11 21:21:44 +00:00
Peter Bengtsson cce0416b0d
unique react key in playground editor buttons (#29836)
* unique React key in playground editor buttons

* second place
2022-08-11 15:56:58 +00:00
Peter Bengtsson e23f968e6e
find article by path only in PlaygroundContextProvider (#29838) 2022-08-11 15:45:28 +00:00
Peter Bengtsson f843f42945
fix anchors on /graphql/reference/objects (#29815) 2022-08-10 17:11:53 -04:00
Rachael Sewell 7061516b37
allow videos to be versioned on landing pages (#29781) 2022-08-10 20:06:33 +00:00
Peter Bengtsson 5084160024
correct language link in header notification (#29799) 2022-08-10 15:52:24 +00:00
Kevin Heis 101e7155c8
userLanguage in browser instead of XHR (#29782)
* userLanguage in browser instead of XHR

* refactors on pr 29782 (#29798)

Co-authored-by: Peter Bengtsson <peterbe@github.com>
2022-08-10 15:28:21 +00:00
Kevin Heis 04f38e4779
Parse color_mode cookie in browser (#29738)
* Parse color_mode cookie in browser

* Update useTheme.ts

* Update use-theme.js

* Update use-theme.js

* Add support for dark_high_contrast

Per https://primer.style/css/support/theming

I also checked all the color mode options, this is the only additional working with Primer 20 so far

* Remove gray bg

* Remove  type

* Use defaults instead of types for fn args

* Thicker types
2022-08-09 16:48:18 +00:00
Peter Bengtsson f966792fb5
refactor ClientSideRedirectExceptions (#29737) 2022-08-08 20:42:59 -04:00
Peter Bengtsson aa727c4f70
refactor clientsidehighlight (#29713)
* refactor ClientSideHighlight

* names

* names again
2022-08-08 20:17:58 +00:00
Peter Bengtsson bf020344c2
let session defaults be defined where they are used (#29724) 2022-08-08 17:17:11 +00:00
Peter Bengtsson ef277d6640
Always call initializeEvents with a truthy csrfToken (#29721) 2022-08-08 12:10:00 -04:00
Peter Bengtsson 623a040851
use defaultfallback data for apisession (#29719)
* don't get available languages from session

* update useSession

* one more fix

* use default session till XHR comes in

* warn on error
2022-08-08 15:47:55 +00:00
Peter Bengtsson a1e3866fa5
don't get available languages from session (#29715)
* don't get available languages from session

* update useSession

* one more fix
2022-08-08 11:13:27 -04:00
Peter Bengtsson f8f20605f4
search api with elasticsearch (#29053)
* indexing records into Elasticsearch

* @elastic/elasticsearch@8.2.0

* mv

* fix the code

* pipe

* lfs

* use sha

* change how index names work

* search api with Elasticsearch

* works

* refactor client

* better snowballing

* remove dbg

* wip

* highlights and fuzzy search

* improvements and upgrade

* also upgrade

* wip

* index more explicitly

* better validation

* change max size

* popularity by ordinal ranking instead

* playing

* fix package-lock

* rearranging

* catchMiddlewareError

* fix indexing

* match_phrase_prefix on wrapped search

* refactorings

* escape html in content

* wip

* search by URL

* update lock file

* v1 api

* inroads on jest testing the search

* valid yaml hopefully

* index fixtures into local elasticsearch

* specific versions to index only

* small fixes

* feedbacked

* fix tests

* use the npm script
2022-08-05 19:40:38 +00:00
Kevin Heis 56aa9ea094
Move use session to its own hook file (#29641)
* Move use session to its own hook file

* Trying useSWR

* Try one hour html cache

* blah blah lint

* Update to include loading state

* Update components/hooks/useSession.ts

Co-authored-by: Peter Bengtsson <peterbe@github.com>

Co-authored-by: Peter Bengtsson <peterbe@github.com>
2022-08-05 14:47:10 +00:00