Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Dashboards
Tabler
提交
c34031ff
T
Tabler
项目概览
Dashboards
/
Tabler
11 个月 前同步成功
通知
0
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
Tabler
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
c34031ff
编写于
2月 20, 2020
作者:
C
codecalm
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
maps components, mapbox, small fixes
上级
1cacc9ed
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
77 addition
and
75 deletion
+77
-75
pages/_data/maps-vector.yml
pages/_data/maps-vector.yml
+15
-0
pages/_data/maps.yml
pages/_data/maps.yml
+0
-13
pages/_includes/ui/map-vector.html
pages/_includes/ui/map-vector.html
+44
-0
pages/_includes/ui/map.html
pages/_includes/ui/map.html
+0
-44
pages/maps-vector.html
pages/maps-vector.html
+18
-0
pages/maps.html
pages/maps.html
+0
-18
未找到文件。
pages/_data/maps-vector.yml
0 → 100644
浏览文件 @
c34031ff
world
:
title
:
World map
map
:
world_en
color
:
blue
values
:
'
{"af":16,
"al":11,
"dz":158,
"ao":85,
"ag":1,
"ar":351,
"am":8,
"au":1219,
"at":366,
"az":52,
"bs":7,
"bh":21,
"bd":105,
"bb":3,
"by":52,
"be":461,
"bz":1,
"bj":6,
"bt":1,
"bo":19,
"ba":16,
"bw":12,
"br":2023,
"bn":11,
"bg":44,
"bf":8,
"bi":1,
"kh":11,
"cm":21,
"ca":1563,
"cv":1,
"cf":2,
"td":7,
"cl":199,
"cn":5745,
"co":283,
"km":0,
"cd":12,
"cg":11,
"cr":35,
"ci":22,
"hr":59,
"cy":22,
"cz":195,
"dk":304,
"dj":1,
"dm":0,
"do":50,
"ec":61,
"eg":216,
"sv":21,
"gq":14,
"er":2,
"ee":19,
"et":30,
"fj":3,
"fi":231,
"fr":2555,
"ga":12,
"gm":1,
"ge":11,
"de":3305,
"gh":18,
"gr":305,
"gd":0,
"gt":40,
"gn":4,
"gw":0,
"gy":2,
"ht":6,
"hn":15,
"hk":226,
"hu":132,
"is":12,
"in":1430,
"id":695,
"ir":337,
"iq":84,
"ie":204,
"il":201,
"it":2036,
"jm":13,
"jp":5390,
"jo":27,
"kz":129,
"ke":32,
"ki":0,
"kr":986,
"undefined":5,
"kw":117,
"kg":4,
"la":6,
"lv":23,
"lb":39,
"ls":1,
"lr":0,
"ly":77,
"lt":35,
"lu":52,
"mk":9,
"mg":8,
"mw":5,
"my":218,
"mv":1,
"ml":9,
"mt":7,
"mr":3,
"mu":9,
"mx":1004,
"md":5,
"mn":5,
"me":3,
"ma":91,
"mz":10,
"mm":35,
"na":11,
"np":15,
"nl":770,
"nz":138,
"ni":6,
"ne":5,
"ng":206,
"no":413,
"om":53,
"pk":174,
"pa":27,
"pg":8,
"py":17,
"pe":153,
"ph":189,
"pl":438,
"pt":223,
"qa":126,
"ro":158,
"ru":1476,
"rw":5,
"ws":0,
"st":0,
"sa":434,
"sn":12,
"rs":38,
"sc":0,
"sl":1,
"sg":217,
"sk":86,
"si":46,
"sb":0,
"za":354,
"es":1374,
"lk":48,
"kn":0,
"lc":1,
"vc":0,
"sd":65,
"sr":3,
"sz":3,
"se":444,
"ch":522,
"sy":59,
"tw":426,
"tj":5,
"tz":22,
"th":312,
"tl":0,
"tg":3,
"to":0,
"tt":21,
"tn":43,
"tr":729,
"tm":0,
"ug":17,
"ua":136,
"ae":239,
"gb":2258,
"us":4624,
"uy":40,
"uz":37,
"vu":0,
"ve":285,
"vn":101,
"ye":30,
"zm":15,
"zw":5}'
europe
:
title
:
Map of Europe
map
:
europe_en
zoom
:
true
usa
:
title
:
Map of USA
map
:
usa_en
pages/_data/maps.yml
浏览文件 @
c34031ff
world
:
title
:
World map
map
:
world_en
values
:
'
{"af":16,
"al":11,
"dz":158,
"ao":85,
"ag":1,
"ar":351,
"am":8,
"au":1219,
"at":366,
"az":52,
"bs":7,
"bh":21,
"bd":105,
"bb":3,
"by":52,
"be":461,
"bz":1,
"bj":6,
"bt":1,
"bo":19,
"ba":16,
"bw":12,
"br":2023,
"bn":11,
"bg":44,
"bf":8,
"bi":1,
"kh":11,
"cm":21,
"ca":1563,
"cv":1,
"cf":2,
"td":7,
"cl":199,
"cn":5745,
"co":283,
"km":0,
"cd":12,
"cg":11,
"cr":35,
"ci":22,
"hr":59,
"cy":22,
"cz":195,
"dk":304,
"dj":1,
"dm":0,
"do":50,
"ec":61,
"eg":216,
"sv":21,
"gq":14,
"er":2,
"ee":19,
"et":30,
"fj":3,
"fi":231,
"fr":2555,
"ga":12,
"gm":1,
"ge":11,
"de":3305,
"gh":18,
"gr":305,
"gd":0,
"gt":40,
"gn":4,
"gw":0,
"gy":2,
"ht":6,
"hn":15,
"hk":226,
"hu":132,
"is":12,
"in":1430,
"id":695,
"ir":337,
"iq":84,
"ie":204,
"il":201,
"it":2036,
"jm":13,
"jp":5390,
"jo":27,
"kz":129,
"ke":32,
"ki":0,
"kr":986,
"undefined":5,
"kw":117,
"kg":4,
"la":6,
"lv":23,
"lb":39,
"ls":1,
"lr":0,
"ly":77,
"lt":35,
"lu":52,
"mk":9,
"mg":8,
"mw":5,
"my":218,
"mv":1,
"ml":9,
"mt":7,
"mr":3,
"mu":9,
"mx":1004,
"md":5,
"mn":5,
"me":3,
"ma":91,
"mz":10,
"mm":35,
"na":11,
"np":15,
"nl":770,
"nz":138,
"ni":6,
"ne":5,
"ng":206,
"no":413,
"om":53,
"pk":174,
"pa":27,
"pg":8,
"py":17,
"pe":153,
"ph":189,
"pl":438,
"pt":223,
"qa":126,
"ro":158,
"ru":1476,
"rw":5,
"ws":0,
"st":0,
"sa":434,
"sn":12,
"rs":38,
"sc":0,
"sl":1,
"sg":217,
"sk":86,
"si":46,
"sb":0,
"za":354,
"es":1374,
"lk":48,
"kn":0,
"lc":1,
"vc":0,
"sd":65,
"sr":3,
"sz":3,
"se":444,
"ch":522,
"sy":59,
"tw":426,
"tj":5,
"tz":22,
"th":312,
"tl":0,
"tg":3,
"to":0,
"tt":21,
"tn":43,
"tr":729,
"tm":0,
"ug":17,
"ua":136,
"ae":239,
"gb":2258,
"us":4624,
"uy":40,
"uz":37,
"vu":0,
"ve":285,
"vn":101,
"ye":30,
"zm":15,
"zw":5}'
europe
:
title
:
Map of Europe
map
:
europe_en
zoom
:
true
usa
:
title
:
Map of USA
map
:
usa_en
pages/_includes/ui/map-vector.html
0 → 100644
浏览文件 @
c34031ff
{% assign id = include.map-id %}
{% assign height = include.height | default: 20 %}
{% assign data = site.data.maps[id] %}
{% assign color = include.color | default: data.color | default: 'green' %}
{% if data %}
<div
id=
"map-{{ id }}"
style=
"height: {{ height }}rem"
></div>
{% append_lib jqvmap %}
{% capture script %}
<script>
{
%
if
jekyll
.
environment
==
'
development
'
%
}
window
.
tabler_map
=
window
.
tabler_map
||
{};{
%
endif
%
}
document
.
addEventListener
(
"
DOMContentLoaded
"
,
function
()
{
{
%
if
jekyll
.
environment
==
'
development
'
%
}
window
.
tabler_map
[
"
map-{{ id }}
"
]
=
{
%
endif
%
}
$
(
'
#map-{{ id }}
'
).
vectorMap
({
map
:
'
{{ data.map }}
'
,
backgroundColor
:
'
transparent
'
,
color
:
'
rgba(120, 130, 140, .1)
'
,
borderColor
:
'
transparent
'
,
{
%
if
data
.
zoom
%
}
enableZoom
:
true
,{
%
endif
%
}
{
%
if
data
.
values
%
}
{
%
assign
color
-
light
=
color
|
append
:
"
-100
"
%
}
scaleColors
:
[
"
{{ color | tabler_color: '100' }}
"
,
"
{{ color | tabler_color }}
"
],
normalizeFunction
:
'
polynomial
'
,
values
:
(
chart_data
=
{{
data
.
values
}}),
onLabelShow
:
function
(
event
,
label
,
code
)
{
if
(
chart_data
[
code
]
>
0
)
{
label
.
append
(
'
: <strong>
'
+
chart_data
[
code
]
+
'
</strong>
'
);
}
},
{
%
endif
%
}
});
});
</script>
{% endcapture %}
{% if include.show-scripts %}
{{ script }}
{% else %}
{% capture_global scripts %}
{{ script }}
{% endcapture_global %}
{% endif %}
{% endif %}
pages/_includes/ui/map.html
浏览文件 @
c34031ff
{% assign id = include.map-id %}
{% assign height = include.height | default: 20 %}
{% assign data = site.data.maps[id] %}
{% assign color = include.color | default: data.color | default: 'green' %}
{% if data %}
<div
id=
"map-{{ id }}"
style=
"height: {{ height }}rem"
></div>
{% append_lib jqvmap %}
{% capture script %}
<script>
{
%
if
jekyll
.
environment
==
'
development
'
%
}
window
.
tabler_map
=
window
.
tabler_map
||
{};{
%
endif
%
}
document
.
addEventListener
(
"
DOMContentLoaded
"
,
function
()
{
{
%
if
jekyll
.
environment
==
'
development
'
%
}
window
.
tabler_map
[
"
map-{{ id }}
"
]
=
{
%
endif
%
}
$
(
'
#map-{{ id }}
'
).
vectorMap
({
map
:
'
{{ data.map }}
'
,
backgroundColor
:
'
transparent
'
,
color
:
'
rgba(120, 130, 140, .1)
'
,
borderColor
:
'
transparent
'
,
{
%
if
data
.
zoom
%
}
enableZoom
:
true
,{
%
endif
%
}
{
%
if
data
.
values
%
}
{
%
assign
color
-
light
=
color
|
append
:
"
-100
"
%
}
scaleColors
:
[
"
{{ color | tabler_color: '100' }}
"
,
"
{{ color | tabler_color }}
"
],
normalizeFunction
:
'
polynomial
'
,
values
:
(
chart_data
=
{{
data
.
values
}}),
onLabelShow
:
function
(
event
,
label
,
code
)
{
if
(
chart_data
[
code
]
>
0
)
{
label
.
append
(
'
: <strong>
'
+
chart_data
[
code
]
+
'
</strong>
'
);
}
},
{
%
endif
%
}
});
});
</script>
{% endcapture %}
{% if include.show-scripts %}
{{ script }}
{% else %}
{% capture_global scripts %}
{{ script }}
{% endcapture_global %}
{% endif %}
{% endif %}
pages/maps-vector.html
0 → 100644
浏览文件 @
c34031ff
---
title: Maps
page-header: Maps
---
<div
class=
"row"
>
{% for map in site.data.maps %}
<div
class=
"col-lg-6"
>
<div
class=
"card"
>
<div
class=
"card-body"
>
{% assign id = map[0] %}
{% include ui/map-vector.html map-id=id %}
</div>
</div>
</div>
{% endfor %}
</div>
pages/maps.html
浏览文件 @
c34031ff
---
title: Maps
page-header: Maps
---
<div
class=
"row"
>
{% for map in site.data.maps %}
<div
class=
"col-lg-6"
>
<div
class=
"card"
>
<div
class=
"card-body"
>
{% assign id = map[0] %}
{% include ui/map.html map-id=id %}
</div>
</div>
</div>
{% endfor %}
</div>
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录