Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Dashboards
Tabler
提交
04488c40
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,发现更多精彩内容 >>
提交
04488c40
编写于
10月 22, 2019
作者:
C
codecalm
提交者:
Alex Safian
10月 31, 2019
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
maps data
上级
30388d2e
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
40 addition
and
1 deletion
+40
-1
pages/_data/maps.yml
pages/_data/maps.yml
+1
-0
pages/_includes/cards/map.html
pages/_includes/cards/map.html
+12
-0
pages/_includes/layout/homepage.html
pages/_includes/layout/homepage.html
+7
-0
pages/_includes/ui/map.html
pages/_includes/ui/map.html
+12
-1
scss/vendor/_jqvmap.scss
scss/vendor/_jqvmap.scss
+8
-0
未找到文件。
pages/_data/maps.yml
浏览文件 @
04488c40
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
...
...
pages/_includes/cards/map.html
0 → 100644
浏览文件 @
04488c40
{% assign map = include.map | default: "world" %}
<div
class=
"card"
>
{% if include.title %}
<div
class=
"card-header"
>
<h3
class=
"card-title"
>
{{ include.title }}
</h3>
</div>
{% endif %}
<div
class=
"card-body"
>
{% include ui/map.html map=map color="blue" %}
</div>
</div>
pages/_includes/layout/homepage.html
浏览文件 @
04488c40
...
...
@@ -49,6 +49,13 @@
</div>
</div>
<div
class=
"col-md-6"
>
</div>
<div
class=
"col-md-6"
>
{% include cards/map.html title="Top users" %}
</div>
<div
class=
"col-6 col-sm-4 col-lg-2"
>
{% include cards/small-stats-3.html number=43 title="New Tickets" percentage=6 %}
</div>
...
...
pages/_includes/ui/map.html
浏览文件 @
04488c40
{% assign id = include.map %}
{% 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>
...
...
@@ -10,8 +11,18 @@
map
:
'
{{ data.map }}
'
,
backgroundColor
:
'
transparent
'
,
color
:
'
rgba(120, 130, 140, .1)
'
,
borderColor
:
'
transparent
'
,
borderColor
:
'
transparent
'
,
{
%
if
data
.
zoom
%
}
enableZoom
:
true
,{
%
endif
%
}
{
%
if
data
.
values
%
}
scaleColors
:
[
tabler
.
colorVariation
(
'
{{ color }}
'
,
'
lightest
'
),
tabler
.
colors
.{{
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>
...
...
scss/vendor/_jqvmap.scss
浏览文件 @
04488c40
...
...
@@ -15,3 +15,11 @@
.jqvmap-zoomout
{
top
:
2rem
;
}
.jqvmap-label
{
font-family
:
inherit
;
font-size
:
$h6-font-size
;
line-height
:
1
;
padding
:
.25rem
;
background
:
$dark
;
}
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录