-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
753 lines (473 loc) · 35 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
<!DOCTYPE html>
<html lang="en" data-default-color-scheme=auto>
<head>
<meta charset="UTF-8">
<link rel="apple-touch-icon" sizes="76x76" href="/img/favicon-128.ico">
<link rel="icon" href="/img/favicon.ico">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=5.0, shrink-to-fit=no">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<meta name="theme-color" content="#2f4154">
<meta name="author" content="Daniel Chan">
<meta name="keywords" content="front-end,javascript,Internet,self-growth">
<meta name="description" content="A front-end engineer who enjoys sharing insights about technology, self-growth, and life.">
<meta property="og:type" content="website">
<meta property="og:title" content="Danni.cool - Daniel's Blog">
<meta property="og:url" content="http://example.com/index.html">
<meta property="og:site_name" content="Danni.cool - Daniel's Blog">
<meta property="og:description" content="A front-end engineer who enjoys sharing insights about technology, self-growth, and life.">
<meta property="og:locale" content="en_US">
<meta property="article:author" content="Daniel Chan">
<meta property="article:tag" content="front-end">
<meta property="article:tag" content="javascript">
<meta property="article:tag" content="Internet">
<meta property="article:tag" content="self-growth">
<meta name="twitter:card" content="summary_large_image">
<meta name="referrer" content="no-referrer-when-downgrade">
<title>Danni.cool - Daniel's Blog</title>
<link rel="stylesheet" href="https://lib.baomitu.com/twitter-bootstrap/4.6.1/css/bootstrap.min.css" />
<!-- 主题依赖的图标库,不要自行修改 -->
<!-- Do not modify the link that theme dependent icons -->
<link rel="stylesheet" href="//at.alicdn.com/t/font_1749284_hj8rtnfg7um.css">
<link rel="stylesheet" href="//at.alicdn.com/t/font_1736178_lbnruvf0jn.css">
<link rel="stylesheet" href="/css/main.css" />
<link id="highlight-css" rel="stylesheet" href="/css/highlight.css" />
<link id="highlight-css-dark" rel="stylesheet" href="/css/highlight-dark.css" />
<script id="fluid-configs">
var Fluid = window.Fluid || {};
Fluid.ctx = Object.assign({}, Fluid.ctx)
var CONFIG = {"hostname":"example.com","root":"/","version":"1.9.7","typing":{"enable":false,"typeSpeed":35,"cursorChar":"_","loop":false,"scope":["post"]},"anchorjs":{"enable":true,"element":"h1,h2,h3,h4,h5,h6","placement":"left","visible":"hover","icon":"#"},"progressbar":{"enable":true,"height_px":3,"color":"#29d","options":{"showSpinner":false,"trickleSpeed":100}},"code_language":{"enable":true,"default":"javascript"},"copy_btn":true,"image_caption":{"enable":true},"image_zoom":{"enable":true,"img_url_replace":["",""]},"toc":{"enable":true,"placement":"right","headingSelector":"h1,h2,h3,h4,h5,h6","collapseDepth":0},"lazyload":{"enable":true,"loading_img":"/img/loading.gif","onlypost":false,"offset_factor":2},"web_analytics":{"enable":true,"follow_dnt":true,"baidu":null,"google":{"measurement_id":"G-HX1CJCNPGK"},"tencent":{"sid":null,"cid":null},"woyaola":null,"cnzz":null,"leancloud":{"app_id":null,"app_key":null,"server_url":null,"path":"window.location.pathname","ignore_local":false}},"search_path":"/local-search.xml","include_content_in_search":true};
if (CONFIG.web_analytics.follow_dnt) {
var dntVal = navigator.doNotTrack || window.doNotTrack || navigator.msDoNotTrack;
Fluid.ctx.dnt = dntVal && (dntVal.startsWith('1') || dntVal.startsWith('yes') || dntVal.startsWith('on'));
}
</script>
<script src="/js/utils.js" ></script>
<script src="/js/color-schema.js" ></script>
<!-- Google tag (gtag.js) -->
<script async>
if (!Fluid.ctx.dnt) {
Fluid.utils.createScript("https://www.googletagmanager.com/gtag/js?id=G-HX1CJCNPGK", function() {
window.dataLayer = window.dataLayer || [];
function gtag() {
dataLayer.push(arguments);
}
gtag('js', new Date());
gtag('config', 'G-HX1CJCNPGK');
});
}
</script>
<meta name="generator" content="Hexo 7.2.0"></head>
<body>
<header>
<div class="header-inner" style="height: 50vh;">
<nav
id="navbar"
class="navbar fixed-top navbar-expand-lg navbar-dark scrolling-navbar"
>
<div class="container">
<a class="navbar-brand" href="/">
<!-- <strong>Danni.cool</strong> -->
<svg
version="1.1"
width="120"
height="34"
viewBox="0 0 2000 439"
xmlns="http://www.w3.org/2000/svg"
>
<defs>
<g id="marketing-masks">
<mask id="mask-marketing-M">
<path
class="styles_logoMask styles_doSvgAnimate"
stroke-width="65"
d="M 125.12546,243.55972 C 90.163936,244.5634 61.057209,270.4918 61.057209,270.4918 l -30.779524,67.36067 8.531282,62.71899 25.426563,18.83457 60.22081,-24.62517 34.79425,-65.57377 36.8016,-64.90465 25.42657,-62.22817 c 0,0 18.06624,-68.25025 21.41184,-72.26497 3.3456,-4.01472 7.36032,-52.191368 7.36032,-52.191368 l -20.0736,-54.867848 c 0,0 -31.44865,6.022081 -33.45601,8.698561 -2.00736,2.67648 -20.74272,46.838408 -23.4192,51.522248 -2.67648,4.683841 -21.91332,83.965087 -21.41185,98.360657 0.41867,12.01848 10.70592,86.31649 -13.3824,80.29441 -3.24571,-0.81143 7.36032,90.33122 7.36032,90.33122 l 21.41185,60.22081 39.47808,4.01472 36.80161,-21.41185 c 0,0 16.05888,-40.1472 18.06624,-46.8384 2.00736,-6.69121 18.06624,-64.23553 20.74273,-67.58114 2.67648,-3.3456 33.456,-27.43392 33.456,-27.43392 l 40.81633,-12.71328 13.3824,6.02208 -75.61057,26.7648 c 0,0 -16.91263,67.18526 -14.05153,68.91937 23.99494,14.54325 -10.29544,71.78742 -4.68384,74.27234 6.02572,2.6683 48.84577,-4.01472 48.84577,-4.01472 l 41.48545,-34.12513 c 0,0 -6.6912,-73.60321 18.73536,-40.81633 7.73686,9.97647 27.43392,-82.97088 27.43392,-82.97088 l -34.12512,-8.02945 4.01472,88.32385 8.69856,72.26498 c 0,0 21.12565,22.01074 22.08097,18.73536 4.68384,-16.05888 32.78688,-25.42656 32.78688,-25.42656 l 32.78689,-24.75745 6.6912,-47.50753 16.728,-58.21345 17.39712,-60.88992 -31.44864,145.19906 2.00736,60.22081 12.71328,-0.66912 3.3456,-32.11777 22.75008,-37.47072 14.05153,-36.80161 42.15456,-36.80161 40.14721,-35.67281 -3.3456,47.04786 c 0,0 6.6912,35.46336 -4.01472,39.47808 -3.96244,1.48591 -9.12446,42.27142 -11.37504,52.19137 -0.81843,3.60739 1.33824,38.80897 1.33824,38.80897 l 31.44864,7.36032 c 0,0 24.08833,-11.37504 30.77953,-12.71328 6.6912,-1.33825 44.16192,-27.43393 44.16192,-27.43393 l 8.02945,-46.16929 24.75744,-128.47106 c 0,0 -16.728,57.54433 -17.39712,62.89729 -0.66912,5.35296 -12.71328,167.94915 -12.71328,167.94915 l 22.08096,-50.18401 17.39712,-57.54433 24.75744,-38.80896 35.46337,-23.41921 41.48545,-22.75008 c 0,0 -6.02208,42.82369 -7.36032,48.84577 -1.33824,6.02208 -7.36033,45.50016 -8.02945,53.52961 -0.66912,8.02944 -8.02944,49.48181 -8.02944,53.49653 0,4.01472 44.83105,24.1214 44.83105,24.1214 l 44.83105,-23.41921 c 0,0 8.69856,-22.75008 12.71328,-30.1104 4.01472,-7.36032 -2.00736,-79.62529 -2.00736,-79.62529 l 68.91941,-241.552356 -26.09573,280.361316 -11.37504,79.62529 38.13987,2.00737 47.5075,-55.53697 109.7357,27.43393 13.3824,2.00735 -53.5296,30.11041 c 110.1036,15.71536 82.9843,-23.45845 113.7504,-39.47809 l 16.728,-78.95617 44.8311,-56.20609 60.2208,23.4192 -18.0663,58.88257 3.3456,-72.26497 -68.9193,1.33824 c 0,0 -28.7722,53.52961 -28.7722,59.55169 0,6.02208 -0.6691,65.57377 0,71.59585 0.6691,6.02208 41.4854,25.26122 41.4854,25.26122 0,0 38.809,6.6912 50.184,4.01472 11.3751,-2.67648 42.1546,-11.87882 42.1546,-11.87882 l 18.0663,-27.43392 19.4044,-56.20609 12.7133,-48.17665 58.2135,-23.4192 70.2576,59.48554 -46.1693,-58.81642 c 0,0 -64.9046,-7.36032 -70.2576,3.3456 -5.353,10.70592 -25.4266,76.27969 -25.4266,85.64737 0,9.36768 12.0442,71.59585 13.3824,75.61058 1.3383,4.01472 51.5222,3.1582 51.5222,3.1582 l 32.787,-11.18765 22.0809,-38.80896 6.0221,-24.75745 -35.4634,-62.89729 42.1546,46.16929 47.5075,10.0368 15.3898,-9.36768 c 0,0 26.7648,-40.1472 34.7942,-45.50017 8.0295,-5.35296 53.5297,-32.11776 57.5444,-33.456 4.0147,-1.33824 69.5885,39.47808 69.5885,39.47808 L 1662.7635,249.5818 c 0,0 -36.8016,25.42656 -39.4781,30.1104 -2.6765,4.68385 0.6691,60.90095 -0.6691,69.59952 -1.3383,8.69856 24.7574,65.56275 24.7574,65.56275 0,0 46.1693,5.35296 50.8531,6.02208 4.6839,0.66912 28.1031,-20.74273 28.1031,-20.74273 0,0 18.0662,-40.1472 20.0736,-45.50016 2.0073,-5.35296 4.6838,-57.54433 4.6838,-57.54433 l -48.1766,-42.15457 c 0,0 15.3897,52.19137 25.4265,56.20609 10.0368,4.01472 45.5002,15.38976 58.2135,16.05888 12.7133,0.66912 58.8826,-6.6912 58.8826,-6.6912 l 36.8016,-12.04416 30.7795,-40.81633 14.7206,-47.50752 22.7501,-62.89729 15.3898,-49.51489 -4.0147,-82.599408 -34.7943,-2.378848 -40.8163,35.463365 -20.7427,72.264971 -17.3972,78.28705 -14.7206,78.28706 2.0074,53.5296 34.7942,68.91938 36.1325,11.37504 49.5149,-18.73537 23.4192,-32.78688 12.0442,-42.15456"
></path>
</mask>
</g>
</defs>
<path
d="m 271.7372,332.83517 q 6.03377,0 9.5612,5.56964 3.43461,5.56963 3.43461,15.31648 v 0 q 0,18.56544 -8.81859,28.77643 v 0 q -19.02957,23.2068 -41.77224,39.63722 -22.74266,16.52324 -45.02119,16.52324 v 0 q -35.27433,0 -53.83977,-41.3081 v 0 q -19.49371,24.5992 -34.06758,32.95365 -14.666702,8.35445 -34.160412,8.35445 v 0 q -28.3123,0 -46.59925,-21.07177 Q 2.0741876,396.4218 2.0741876,362.53988 v 0 q 0,-37.13088 15.7806204,-68.97061 15.78063,-31.7469 43.44313,-51.98323 27.56968,-20.14351 61.915742,-23.85659 v 0 q 8.81858,-90.04239 33.69627,-153.907497 24.78487,-63.77228522 65.1647,-63.77228522 v 0 q 19.95785,0 33.23214,18.10130422 13.18146,18.101303 13.18146,54.768047 v 0 q 0,51.983231 -25.52748,121.603631 -25.52748,69.6204 -68.22799,142.95388 v 0 q 1.85654,26.91989 8.16879,38.52329 6.21942,11.6034 15.96628,11.6034 v 0 q 12.53167,0 25.52748,-11.13926 12.99581,-11.13927 34.8102,-37.13088 v 0 q 5.56963,-6.49791 12.53167,-6.49791 z M 216.96915,45.534995 q -8.81858,0 -17.63717,31.282766 -8.81858,31.375589 -15.038,81.966409 -6.31225,50.59083 -9.09707,105.82301 v 0 Q 227.18014,151.358 227.18014,82.665875 v 0 q 0,-17.637168 -2.97047,-27.384024 -3.06329,-9.746856 -7.24052,-9.746856 z M 83.297988,391.78044 q 8.81858,0 17.637172,-7.24052 8.81858,-7.14769 22.27852,-26.6414 v 0 q -4.64136,-25.06335 -4.64136,-56.16046 v 0 q 0,-11.13926 0.92827,-36.20261 v 0 q -25.527472,7.89032 -42.422022,34.06759 -16.98738,26.27009 -16.98738,58.29548 v 0 q 0,33.88192 23.2068,33.88192 z m 216.287372,46.87774 q -28.77643,0 -45.94946,-20.88612 -17.17304,-20.88612 -17.17304,-54.76805 v 0 q 0,-37.13088 17.17304,-70.36301 17.17303,-33.13931 45.67098,-53.37564 28.59078,-20.14351 60.61616,-20.14351 v 0 q 10.21099,0 13.6456,3.89875 3.52743,3.99157 5.84811,14.20256 v 0 q 9.74686,-1.85655 20.42199,-1.85655 v 0 q 22.74266,0 22.74266,16.24476 v 0 q 0,9.74686 -6.96204,46.4136 v 0 q -10.67513,53.37564 -10.67513,74.26176 v 0 q 0,6.96204 3.43461,11.13927 3.52743,4.17722 9.09707,4.17722 v 0 q 8.81858,0 21.35025,-11.41774 12.53167,-11.32492 33.88193,-36.8524 v 0 q 5.56963,-6.49791 12.53167,-6.49791 v 0 q 6.03377,0 9.46837,5.56964 3.52744,5.56963 3.52744,15.31648 v 0 q 0,18.56544 -8.81859,28.77643 v 0 q -19.02957,23.67094 -40.37983,39.9157 -21.35025,16.24476 -41.3081,16.24476 v 0 q -15.31649,0 -28.12664,-10.48947 -12.71733,-10.39665 -19.21523,-28.49795 v 0 q -24.13507,38.98742 -60.80182,38.98742 z m 16.7089,-46.87774 q 10.21099,0 19.49371,-12.06753 9.28272,-12.06754 13.45994,-32.02539 v 0 l 17.17304,-85.40102 q -19.49372,0.46414 -36.01696,14.57387 -16.43041,14.20256 -26.17727,37.40936 -9.74686,23.2068 -9.74686,49.19842 v 0 q 0,14.38821 5.75529,21.35025 5.84811,6.96204 16.05911,6.96204 z m 177.29995,46.87774 q -17.63717,0 -24.87769,-18.56544 -7.1477,-18.56544 -7.1477,-59.40941 v 0 q 0,-60.33768 17.17304,-114.64159 v 0 q 4.17722,-13.45994 13.64559,-19.77219 9.56121,-6.21942 26.73424,-6.21942 v 0 q 9.28272,0 12.99581,2.32068 3.71308,2.32068 3.71308,8.81858 v 0 q 0,7.42618 -6.96204,33.41779 v 0 q -4.64136,18.56544 -7.42617,32.48952 -2.78482,13.92408 -4.64136,34.34607 v 0 q 15.31649,-39.9157 34.34606,-64.97904 19.02958,-25.06335 37.31654,-35.73848 18.37978,-10.67512 33.69627,-10.67512 v 0 q 30.16884,0 30.16884,30.16884 v 0 q 0,18.1013 -10.21099,65.44317 v 0 q -8.81859,40.37983 -8.81859,53.37564 v 0 q 0,18.56544 13.45995,18.56544 v 0 q 9.28272,0 22.00004,-11.41774 12.81016,-11.32492 34.16041,-36.8524 v 0 q 5.47681,-6.49791 12.43885,-6.49791 v 0 q 6.12659,0 9.5612,5.56964 3.52743,5.56963 3.52743,15.31648 v 0 q 0,18.56544 -8.81858,28.77643 v 0 q -19.95785,24.59921 -42.979,40.37984 -22.92831,15.78062 -52.16888,15.78062 v 0 q -23.67094,0 -35.73847,-13.73843 -12.06754,-13.64559 -12.06754,-39.63721 v 0 q 0,-12.99581 6.40508,-46.4136 v 0 q 6.12659,-29.24057 6.12659,-40.37983 v 0 q 0,-7.42618 -5.10549,-7.42618 v 0 q -6.03377,0 -16.98738,15.50215 -10.86078,15.59497 -22.27853,41.12244 -11.32492,25.52748 -18.28696,53.83978 v 0 q -5.10549,21.81439 -11.88188,29.42622 -6.68356,7.70466 -21.07177,7.70466 z m 230.11862,0 q -17.63716,0 -24.78486,-18.56544 -7.24052,-18.56544 -7.24052,-59.40941 v 0 q 0,-60.33768 17.17303,-114.64159 v 0 q 4.17723,-13.45994 13.73843,-19.77219 9.46837,-6.21942 26.6414,-6.21942 v 0 q 9.28272,0 12.99581,2.32068 3.71309,2.32068 3.71309,8.81858 v 0 q 0,7.42618 -6.96204,33.41779 v 0 q -4.64136,18.56544 -7.42618,32.48952 -2.78481,13.92408 -4.64136,34.34607 v 0 q 15.31649,-39.9157 34.34607,-64.97904 19.02957,-25.06335 37.40936,-35.73848 18.28696,-10.67512 33.60345,-10.67512 v 0 q 30.16884,0 30.16884,30.16884 v 0 q 0,18.1013 -10.211,65.44317 v 0 q -8.81858,40.37983 -8.81858,53.37564 v 0 q 0,18.56544 13.45994,18.56544 v 0 q 9.28272,0 22.09288,-11.41774 12.71732,-11.32492 34.06758,-36.8524 v 0 q 5.56963,-6.49791 12.53167,-6.49791 v 0 q 6.03377,0 9.5612,5.56964 3.43461,5.56963 3.43461,15.31648 v 0 q 0,18.56544 -8.81859,28.77643 v 0 q -19.95784,24.59921 -42.88616,40.37984 -23.02115,15.78062 -52.26171,15.78062 v 0 q -23.67094,0 -35.73848,-13.73843 -12.06753,-13.64559 -12.06753,-39.63721 v 0 q 0,-12.99581 6.4979,-46.4136 v 0 q 6.03377,-29.24057 6.03377,-40.37983 v 0 q 0,-7.42618 -5.1055,-7.42618 v 0 q -6.03376,0 -16.89455,15.50215 -10.95361,15.59497 -22.27852,41.12244 -11.41775,25.52748 -18.37979,53.83978 v 0 q -5.1055,21.81439 -11.78905,29.42622 -6.77639,7.70466 -21.16461,7.70466 z M 981.77245,189.41715 q -19.49371,0 -29.24057,-9.09706 -9.74686,-9.00424 -9.74686,-25.249 v 0 q 0,-16.24476 12.81016,-27.19837 12.71732,-10.86078 31.7469,-10.86078 v 0 q 17.17302,0 27.84812,8.35444 10.6751,8.35445 10.6751,23.67094 v 0 q 0,18.56544 -12.0675,29.42622 -12.0675,10.95361 -32.02535,10.95361 z m -3.71309,249.24103 q -30.16884,0 -43.81444,-21.35026 -13.73842,-21.35025 -13.73842,-56.62459 v 0 q 0,-20.88612 5.38397,-53.65412 5.29115,-32.67517 13.6456,-60.98747 v 0 q 4.17723,-14.85235 11.13927,-20.42198 6.96204,-5.56963 22.27852,-5.56963 v 0 q 23.67094,0 23.67094,15.78062 v 0 q 0,11.6034 -8.81858,53.83978 v 0 q -11.13927,51.05496 -11.13927,69.15626 v 0 q 0,13.92408 3.71309,21.35025 3.71309,7.42618 12.53167,7.42618 v 0 q 8.35439,0 20.88609,-11.6034 12.5317,-11.6034 33.4178,-36.66674 v 0 q 5.5696,-6.49791 12.5317,-6.49791 v 0 q 6.0337,0 9.5612,5.56964 3.4346,5.56963 3.4346,15.31648 v 0 q 0,18.56544 -8.8186,28.77643 v 0 q -45.9495,56.16046 -85.86514,56.16046 z m 154.09314,0 q -20.422,0 -30.9115,-11.13926 -10.3966,-11.13927 -10.3966,-29.24057 v 0 q 0,-20.88612 11.789,-33.41779 11.8819,-12.53168 33.2322,-12.53168 v 0 q 20.4219,0 30.8186,9.93252 10.4895,10.02533 10.4895,29.51904 v 0 q 0,21.35026 -12.0676,34.06759 -12.0675,12.81015 -32.9536,12.81015 z m 175.9075,0 q -45.4854,0 -70.8272,-25.80596 -25.249,-25.71314 -25.249,-67.94951 v 0 q 0,-37.59502 14.8524,-65.90731 14.8523,-28.3123 38.5233,-43.62879 23.6709,-15.31648 49.6625,-15.31648 v 0 q 25.5275,0 39.6372,15.038 14.2026,15.13084 14.2026,38.80177 v 0 q 0,19.49371 -8.633,32.95366 -8.5401,13.45994 -22.4641,13.45994 v 0 q -8.8186,0 -14.2026,-4.17722 -5.2911,-4.17723 -5.2911,-11.6034 v 0 q 0,-3.24895 0.9282,-7.42618 0.9283,-4.17722 1.3924,-6.03377 v 0 q 2.3207,-6.96204 2.3207,-12.9958 v 0 q 0,-6.03377 -3.0633,-9.28272 -2.9705,-3.24896 -8.5401,-3.24896 v 0 q -10.6751,0 -19.9578,9.46838 -9.2828,9.5612 -14.8524,25.80596 -5.5696,16.24476 -5.5696,35.73847 v 0 q 0,53.83978 46.8777,53.83978 v 0 q 19.0296,0 41.0296,-12.81016 22.0929,-12.71732 43.4432,-38.2448 v 0 q 5.5696,-6.49791 12.5316,-6.49791 v 0 q 6.0338,0 9.4684,5.56964 3.5274,5.56963 3.5274,15.31648 v 0 q 0,17.63717 -8.8185,28.77643 v 0 q -21.8144,26.91989 -52.2617,41.49376 -30.3545,14.6667 -58.6668,14.6667 z m 318.7686,-144.81043 q 6.0337,0 9.2827,6.03377 3.2489,6.03377 3.2489,15.31649 v 0 q 0,22.27852 -13.4599,26.45575 v 0 q -27.8482,9.74685 -61.266,11.13926 v 0 q -8.8185,38.98742 -34.8102,62.47271 -25.9916,23.39245 -58.9452,23.39245 v 0 q -27.8482,0 -47.5276,-13.45994 -19.7721,-13.45995 -29.9831,-35.73848 -10.211,-22.27852 -10.211,-48.27014 v 0 q 0,-35.27433 13.4599,-62.93684 13.46,-27.56968 37.1309,-43.16465 23.6709,-15.50214 52.4474,-15.50214 v 0 q 35.2743,0 56.903,24.32073 21.5359,24.41355 25.249,60.15202 v 0 q 21.8144,-1.39241 51.9833,-9.28272 v 0 q 3.713,-0.92827 6.4979,-0.92827 z m -152.2366,95.61201 q 14.8523,0 25.8059,-12.06753 10.8608,-12.06754 14.5739,-34.8102 v 0 q -14.3882,-9.74686 -22.0001,-25.52748 -7.7046,-15.78062 -7.7046,-33.41779 v 0 q 0,-7.42618 1.3924,-14.85235 v 0 h -2.3207 q -18.5654,0 -30.8186,17.82282 -12.346,17.91565 -12.346,50.40517 v 0 q 0,25.52748 10.0253,38.98742 9.9325,13.45994 23.3925,13.45994 z m 361.5619,-95.61201 q 6.0338,0 9.2827,6.03377 3.249,6.03377 3.249,15.31649 v 0 q 0,22.27852 -13.46,26.45575 v 0 q -27.8481,9.74685 -61.2659,11.13926 v 0 q -8.8186,38.98742 -34.8102,62.47271 -25.9916,23.39245 -58.9453,23.39245 v 0 q -27.8482,0 -47.5275,-13.45994 -19.7722,-13.45995 -29.9832,-35.73848 -10.211,-22.27852 -10.211,-48.27014 v 0 q 0,-35.27433 13.4599,-62.93684 13.46,-27.56968 37.1309,-43.16465 23.671,-15.50214 52.4474,-15.50214 v 0 q 35.2743,0 56.9031,24.32073 21.5359,24.41355 25.249,60.15202 v 0 q 21.8144,-1.39241 51.9832,-9.28272 v 0 q 3.7131,-0.92827 6.4979,-0.92827 z m -152.2366,95.61201 q 14.8523,0 25.806,-12.06753 10.8607,-12.06754 14.5738,-34.8102 v 0 q -14.3882,-9.74686 -22,-25.52748 -7.7047,-15.78062 -7.7047,-33.41779 v 0 q 0,-7.42618 1.3924,-14.85235 v 0 h -2.3207 q -18.5654,0 -30.8186,17.82282 -12.346,17.91565 -12.346,50.40517 v 0 q 0,25.52748 10.0253,38.98742 9.9325,13.45994 23.3925,13.45994 z m 300.7601,-56.62459 q 6.0338,0 9.4684,5.56964 3.5274,5.56963 3.5274,15.31648 v 0 q 0,18.56544 -8.8186,28.77643 v 0 q -19.9578,24.59921 -43.4431,40.37984 -23.3924,15.78062 -53.0971,15.78062 v 0 q -40.844,0 -60.6162,-37.13088 -19.6794,-37.13088 -19.6794,-96.07615 v 0 q 0,-56.62459 14.5739,-129.02981 14.6667,-72.40521 43.1646,-124.388441 28.5908,-51.98323122 68.0424,-51.98323122 v 0 q 22.2785,0 34.9958,20.60763822 12.8102,20.700465 12.8102,59.223753 v 0 q 0,55.232181 -30.633,128.101531 -30.633,72.86935 -83.0803,144.34629 v 0 q 3.2489,19.02958 10.6751,27.10555 7.4262,8.16879 19.4937,8.16879 v 0 q 19.0296,0 33.4178,-10.95361 14.3882,-10.86078 36.6667,-37.31653 v 0 q 5.5697,-6.49791 12.5317,-6.49791 z M 1927.5887,45.999131 q -10.6751,0 -24.1351,38.523288 -13.4599,38.523281 -23.6709,95.612011 -10.211,57.08873 -11.1393,109.5361 v 0 q 32.9537,-54.30392 52.4474,-108.88631 19.4937,-54.48956 19.4937,-99.510753 v 0 q 0,-35.274336 -12.9958,-35.274336 z"
opacity="1"
fill="#fff"
mask="url(#mask-marketing-M)"
id="logo-svg"
stroke-width="9.28272"
></path>
</svg>
</a>
<button
id="navbar-toggler-btn"
class="navbar-toggler"
type="button"
data-toggle="collapse"
data-target="#navbarSupportedContent"
aria-controls="navbarSupportedContent"
aria-expanded="false"
aria-label="Toggle navigation"
>
<div class="animated-icon"><span></span><span></span><span></span></div>
</button>
<!-- Collapsible content -->
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav ml-auto text-center">
<li class="nav-item">
<a
class="nav-link"
href="/"
target="_self"
>
<i class="iconfont icon-home-fill"></i>
<span>Home</span>
</a>
</li>
<li class="nav-item">
<a
class="nav-link"
href="/archives/"
target="_self"
>
<i class="iconfont icon-archive-fill"></i>
<span>Archives</span>
</a>
</li>
<li class="nav-item">
<a
class="nav-link"
href="/categories/"
target="_self"
>
<i class="iconfont icon-category-fill"></i>
<span>Categories</span>
</a>
</li>
<li class="nav-item">
<a
class="nav-link"
href="/tags/"
target="_self"
>
<i class="iconfont icon-tags-fill"></i>
<span>Tags</span>
</a>
</li>
<li class="nav-item">
<a
class="nav-link"
href="/about/"
target="_self"
>
<i class="iconfont icon-user-fill"></i>
<span>About</span>
</a>
</li>
<li class="nav-item" id="search-btn">
<a
class="nav-link"
target="_self"
href="javascript:;"
data-toggle="modal"
data-target="#modalSearch"
aria-label="Search"
>
<i class="iconfont icon-search"></i>
</a>
</li>
<li class="nav-item" id="color-toggle-btn">
<a
class="nav-link"
target="_self"
href="javascript:;"
aria-label="Color Toggle"
>
<i class="iconfont icon-dark" id="color-toggle-icon"></i>
</a>
</li>
</ul>
</div>
</div>
</nav>
<div id="banner" class="banner" parallax=true
style="background: url('https://assets.speeddial2.com/themes/62.jpg') no-repeat center center; background-size: cover;">
<div class="full-bg-img">
<div class="mask flex-center" style="background-color: rgba(0, 0, 0, 0.3)">
<div class="banner-text text-center fade-in-up">
<div class="h2">
<span id="subtitle">It's Daniel's Blog, I share things about technology, self-growth and life.</span>
</div>
</div>
</div>
</div>
</div>
</div>
</header>
<main>
<div class="container nopadding-x-md">
<div id="board"
>
<div class="container">
<div class="row">
<div class="col-12 col-md-10 m-auto">
<div class="row mx-auto index-card">
<div class="col-12 col-md-4 m-auto index-img">
<a href="/2024/08/08/How%20I%20Saved%20My%20Work%20Accidentally%20Discarded%20Using%20VSCode/" target="_self">
<img src="https://cdn.danni.cool/file/93a7fcc493d367ddb683c55b7a14ef08.jpg" srcset="/img/loading.gif" lazyload alt="How I Saved My Work Accidentally Discarded Using VSCode">
</a>
</div>
<article class="col-12 col-md-8 mx-auto index-info">
<h2 class="index-header">
<a href="/2024/08/08/How%20I%20Saved%20My%20Work%20Accidentally%20Discarded%20Using%20VSCode/" target="_self">
How I Saved My Work Accidentally Discarded Using VSCode
</a>
</h2>
<a class="index-excerpt " href="/2024/08/08/How%20I%20Saved%20My%20Work%20Accidentally%20Discarded%20Using%20VSCode/" target="_self">
<div>
Today, when I was dealing with my work progress, I accidentally discard all the files I wanted to commit, because part of the code was just compiled locally and didn’t need to submit. At that moment,
</div>
</a>
<div class="index-btm post-metas">
<div class="post-meta mr-3">
<i class="iconfont icon-date"></i>
<time datetime="2024-08-08 14:43" pubdate>
2024-08-08
</time>
</div>
<div class="post-meta mr-3 d-flex align-items-center">
<i class="iconfont icon-category"></i>
<span class="category-chains">
<span class="category-chain">
<a href="/categories/Tech/" class="category-chain-item">Tech</a>
</span>
</span>
</div>
<div class="post-meta">
<i class="iconfont icon-tags"></i>
<a href="/tags/vscode/">#vscode</a>
<a href="/tags/IDE/">#IDE</a>
<a href="/tags/Code-Recovery/">#Code Recovery</a>
</div>
</div>
</article>
</div>
<div class="row mx-auto index-card">
<div class="col-12 col-md-4 m-auto index-img">
<a href="/2023/10/17/Fixed%20the%20broken%20search%20in%20nextjs-notion-starter-kit/" target="_self">
<img src="https://cdn.danni.cool/file/00a39c743f39d5bb828f0f7bd5e20a1e.jpg" srcset="/img/loading.gif" lazyload alt="Fixed the broken search in nextjs-notion-starter-kit">
</a>
</div>
<article class="col-12 col-md-8 mx-auto index-info">
<h2 class="index-header">
<a href="/2023/10/17/Fixed%20the%20broken%20search%20in%20nextjs-notion-starter-kit/" target="_self">
Fixed the broken search in nextjs-notion-starter-kit
</a>
</h2>
<a class="index-excerpt " href="/2023/10/17/Fixed%20the%20broken%20search%20in%20nextjs-notion-starter-kit/" target="_self">
<div>
If your nextjs-notion-starter-kit is v2.0.0 and broken in search
</div>
</a>
<div class="index-btm post-metas">
<div class="post-meta mr-3">
<i class="iconfont icon-date"></i>
<time datetime="2023-10-17 10:06" pubdate>
2023-10-17
</time>
</div>
<div class="post-meta mr-3 d-flex align-items-center">
<i class="iconfont icon-category"></i>
<span class="category-chains">
<span class="category-chain">
<a href="/categories/Tech/" class="category-chain-item">Tech</a>
</span>
</span>
</div>
<div class="post-meta">
<i class="iconfont icon-tags"></i>
<a href="/tags/Next-js/">#Next.js</a>
<a href="/tags/Notion/">#Notion</a>
</div>
</div>
</article>
</div>
<div class="row mx-auto index-card">
<div class="col-12 col-md-4 m-auto index-img">
<a href="/2023/10/15/A%20Simple%20Install%20Test%20Between%20Npm,%20Yarn%20and%20Pnpm/" target="_self">
<img src="https://cdn.danni.cool/file/b3413585214fbe5e53f701d88cd8bdd3.jpg" srcset="/img/loading.gif" lazyload alt="A Simple Install Test Between Npm, Yarn and Pnpm">
</a>
</div>
<article class="col-12 col-md-8 mx-auto index-info">
<h2 class="index-header">
<a href="/2023/10/15/A%20Simple%20Install%20Test%20Between%20Npm,%20Yarn%20and%20Pnpm/" target="_self">
A Simple Install Test Between Npm, Yarn and Pnpm
</a>
</h2>
<a class="index-excerpt " href="/2023/10/15/A%20Simple%20Install%20Test%20Between%20Npm,%20Yarn%20and%20Pnpm/" target="_self">
<div>
Installation size and time between package managers, and some thoughts in Github Actions
</div>
</a>
<div class="index-btm post-metas">
<div class="post-meta mr-3">
<i class="iconfont icon-date"></i>
<time datetime="2023-10-16 00:00" pubdate>
2023-10-16
</time>
</div>
<div class="post-meta mr-3 d-flex align-items-center">
<i class="iconfont icon-category"></i>
<span class="category-chains">
<span class="category-chain">
<a href="/categories/Tech/" class="category-chain-item">Tech</a>
</span>
</span>
</div>
<div class="post-meta">
<i class="iconfont icon-tags"></i>
<a href="/tags/Yarn/">#Yarn</a>
<a href="/tags/Pnpm/">#Pnpm</a>
<a href="/tags/Github-Actions/">#Github Actions</a>
</div>
</div>
</article>
</div>
<div class="row mx-auto index-card">
<div class="col-12 col-md-4 m-auto index-img">
<a href="/2019/09/30/%E5%9F%BA%E4%BA%8E%E5%A4%9A%E9%A1%B5%E9%A1%B9%E7%9B%AE%E7%9A%84%E5%BE%AE%E5%89%8D%E7%AB%AF%E6%94%B9%E9%80%A0/" target="_self">
<img src="https://cdn.danni.cool/file/5cd81a818b6f486682136aa0ba70b440.jpg" srcset="/img/loading.gif" lazyload alt="基于多页项目的微前端改造">
</a>
</div>
<article class="col-12 col-md-8 mx-auto index-info">
<h2 class="index-header">
<a href="/2019/09/30/%E5%9F%BA%E4%BA%8E%E5%A4%9A%E9%A1%B5%E9%A1%B9%E7%9B%AE%E7%9A%84%E5%BE%AE%E5%89%8D%E7%AB%AF%E6%94%B9%E9%80%A0/" target="_self">
基于多页项目的微前端改造
</a>
</h2>
<a class="index-excerpt " href="/2019/09/30/%E5%9F%BA%E4%BA%8E%E5%A4%9A%E9%A1%B5%E9%A1%B9%E7%9B%AE%E7%9A%84%E5%BE%AE%E5%89%8D%E7%AB%AF%E6%94%B9%E9%80%A0/" target="_self">
<div>
微前端是一种适合超大型后台项目的架构,本文是一些实现实践
</div>
</a>
<div class="index-btm post-metas">
<div class="post-meta mr-3">
<i class="iconfont icon-date"></i>
<time datetime="2019-09-30 08:00" pubdate>
2019-09-30
</time>
</div>
<div class="post-meta mr-3 d-flex align-items-center">
<i class="iconfont icon-category"></i>
<span class="category-chains">
<span class="category-chain">
<a href="/categories/Tech/" class="category-chain-item">Tech</a>
</span>
</span>
</div>
<div class="post-meta">
<i class="iconfont icon-tags"></i>
<a href="/tags/single-spa/">#single-spa</a>
<a href="/tags/Micro-Frontends/">#Micro-Frontends</a>
</div>
</div>
</article>
</div>
<div class="row mx-auto index-card">
<div class="col-12 col-md-4 m-auto index-img">
<a href="/2019/09/05/G2%E5%AE%9E%E7%8E%B0%E5%A4%A7%E6%95%B0%E6%8D%AE%E5%B1%95%E7%A4%BA%E6%A8%A1%E5%9D%97/" target="_self">
<img src="https://cdn.danni.cool/file/da30d0efd7373b2f8b5e0e19d4a1981c.jpg" srcset="/img/loading.gif" lazyload alt="G2实现大数据展示模块">
</a>
</div>
<article class="col-12 col-md-8 mx-auto index-info">
<h2 class="index-header">
<a href="/2019/09/05/G2%E5%AE%9E%E7%8E%B0%E5%A4%A7%E6%95%B0%E6%8D%AE%E5%B1%95%E7%A4%BA%E6%A8%A1%E5%9D%97/" target="_self">
G2实现大数据展示模块
</a>
</h2>
<a class="index-excerpt " href="/2019/09/05/G2%E5%AE%9E%E7%8E%B0%E5%A4%A7%E6%95%B0%E6%8D%AE%E5%B1%95%E7%A4%BA%E6%A8%A1%E5%9D%97/" target="_self">
<div>
一次恶补正太分布函数和用G2 api画图的崎岖历程
</div>
</a>
<div class="index-btm post-metas">
<div class="post-meta mr-3">
<i class="iconfont icon-date"></i>
<time datetime="2019-09-06 00:00" pubdate>
2019-09-06
</time>
</div>
<div class="post-meta mr-3 d-flex align-items-center">
<i class="iconfont icon-category"></i>
<span class="category-chains">
<span class="category-chain">
<a href="/categories/Tech/" class="category-chain-item">Tech</a>
</span>
</span>
</div>
<div class="post-meta">
<i class="iconfont icon-tags"></i>
<a href="/tags/G2/">#G2</a>
<a href="/tags/Canvas/">#Canvas</a>
<a href="/tags/SVG/">#SVG</a>
</div>
</div>
</article>
</div>
</div>
</div>
</div>
</div>
</div>
<a id="scroll-top-button" aria-label="TOP" href="#" role="button">
<i class="iconfont icon-arrowup" aria-hidden="true"></i>
</a>
<div class="modal fade" id="modalSearch" tabindex="-1" role="dialog" aria-labelledby="ModalLabel"
aria-hidden="true">
<div class="modal-dialog modal-dialog-scrollable modal-lg" role="document">
<div class="modal-content">
<div class="modal-header text-center">
<h4 class="modal-title w-100 font-weight-bold">Search</h4>
<button type="button" id="local-search-close" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body mx-3">
<div class="md-form mb-5">
<input type="text" id="local-search-input" class="form-control validate">
<label data-error="x" data-success="v" for="local-search-input">Keyword</label>
</div>
<div class="list-group" id="local-search-result"></div>
</div>
</div>
</div>
</div>
</main>
<footer>
<div class="footer-inner">
<div class="footer-content">
<div class="copyright-info">All Copyright <a target="_blank" rel="noopener" href="//danni.cool">©️danni.cool</a> Reserved. 2019 - 2024</div>
<ul class="footer-other-info"><li><i class="m-iconfont icon-link"></i><a href="/links">Friend Links</a></li></ul>
</div>
</div>
</footer>
<!-- Scripts -->
<script src="https://lib.baomitu.com/nprogress/0.2.0/nprogress.min.js" ></script>
<link rel="stylesheet" href="https://lib.baomitu.com/nprogress/0.2.0/nprogress.min.css" />
<script>
NProgress.configure({"showSpinner":false,"trickleSpeed":100})
NProgress.start()
window.addEventListener('load', function() {
NProgress.done();
})
</script>
<script src="https://lib.baomitu.com/jquery/3.6.4/jquery.min.js" ></script>
<script src="https://lib.baomitu.com/twitter-bootstrap/4.6.1/js/bootstrap.min.js" ></script>
<script src="/js/events.js" ></script>
<script src="/js/plugins.js" ></script>
<script src="/js/img-lazyload.js" ></script>
<script src="/js/local-search.js" ></script>
<!-- 主题的启动项,将它保持在最底部 -->
<!-- the boot of the theme, keep it at the bottom -->
<script src="/js/boot.js" ></script>
<noscript>
<div class="noscript-warning">Blog works best with JavaScript enabled</div>
</noscript>
</body>
</html>