move [githubtag] and [githubrelease] under /v, move variants to query params (#3610)

* move GH tag and release under /v, move variants to query params
    - move github /tag and /release under /v
    - both sort by date as default
    - specify sort=date/semver, include_prereleases as query params
    - use graphql api for tags

* pass string params from example defs to modal
This commit is contained in:
chris48s
2019-08-17 22:16:41 +01:00
committed by GitHub
parent b14203e0dd
commit 5168675d0d
10 changed files with 483 additions and 195 deletions

View File

@@ -187,7 +187,7 @@ export default function QueryStringBuilder({
// Throughout the component, these two types are supported in the same
// manner: by inspecting this value type.
const isStringParam = typeof value === 'string'
result[name] = isStringParam ? '' : true
result[name] = isStringParam ? value : true
})
return result
})