-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
549 lines (397 loc) · 14.4 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>bull3的博客</title>
<meta name="keywords" content="">
<meta name="description" content="bull3的博客">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<meta name="description" content="描述">
<meta name="keywords" content="前端,后端">
<meta property="og:type" content="article">
<meta property="og:title" content="从源码构建Grafana (只针对windows系统)">
<meta property="og:url" content="https://bull3.xyz/2019/12/04/grafana/index.html">
<meta property="og:site_name" content="bull3的博客">
<meta property="og:description" content="描述">
<meta property="og:locale" content="zh">
<meta property="og:updated_time" content="2020-05-22T09:33:56.300Z">
<meta name="twitter:card" content="summary">
<link rel="icon" href="/img/avatar.jpg">
<link href="/css/style.css?v=1.0.1" rel="stylesheet">
<link href="/css/hl_theme/atom-dark.css?v=1.0.1" rel="stylesheet">
<link href="//cdn.bootcss.com/animate.css/3.5.2/animate.min.css" rel="stylesheet">
<link href="//cdn.bootcss.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet">
<script src="//cdn.bootcss.com/jquery/2.2.4/jquery.min.js"></script>
<script src="/js/jquery.autocomplete.min.js?v=1.0.1" ></script>
<script src="//cdn.bootcss.com/highlight.js/9.12.0/highlight.min.js"></script>
<script>
hljs.initHighlightingOnLoad();
</script>
<script src="//cdn.bootcss.com/nprogress/0.2.0/nprogress.min.js"></script>
<script src="//cdn.bootcss.com/jquery-cookie/1.4.1/jquery.cookie.min.js" ></script>
<script src="/js/iconfont.js?v=1.0.1" ></script>
</head>
<div style="display: none">
<input class="theme_disqus_on" value="false">
<input class="theme_preload_comment" value="false">
<input class="theme_blog_path" value="">
</div>
<body>
<aside class="nav mobile">
<div class="nav-left">
<a href="/" class="avatar_target">
<img class="avatar" src="/img/avatar.jpg" />
</a>
<div class="author">
<span>Bob shen</span>
</div>
<div class="icon">
<a title="github" href="https://github.com/Bull3" target="_blank">
<svg class="iconfont-svg" aria-hidden="true">
<use xlink:href="#icon-github"></use>
</svg>
</a>
<a title="zhihu" href="https://www.zhihu.com/people/zi-yuan-4-78/activities" target="_blank">
<svg class="iconfont-svg" aria-hidden="true">
<use xlink:href="#icon-zhihu"></use>
</svg>
</a>
<a title="qq" href="http://wpa.qq.com/msgrd?v=3&uin=1019067334&site=qq&menu=yes" target="_blank">
<svg class="iconfont-svg" aria-hidden="true">
<use xlink:href="#icon-qq"></use>
</svg>
</a>
<a title="email" href="mailto:1019067334@qq.com" target="_blank">
<svg class="iconfont-svg" aria-hidden="true">
<use xlink:href="#icon-email"></use>
</svg>
</a>
</div>
<a class="more-menus">更多菜单</a>
<ul>
<li><div class="all active">全部文章<small>(2)</small></div></li>
<li><div data-rel="全栈类">全栈类<small>(1)</small></div>
</li>
<li><div data-rel="前端类">前端类<small>(1)</small></div>
</li>
</ul>
<div class="left-bottom">
<div class="menus">
<a class="dynamic-menu " target="_blank" href="https://github.com/Bull3">github</a>
</div>
<div></div>
</div>
<input type="hidden" id="yelog_site_posts_number" value="2">
<div style="display: none">
<span id="busuanzi_value_site_uv"></span>
<span id="busuanzi_value_site_pv"></span>
</div>
</div>
<div class="nav-right">
<div class="friends-area">
<div class="friends-title">
友情链接
<i class="back-title-list"></i>
</div>
<div class="friends-content">
<ul>
</ul>
</div>
</div>
<div class="title-list">
<form onkeydown="if(event.keyCode==13){return false;}">
<input class="search" type="text" placeholder="Search..." autocomplete="off"id="local-search-input" >
<i class="cross"></i>
<span>
<label for="tagswitch">Tags:</label>
<input id="tagswitch" type="checkbox" style="display: none" />
<i id="tagsWitchIcon"></i>
</span>
</form>
<div class="tags-list">
<li class="article-tag-list-item">
<a class="color3">前端</a>
</li>
<li class="article-tag-list-item">
<a class="color3">后端</a>
</li>
<div class="clearfix"></div>
</div>
<nav id="title-list-nav">
<a class="全栈类 "
href="/2019/12/04/grafana/"
data-tag="前端,后端"
data-author="" >
<span class="post-title" title="从源码构建Grafana (只针对windows系统)">从源码构建Grafana (只针对windows系统)</span>
<span class="post-date" title="2019-12-04 14:46:37">2019/12/04</span>
</a>
<a class="前端类 "
href="/2019/12/03/secondPack/"
data-tag="前端"
data-author="" >
<span class="post-title" title="基于Vue + Element的二次封装之旅">基于Vue + Element的二次封装之旅</span>
<span class="post-date" title="2019-12-03 17:18:05">2019/12/03</span>
</a>
</nav>
</div>
</div>
<div class="hide-list">
<div class="semicircle">
<div class="brackets first"><</div>
<div class="brackets">></div>
</div>
</div>
</aside>
<div class="post index">
<div class="pjax">
<article class="index">
<div class="toc-ref">
<style>
.left-col .switch-btn,
.left-col .switch-area {
display: none;
}
.toc-level-3 i,
.toc-level-3 ol {
display: none !important;
}
</style>
</div>
<p>以前端知识为主要内容, 对编码知识, 工程知识以及计算机知识的总结</p>
<p>到目前为止已经写了<code class="article_number"></code>篇文章, 共<code class="site_word_count"></code>字。</p>
<p>本站访问人数:<code class="site_uv"></code>人次 , 访问量:<code class="site_pv"></code>次</p>
<ul>
<li><a href='http://yelog.org/2017/03/24/3-hexo-shortcuts/' target="_blank" rel="noopener">页面全局快捷键</a></li>
</ul>
</article>
<p>
<a class="dashang" onclick="dashangToggle()">赏</a>
</p>
<div id="comments"></div>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/gitalk@1/dist/gitalk.css">
<script type="text/javascript">
$.getScript('/js/gitalk.js', function () {
var gitalk = new Gitalk({
clientID: '26486a96033dce47fdda',
clientSecret: '72f2b3d5bc8bf804fc1fab73554a23d7e6bc51d3',
repo: 'Bull3.github.io',
owner: 'Bull3',
admin: ['Bull3'],
id: decodeURI(location.pathname),
distractionFreeMode: 'true',
language: 'zh-CN',
perPage: parseInt('10',10)
})
gitalk.render('comments')
})
</script>
</div>
<div class="copyright">
<p class="footer-entry">©2016 2019 Bob Shen</p>
<!-- <p class="footer-entry">Built with <a href="https://hexo.io/" target="_blank">Hexo</a> and <a href="https://github.com/yelog/hexo-theme-3-hexo" target="_blank">3-hexo</a> theme</p> -->
</div>
<div class="full-toc">
<button class="full"><span class="min "></span></button>
<button class="post-toc-menu"><span class="post-toc-menu-icons"></span></button>
<div class="post-toc"><span class="post-toc-title">目录</span>
<div class="post-toc-content">
</div>
</div>
<a class="" id="rocket" ></a>
</div>
</div>
<div class="acParent"></div>
<div class="hide_box" onclick="dashangToggle()"></div>
<div class="shang_box">
<a class="shang_close" onclick="dashangToggle()">×</a>
<div class="shang_tit">
<p>喜欢就点赞,疼爱就打赏</p>
</div>
<div class="shang_payimg">
<div class="pay_img">
<img src="/img/alipay.jpg" class="alipay" title="扫码支持">
<img src="/img/weixin.jpg" class="weixin" title="扫码支持">
</div>
</div>
<div class="shang_payselect">
<span><label><input type="radio" name="pay" checked value="alipay">支付宝</label></span><span><label><input type="radio" name="pay" value="weixin">微信</label></span>
</div>
</div>
</body>
<script src="/js/jquery.pjax.js?v=1.0.1" ></script>
<script src="/js/script.js?v=1.0.1" ></script>
<script>
var img_resize = 'default';
/*作者、标签的自动补全*/
$(function () {
$('.search').AutoComplete({
'data': ['#前端','#后端',],
'itemHeight': 20,
'width': 418
}).AutoComplete('show');
})
function initArticle() {
/*渲染对应的表格样式*/
$(".post .pjax table").addClass("green_title");
/*渲染打赏样式*/
$("input[name=pay]").on("click", function () {
if($("input[name=pay]:checked").val()=="weixin"){
$(".shang_box .shang_payimg .pay_img").addClass("weixin_img");
} else {
$(".shang_box .shang_payimg .pay_img").removeClass("weixin_img");
}
})
/*高亮代码块行号*/
$('pre code').each(function(){
var lines = $(this).text().split('\n').length - 1, widther='';
if (lines>99) {
widther = 'widther'
}
var $numbering = $('<ul/>').addClass('pre-numbering ' + widther).attr("unselectable","on");
$(this).addClass('has-numbering ' + widther)
.parent()
.append($numbering);
for(var i=1;i<=lines;i++){
$numbering.append($('<li/>').text(i));
}
});
/*访问数量*/
$.getScript("//busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js");
/*代码高亮,行号对齐*/
$('.pre-numbering').css('line-height',$('.has-numbering').css('line-height'));
}
/*打赏页面隐藏与展示*/
function dashangToggle() {
$(".shang_box").fadeToggle();
$(".hide_box").fadeToggle();
}
</script>
<!--加入行号的高亮代码块样式-->
<style>
pre{
position: relative;
margin-bottom: 24px;
border-radius: 10px;
border: 1px solid #e2dede;
background: #FFF;
overflow: hidden;
}
code.has-numbering{
margin-left: 30px;
}
code.has-numbering.widther{
margin-left: 35px;
}
.pre-numbering{
margin: 0px;
position: absolute;
top: 0;
left: 0;
width: 20px;
padding: 0.5em 3px 0.7em 5px;
border-right: 1px solid #C3CCD0;
text-align: right;
color: #AAA;
background-color: ;
}
.pre-numbering.widther {
width: 35px;
}
</style>
<!--自定义样式设置-->
<style>
.nav {
width: 542px;
}
.nav.fullscreen {
margin-left: -542px;
}
.nav-left {
width: 120px;
}
@media screen and (max-width: 1468px) {
.nav {
width: 492px;
}
.nav.fullscreen {
margin-left: -492px;
}
.nav-left {
width: 100px;
}
}
@media screen and (max-width: 1024px) {
.nav {
width: 492px;
margin-left: -492px
}
.nav.fullscreen {
margin-left: 0;
}
.nav .hide-list.fullscreen {
left: 492px
}
}
@media screen and (max-width: 426px) {
.nav {
width: 100%;
}
.nav-left {
width: 100%;
}
}
.nav-right .title-list nav a .post-title, .nav-right .title-list #local-search-result a .post-title {
color: #383636;
}
.nav-right .title-list nav a .post-date, .nav-right .title-list #local-search-result a .post-date {
color: #5e5e5f;
}
.nav-right nav a.hover, #local-search-result a.hover{
background-color: #e2e0e0;
}
/*列表样式*/
.post .pjax article .article-entry>ol, .post .pjax article .article-entry>ul, .post .pjax article>ol, .post .pjax article>ul{
border: #e2dede solid 1px;
border-radius: 10px;
padding: 10px 32px 10px 56px;
}
.post .pjax article .article-entry li>ol, .post .pjax article .article-entry li>ul,.post .pjax article li>ol, .post .pjax article li>ul{
padding-top: 5px;
padding-bottom: 5px;
}
.post .pjax article .article-entry>ol>li, .post .pjax article .article-entry>ul>li,.post .pjax article>ol>li, .post .pjax article>ul>li{
margin-bottom: auto;
margin-left: auto;
}
.post .pjax article .article-entry li>ol>li, .post .pjax article .article-entry li>ul>li,.post .pjax article li>ol>li, .post .pjax article li>ul>li{
margin-bottom: auto;
margin-left: auto;
}
/* 背景图样式 */
/*引用块样式*/
/*文章列表背景图*/
.nav-right:before {
content: ' ';
display: block;
position: absolute;
left: 0;
top: 0;
width: 100%;
height: 100%;
opacity: 0.3;
background: url("https://i.loli.net/2019/07/22/5d3521411f3f169375.png");
background-repeat: no-repeat;
background-position: 50% 0;
-ms-background-size: cover;
-o-background-size: cover;
-moz-background-size: cover;
-webkit-background-size: cover;
background-size: cover;
}
</style>
<div class="mobile-menus-out" >
</div>
<div class="mobile-menus">
<a class="dynamic-menu " target="_blank" href="https://github.com/Bull3">github</a>
</div>
</html>