File tree Expand file tree Collapse file tree 3 files changed +5
-10
lines changed
Expand file tree Collapse file tree 3 files changed +5
-10
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ const ThirdPartyButton: React.FC<ThirdPartyButtonProps> = (props) => {
1616 if ( otherCodePenOptions && otherCodePenOptions . js ) {
1717 let include = ( includeModule || [ ] ) . join ( '|' ) ;
1818 otherCodePenOptions . js = otherCodePenOptions . js . replace ( / i m p o r t ( [ \s \S ] * ?) (? = [ ' " ] ) [ ' " ] .* [ ' " ] ( * ; | ; ) ? / gm, ( str ) => {
19+ // eslint-disable-next-line no-useless-escape
1920 if ( include && ( new RegExp ( `from\\s+['"](${ include } )['"](\s.+)?;?` ) ) . test ( str ) ) {
2021 return str ;
2122 }
Original file line number Diff line number Diff line change 11import React from 'react' ;
22
3- const full = (
3+ export const full = (
44 < svg viewBox = "0 0 1024 1024" >
55 < path d = "M909 959H780a30 30 0 0 1 0-60h99a20 20 0 0 0 20-20v-99a30 30 0 0 1 60 0v129a50 50 0 0 1-50 50z m20-685a30 30 0 0 1-30-30v-99a20 20 0 0 0-20-20h-99a30 30 0 0 1 0-60h129a50 50 0 0 1 50 50v129a30 30 0 0 1-30 30z m-157 28v420a50 50 0 0 1-50 50H302a50 50 0 0 1-50-50V302a50 50 0 0 1 50-50h420a50 50 0 0 1 50 50z m-60 30a20 20 0 0 0-20-20H332a20 20 0 0 0-20 20v360a20 20 0 0 0 20 20h360a20 20 0 0 0 20-20V332zM244 125h-99a20 20 0 0 0-20 20v99a30 30 0 0 1-60 0V115a50 50 0 0 1 50-50h129a30 30 0 0 1 0 60zM95 750a30 30 0 0 1 30 30v99a20 20 0 0 0 20 20h99a30 30 0 0 1 0 60H115a50 50 0 0 1-50-50V780a30 30 0 0 1 30-30z" />
66 </ svg >
77) ;
88
9- const bgPlaid = (
9+ export const bgPlaid = (
1010 < svg width = "100%" height = "100%" preserveAspectRatio = "none" style = { { display : 'block' } } >
1111 < pattern id = "pattern" x = "0" y = "0" width = "16" height = "16" patternUnits = "userSpaceOnUse" >
1212 < rect fill = "rgba(0, 0, 0, 0.06)" x = "0" width = "8" height = "8" y = "0" />
@@ -16,14 +16,8 @@ const bgPlaid = (
1616 </ svg >
1717)
1818
19- const copy = (
19+ export const copy = (
2020 < svg viewBox = "0 0 1024 1024" >
2121 < path d = "M869.865 46.545a107.706 107.706 0 0 1 107.59 107.567v599.412a107.706 107.706 0 0 1-107.59 107.567h-148.41v8.797a107.683 107.683 0 0 1-107.567 107.567H154.112A107.683 107.683 0 0 1 46.545 869.888V270.476a107.683 107.683 0 0 1 107.567-107.567h148.433v-8.797a107.706 107.706 0 0 1 107.59-107.567h459.73z m-715.73 861.091h459.73a37.841 37.841 0 0 0 37.771-37.748V270.476c0-20.806-16.942-37.749-37.748-37.749H154.135c-20.806 0-37.771 16.943-37.771 37.749v599.412c0 20.83 16.965 37.748 37.771 37.748z m753.501-154.112V154.112c0-20.806-16.965-37.748-37.771-37.748h-459.73c-20.806 0-37.771 16.942-37.771 37.748v8.797h241.524a107.683 107.683 0 0 1 107.567 107.567v520.797h148.41c20.806 0 37.771-16.92 37.771-37.749z m-384-381.16a34.91 34.91 0 0 1 0 69.818H244.364a34.91 34.91 0 0 1 0-69.818h279.272z m0 162.909a34.91 34.91 0 0 1 0 69.818H244.364a34.91 34.91 0 0 1 0-69.818h279.272z m-93.09 162.909a34.91 34.91 0 0 1 0 69.818H244.363a34.91 34.91 0 0 1 0-69.818h186.181z" />
2222 </ svg >
2323) ;
24-
25- export default {
26- full,
27- bgPlaid,
28- copy,
29- } ;
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ import { CodeSandboxProps } from '@uiw/react-codesandbox';
66import { CodepenProps } from '@uiw/react-codepen' ;
77import Split , { SplitProps } from '@uiw/react-split' ;
88import ThirdPartyButton from './ThirdPartyButton' ;
9- import icon from './icon' ;
9+ import * as icon from './icon' ;
1010import { BabelTransform } from './transform' ;
1111import './monokai.css' ;
1212import './index.less' ;
You can’t perform that action at this time.
0 commit comments