Skip to content

Commit fd2e42b

Browse files
committed
update dependence
1 parent 3a65dce commit fd2e42b

4 files changed

Lines changed: 1830 additions & 56 deletions

File tree

‎package.json‎

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
"gh-pages": "npm run dist && sleep 3 && git add dist/ && git commit -m \"build dist\" && git push origin `git subtree split --prefix dist HEAD`:gh-pages --force"
1818
},
1919
"devDependencies": {
20-
"@babel/core": "^7.2.2",
21-
"@babel/plugin-proposal-class-properties": "^7.3.0",
20+
"@babel/core": "^7.3.3",
21+
"@babel/plugin-proposal-class-properties": "^7.3.3",
2222
"@babel/plugin-proposal-optional-chaining": "^7.2.0",
2323
"@babel/preset-env": "^7.3.1",
2424
"@babel/preset-react": "^7.0.0",
@@ -27,11 +27,11 @@
2727
"babel-loader": "^8.0.5",
2828
"browser-sync": "^2.26.3",
2929
"css-loader": "^1.0.1",
30-
"cssnano": "^4.1.7",
30+
"cssnano": "^4.1.10",
3131
"del": "^3.0.0",
32-
"eslint": "^5.13.0",
32+
"eslint": "^5.14.0",
3333
"eslint-plugin-react": "^7.12.4",
34-
"eslint-plugin-react-hooks": "^1.0.1",
34+
"eslint-plugin-react-hooks": "^1.0.2",
3535
"fancy-log": "^1.3.3",
3636
"gulp": "^3.9.1",
3737
"gulp-autoprefixer": "^5.0.0",
@@ -60,7 +60,7 @@
6060
"sass-loader": "^7.1.0",
6161
"serve-index": "^1.9.1",
6262
"through2": "^3.0.0",
63-
"webpack": "^4.29.3",
63+
"webpack": "^4.29.4",
6464
"webpack-cli": "^3.2.3",
6565
"webpack-dev-server": "^3.1.10",
6666
"webpack-hot-middleware": "^2.24.3",
@@ -70,13 +70,14 @@
7070
"@babel/polyfill": "^7.2.3",
7171
"animate.css": "^3.7.0",
7272
"clipboard": "^2.0.4",
73+
"code-prettify": "^0.1.0",
7374
"events": "^3.0.0",
7475
"file-saver": "^2.0.0",
7576
"lodash": "^4.17.11",
7677
"mark.js": "^8.11.1",
7778
"nprogress": "^0.2.0",
78-
"react": "^16.8.1",
79-
"react-dom": "^16.8.1",
79+
"react": "^16.8.2",
80+
"react-dom": "^16.8.2",
8081
"react-router-dom": "^4.3.1",
8182
"semantic-ui-css": "^2.4.1",
8283
"semantic-ui-react": "^0.82.5",

‎src/components/hooks/useCodeHighlighting.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React, {useEffect, useRef} from 'react';
1+
import {useEffect, useRef} from 'react';
22

33
export default function useCodeHighlighting(watchedProps, keyword) {
44
const container = useRef(null);

‎src/vendors/prettify.css‎

100644100755
Lines changed: 70 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,70 @@
1-
.pln{color:#000}@media screen{.str{color:#080}.kwd{color:#008}.com{color:#800}.typ{color:#606}.lit{color:#066}.clo,.opn,.pun{color:#660}.tag{color:#008}.atn{color:#606}.atv{color:#080}.dec,.var{color:#606}.fun{color:red}}@media print,projection{.kwd,.tag,.typ{font-weight:700}.str{color:#060}.kwd{color:#006}.com{color:#600;font-style:italic}.typ{color:#404}.lit{color:#044}.clo,.opn,.pun{color:#440}.tag{color:#006}.atn{color:#404}.atv{color:#060}}pre.prettyprint{padding:2px;border:1px solid #888}ol.linenums{margin-top:0;margin-bottom:0}li.L0,li.L1,li.L2,li.L3,li.L5,li.L6,li.L7,li.L8{list-style-type:none}li.L1,li.L3,li.L5,li.L7,li.L9{background:#eee}
1+
/**
2+
* @license
3+
* Copyright (C) 2015 Google Inc.
4+
*
5+
* Licensed under the Apache License, Version 2.0 (the "License");
6+
* you may not use this file except in compliance with the License.
7+
* You may obtain a copy of the License at
8+
*
9+
* http://www.apache.org/licenses/LICENSE-2.0
10+
*
11+
* Unless required by applicable law or agreed to in writing, software
12+
* distributed under the License is distributed on an "AS IS" BASIS,
13+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
* See the License for the specific language governing permissions and
15+
* limitations under the License.
16+
*/
17+
18+
/* Pretty printing styles. Used with prettify.js. */
19+
20+
21+
/* SPAN elements with the classes below are added by prettyprint. */
22+
.pln { color: #000 } /* plain text */
23+
24+
@media screen {
25+
.str { color: #080 } /* string content */
26+
.kwd { color: #008 } /* a keyword */
27+
.com { color: #800 } /* a comment */
28+
.typ { color: #606 } /* a type name */
29+
.lit { color: #066 } /* a literal value */
30+
/* punctuation, lisp open bracket, lisp close bracket */
31+
.pun, .opn, .clo { color: #660 }
32+
.tag { color: #008 } /* a markup tag name */
33+
.atn { color: #606 } /* a markup attribute name */
34+
.atv { color: #080 } /* a markup attribute value */
35+
.dec, .var { color: #606 } /* a declaration; a variable name */
36+
.fun { color: red } /* a function name */
37+
}
38+
39+
/* Use higher contrast and text-weight for printable form. */
40+
@media print, projection {
41+
.str { color: #060 }
42+
.kwd { color: #006; font-weight: bold }
43+
.com { color: #600; font-style: italic }
44+
.typ { color: #404; font-weight: bold }
45+
.lit { color: #044 }
46+
.pun, .opn, .clo { color: #440 }
47+
.tag { color: #006; font-weight: bold }
48+
.atn { color: #404 }
49+
.atv { color: #060 }
50+
}
51+
52+
/* Put a border around prettyprinted code snippets. */
53+
pre.prettyprint { padding: 2px; border: 1px solid #888 }
54+
55+
/* Specify class=linenums on a pre to get line numbering */
56+
ol.linenums { margin-top: 0; margin-bottom: 0 } /* IE indents via margin-left */
57+
li.L0,
58+
li.L1,
59+
li.L2,
60+
li.L3,
61+
li.L5,
62+
li.L6,
63+
li.L7,
64+
li.L8 { list-style-type: none }
65+
/* Alternate shading for lines */
66+
li.L1,
67+
li.L3,
68+
li.L5,
69+
li.L7,
70+
li.L9 { background: #eee }

0 commit comments

Comments
 (0)