├── .gitignore ├── .babelrc ├── plugins ├── math.esm.js ├── math.js ├── zoom.esm.js ├── zoom.js ├── notes.esm.js ├── notes.js ├── search.esm.js ├── search.js ├── highlight.esm.js └── highlight.js ├── .prettierrc ├── src ├── components │ ├── note.js │ ├── p.js │ ├── li.js │ ├── ol.js │ ├── ul.js │ ├── div.js │ ├── main.js │ ├── span.js │ ├── figure.js │ ├── footer.js │ ├── header.js │ ├── blockquote.js │ ├── figcaption.js │ ├── image.js │ ├── iframe.js │ ├── code.js │ ├── link.js │ ├── slide.js │ ├── audio.js │ ├── video.js │ ├── h.js │ └── reveal.js └── index.js ├── test ├── index.html ├── monokai.css ├── index.jsx └── theme.css ├── webpack.config.js ├── .eslintrc.json ├── rollup.config.js ├── LICENSE ├── package.json └── README.md /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | test/bundle.js -------------------------------------------------------------------------------- /.babelrc: -------------------------------------------------------------------------------- 1 | { 2 | "presets": ["@babel/preset-env", "@babel/preset-react"] 3 | } 4 | -------------------------------------------------------------------------------- /plugins/math.esm.js: -------------------------------------------------------------------------------- 1 | import RevealMath from 'reveal.js/plugin/math/math.esm'; 2 | 3 | export default RevealMath; 4 | -------------------------------------------------------------------------------- /plugins/math.js: -------------------------------------------------------------------------------- 1 | const RevealMath = require('reveal.js/plugin/math/math'); 2 | 3 | exports.default = RevealMath; 4 | -------------------------------------------------------------------------------- /plugins/zoom.esm.js: -------------------------------------------------------------------------------- 1 | import RevealZoom from 'reveal.js/plugin/zoom/zoom.esm'; 2 | 3 | export default RevealZoom; 4 | -------------------------------------------------------------------------------- /plugins/zoom.js: -------------------------------------------------------------------------------- 1 | const RevealZoom = require('reveal.js/plugin/zoom/zoom'); 2 | 3 | exports.default = RevealZoom; 4 | -------------------------------------------------------------------------------- /plugins/notes.esm.js: -------------------------------------------------------------------------------- 1 | import RevealNotes from 'reveal.js/plugin/notes/notes.esm'; 2 | 3 | export default RevealNotes; 4 | -------------------------------------------------------------------------------- /plugins/notes.js: -------------------------------------------------------------------------------- 1 | const RevealNotes = require('reveal.js/plugin/notes/notes'); 2 | 3 | exports.default = RevealNotes; 4 | -------------------------------------------------------------------------------- /plugins/search.esm.js: -------------------------------------------------------------------------------- 1 | import RevealSearch from 'reveal.js/plugin/search/search.esm'; 2 | 3 | export default RevealSearch; 4 | -------------------------------------------------------------------------------- /plugins/search.js: -------------------------------------------------------------------------------- 1 | const RevealSearch = require('reveal.js/plugin/search/search'); 2 | 3 | exports.default = RevealSearch; 4 | -------------------------------------------------------------------------------- /plugins/highlight.esm.js: -------------------------------------------------------------------------------- 1 | import RevealHighlight from 'reveal.js/plugin/highlight/highlight.esm'; 2 | 3 | export default RevealHighlight; 4 | -------------------------------------------------------------------------------- /plugins/highlight.js: -------------------------------------------------------------------------------- 1 | const RevealHighlight = require('reveal.js/plugin/highlight/highlight'); 2 | 3 | exports.default = RevealHighlight; 4 | -------------------------------------------------------------------------------- /.prettierrc: -------------------------------------------------------------------------------- 1 | { 2 | "tabWidth": 2, 3 | "useTabs": false, 4 | "jsxSingleQuote": false, 5 | "singleQuote": true, 6 | "trailingComma": "all" 7 | } 8 | -------------------------------------------------------------------------------- /src/components/note.js: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | 3 | function Note({ children }) { 4 | return ; 5 | } 6 | 7 | export default Note; 8 | -------------------------------------------------------------------------------- /test/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | React RevealJS 7 | 8 | 9 |
10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /src/components/p.js: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | 3 | function P({ 4 | id = undefined, 5 | className = undefined, 6 | fragment = false, 7 | fragmentStyle = undefined, 8 | fragmentIndex = undefined, 9 | children, 10 | }) { 11 | return ( 12 |

22 | {children} 23 |

24 | ); 25 | } 26 | 27 | export default P; 28 | -------------------------------------------------------------------------------- /src/components/li.js: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | 3 | function Li({ 4 | id = undefined, 5 | className = undefined, 6 | fragment = false, 7 | fragmentStyle = undefined, 8 | fragmentIndex = undefined, 9 | children, 10 | }) { 11 | return ( 12 |
  • 22 | {children} 23 |
  • 24 | ); 25 | } 26 | 27 | export default Li; 28 | -------------------------------------------------------------------------------- /src/components/ol.js: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | 3 | function Ol({ 4 | id = undefined, 5 | className = undefined, 6 | fragment = false, 7 | fragmentStyle = undefined, 8 | fragmentIndex = undefined, 9 | children, 10 | }) { 11 | return ( 12 |
      22 | {children} 23 |
    24 | ); 25 | } 26 | 27 | export default Ol; 28 | -------------------------------------------------------------------------------- /src/components/ul.js: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | 3 | function Ul({ 4 | id = undefined, 5 | className = undefined, 6 | fragment = false, 7 | fragmentStyle = undefined, 8 | fragmentIndex = undefined, 9 | children, 10 | }) { 11 | return ( 12 | 24 | ); 25 | } 26 | 27 | export default Ul; 28 | -------------------------------------------------------------------------------- /src/components/div.js: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | 3 | function Div({ 4 | id = undefined, 5 | className = undefined, 6 | fragment = false, 7 | fragmentStyle = undefined, 8 | fragmentIndex = undefined, 9 | children, 10 | }) { 11 | return ( 12 |
    22 | {children} 23 |
    24 | ); 25 | } 26 | 27 | export default Div; 28 | -------------------------------------------------------------------------------- /src/components/main.js: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | 3 | function Main({ 4 | id = undefined, 5 | className = undefined, 6 | fragment = false, 7 | fragmentStyle = undefined, 8 | fragmentIndex = undefined, 9 | children, 10 | }) { 11 | return ( 12 |
    22 | {children} 23 |
    24 | ); 25 | } 26 | 27 | export default Main; 28 | -------------------------------------------------------------------------------- /src/components/span.js: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | 3 | function Span({ 4 | id = undefined, 5 | className = undefined, 6 | fragment = false, 7 | fragmentStyle = undefined, 8 | fragmentIndex = undefined, 9 | children, 10 | }) { 11 | return ( 12 | 22 | {children} 23 | 24 | ); 25 | } 26 | 27 | export default Span; 28 | -------------------------------------------------------------------------------- /src/components/figure.js: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | 3 | function Figure({ 4 | id = undefined, 5 | className = undefined, 6 | fragment = false, 7 | fragmentStyle = undefined, 8 | fragmentIndex = undefined, 9 | children, 10 | }) { 11 | return ( 12 |
    22 | {children} 23 |
    24 | ); 25 | } 26 | 27 | export default Figure; 28 | -------------------------------------------------------------------------------- /src/components/footer.js: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | 3 | function Footer({ 4 | id = undefined, 5 | className = undefined, 6 | fragment = false, 7 | fragmentStyle = undefined, 8 | fragmentIndex = undefined, 9 | children, 10 | }) { 11 | return ( 12 | 24 | ); 25 | } 26 | 27 | export default Footer; 28 | -------------------------------------------------------------------------------- /src/components/header.js: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | 3 | function Header({ 4 | id = undefined, 5 | className = undefined, 6 | fragment = false, 7 | fragmentStyle = undefined, 8 | fragmentIndex = undefined, 9 | children, 10 | }) { 11 | return ( 12 |
    22 | {children} 23 |
    24 | ); 25 | } 26 | 27 | export default Header; 28 | -------------------------------------------------------------------------------- /src/components/blockquote.js: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | 3 | function BlockQuote({ 4 | id = undefined, 5 | className = undefined, 6 | fragment = false, 7 | fragmentStyle = undefined, 8 | fragmentIndex = undefined, 9 | children, 10 | }) { 11 | return ( 12 |
    22 | {children} 23 |
    24 | ); 25 | } 26 | 27 | export default BlockQuote; 28 | -------------------------------------------------------------------------------- /src/components/figcaption.js: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | 3 | function FigCaption({ 4 | id = undefined, 5 | className = undefined, 6 | fragment = false, 7 | fragmentStyle = undefined, 8 | fragmentIndex = undefined, 9 | children, 10 | }) { 11 | return ( 12 |
    22 | {children} 23 |
    24 | ); 25 | } 26 | 27 | export default FigCaption; 28 | -------------------------------------------------------------------------------- /src/components/image.js: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | 3 | function Image({ 4 | id = undefined, 5 | alt = undefined, 6 | className = undefined, 7 | fragment = false, 8 | fragmentStyle = undefined, 9 | fragmentIndex = undefined, 10 | height = undefined, 11 | src, 12 | width = undefined, 13 | }) { 14 | return ( 15 | {alt} 29 | ); 30 | } 31 | 32 | export default Image; 33 | -------------------------------------------------------------------------------- /webpack.config.js: -------------------------------------------------------------------------------- 1 | const path = require('path'); 2 | 3 | module.exports = { 4 | mode: 'development', 5 | entry: './test/index.jsx', 6 | module: { 7 | rules: [ 8 | { test: /\.jsx?$/, use: 'babel-loader', exclude: /node_modules/ }, 9 | { test: /\.less$/, use: ['style-loader', 'css-loader', 'less-loader'] }, 10 | { test: /\.css$/, use: ['style-loader', 'css-loader'] }, 11 | { test: /\.ttf$/, use: ['file-loader'] }, 12 | { test: /\.woff$/, use: ['file-loader'] }, 13 | { test: /\.eot$/, use: ['file-loader'] }, 14 | ], 15 | }, 16 | resolve: { 17 | extensions: ['.js', '.jsx', '.less', '.css'], 18 | }, 19 | output: { 20 | filename: 'bundle.js', 21 | path: path.join(__dirname, 'test'), 22 | }, 23 | }; 24 | -------------------------------------------------------------------------------- /src/components/iframe.js: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | 3 | function IFrame({ 4 | id = undefined, 5 | className = undefined, 6 | fragment = false, 7 | fragmentStyle = undefined, 8 | fragmentIndex = undefined, 9 | height = undefined, 10 | lazy = undefined, 11 | preload = undefined, 12 | src, 13 | width = undefined, 14 | }) { 15 | return ( 16 |