This script runs on a folder and converts all the indented code blocks in markdown files to fenced code blocks.
The script tries to preserve the original markdown formatting.
npm install
import * as React from 'react'; | |
import styled from 'styled-components'; | |
import { Button } from '@redocly/theme/components/Button/Button'; | |
import { Link } from '@redocly/theme/components/Link/Link'; | |
import { breakpoints } from '@redocly/theme/core/utils'; | |
export const frontmatter = { | |
seo: { | |
title: 'Demo React Page', | |
}, |
function npm-ls-files() { | |
fname="$(npm pack)" && tar -ztf $fname | sed 's/^package\///g' && rm $fname | |
} |
I hereby claim:
To claim this, I am signing this object:
import React from 'react'; | |
import gql from 'graphql-tag'; | |
import { gqlLodash } from './gqlLodash'; | |
// data here contains already transformed data | |
function MyComponent({data: {loading, peopleToFilms}}) { | |
if (loading) return (<div> Loading... </div>); | |
let people = Object.keys(peopleToFilms); | |
return ( | |
<dl> |
import { graphql } from 'react-apollo'; | |
import { graphqlLodash } from 'graphql-lodash'; | |
export function gqlLodash(rawQuery, config) { | |
const {query, transform} = graphqlLodash(rawQuery); | |
// save original props callback | |
let origProps = (config && config.props) || ((props) => props); | |
return (comp) => graphql(query, {...config, | |
props: (props) => origProps({ |
You have two options to get souces:
Download archive file from https://db.tt/0UUO7NKb and extract sources into some folder (for example ~/wireshark
). You should not apply any patches: all patches are included in archive. Goto Build steps.