This repository has been archived by the owner on Oct 30, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This PR updates ipfs to 0.37.0-rc.0. Due to the constructor changes in this version the examples have also been updated. This required an update of `react-live` to a version that supports async/await. Unfortunately in this new version styling for syntax highlighting is done by "theme" objects not CSS so there are a bunch of changes that are fallout from this. Notably, I've updated the `syntax-highlighter` component to use the same highlight method as `react-live` so that we can re-use the theme object and not also import the theme as a CSS file. I also switchied to using the `Prism` instance provided by `prism-react-renderer` that `react-live` uses instead of importing `prismjs`. This should reduce overall bundle size. License: MIT Signed-off-by: Alan Shaw <[email protected]>
- Loading branch information
Alan Shaw
authored
Aug 30, 2019
1 parent
8c6ab55
commit 67b0970
Showing
11 changed files
with
2,231 additions
and
1,051 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
// This is prism-okaidia.css: | ||
// https://github.com/PrismJS/prism/blob/878ef2955671d8546bbcd3f9ce62c276a627f340/themes/prism-okaidia.css | ||
export default { | ||
plain: { | ||
color: '#f8f8f2', | ||
backgroundColor: '#0e204c', | ||
fontFamily: 'Consolas, Monaco, Andale Mono, Ubuntu Mono, monospace', | ||
lineHeight: 1.5 | ||
}, | ||
styles: [ | ||
{ | ||
types: ['comment', 'prolog', 'doctype', 'cdata'], | ||
style: { | ||
color: 'slategray' | ||
} | ||
}, | ||
{ | ||
types: ['punctuation'], | ||
style: { | ||
color: '#f8f8f2' | ||
} | ||
}, | ||
{ | ||
types: ['property', 'tag', 'constant', 'symbol', 'deleted'], | ||
style: { | ||
color: '#f92672' | ||
} | ||
}, | ||
{ | ||
types: ['boolean', 'number'], | ||
style: { | ||
color: '#ae81ff' | ||
} | ||
}, | ||
{ | ||
types: ['selector', 'attr-name', 'string', 'char', 'builtin', 'inserted'], | ||
style: { | ||
color: '#a6e22e' | ||
} | ||
}, | ||
{ | ||
types: ['operator', 'entity', 'url', 'variable'], | ||
style: { | ||
color: '#f8f8f2' | ||
} | ||
}, | ||
{ | ||
types: ['atrule', 'attr-value', 'function', 'class-name'], | ||
style: { | ||
color: '#e6db74' | ||
} | ||
}, | ||
{ | ||
types: ['keyword'], | ||
style: { | ||
color: '#66d9ef' | ||
} | ||
}, | ||
{ | ||
types: ['regex', 'important'], | ||
style: { | ||
color: '#fd971f' | ||
} | ||
}, | ||
{ | ||
types: ['important', 'bold'], | ||
style: { | ||
fontWeight: 'bold' | ||
} | ||
}, | ||
{ | ||
types: ['italic'], | ||
style: { | ||
fontStyle: 'italic' | ||
} | ||
}, | ||
{ | ||
types: ['entity'], | ||
style: { | ||
cursor: 'help' | ||
} | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters