Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
FLIPPED-AURORA
gin-vue-admin
提交
f6313724
G
gin-vue-admin
项目概览
FLIPPED-AURORA
/
gin-vue-admin
大约 1 年 前同步成功
通知
333
Star
18155
Fork
5506
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
G
gin-vue-admin
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
f6313724
编写于
4月 26, 2020
作者:
G
Granty1
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Add some github information
上级
ab6b15b9
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
208 addition
and
8 deletion
+208
-8
web/package.json
web/package.json
+2
-1
web/src/api/github.js
web/src/api/github.js
+31
-0
web/src/assets/flipped-aurora.png
web/src/assets/flipped-aurora.png
+0
-0
web/src/main.js
web/src/main.js
+3
-0
web/src/view/test/index.vue
web/src/view/test/index.vue
+172
-7
未找到文件。
web/package.json
浏览文件 @
f6313724
...
...
@@ -27,7 +27,8 @@
"vue-router"
:
"^3.1.3"
,
"vuescroll"
:
"^4.14.4"
,
"vuex"
:
"^3.1.1"
,
"vuex-persist"
:
"^2.1.0"
"vuex-persist"
:
"^2.1.0"
,
"timeline-vuejs"
:
"1.1.1"
},
"devDependencies"
:
{
"@vue/cli-plugin-babel"
:
"^3.11.0"
,
...
...
web/src/api/github.js
0 → 100644
浏览文件 @
f6313724
import
axios
from
"
axios
"
;
import
{
Loading
}
from
"
element-ui
"
;
let
loadingInstance
;
let
service
=
axios
.
create
();
service
.
interceptors
.
request
.
use
((
config
)
=>
{
loadingInstance
=
Loading
.
service
({
fullscreen
:
true
});
return
config
;
});
service
.
interceptors
.
response
.
use
((
resp
)
=>
{
loadingInstance
.
close
();
return
resp
;
});
export
function
Commits
(
page
)
{
return
service
({
url
:
"
https://api.github.com/repos/flipped-aurora/gin-vue-admin/commits?page=
"
+
page
,
method
:
"
get
"
,
});
}
export
function
Members
()
{
return
service
({
url
:
"
https://api.github.com/orgs/FLIPPED-AURORA/members
"
,
method
:
"
get
"
,
});
}
web/src/assets/flipped-aurora.png
0 → 100644
浏览文件 @
f6313724
8.0 KB
web/src/main.js
浏览文件 @
f6313724
...
...
@@ -14,6 +14,9 @@ import vueParticleLine from 'vue-particle-line'
import
'
vue-particle-line/dist/vue-particle-line.css
'
Vue
.
use
(
vueParticleLine
)
// time line css
import
'
../node_modules/timeline-vuejs/dist/timeline-vuejs.css
'
// 富文本插件
import
VueQuillEditor
from
'
vue-quill-editor
'
import
'
quill/dist/quill.core.css
'
...
...
web/src/view/test/index.vue
浏览文件 @
f6313724
<
template
>
<div>
动态路由测试
</div>
<div>
<el-row
:gutter=
"10"
>
<el-col
:span=
"12"
>
<el-card>
<div
slot=
"header"
>
gin-vue-admin
</div>
<div>
<el-row>
<el-col
:span=
"8"
:offset=
"8"
>
<a
href=
"https://github.com/flipped-aurora/gin-vue-admin"
>
<img
class=
"org-img dom-center"
src=
"@/assets/logo.png"
alt=
"gin-vue-admin"
/>
</a>
</el-col>
</el-row>
<el-row
:gutter=
"10"
>
<el-col
:span=
"8"
>
<a
href=
"https://github.com/flipped-aurora/gin-vue-admin"
>
<img
class=
"dom-center"
src=
"https://img.shields.io/github/watchers/flipped-aurora/gin-vue-admin.svg?label=Watch"
alt=
""
/>
</a>
</el-col>
<el-col
:span=
"8"
>
<a
href=
"https://github.com/flipped-aurora/gin-vue-admin"
>
<img
class=
"dom-center"
src=
"https://img.shields.io/github/stars/flipped-aurora/gin-vue-admin.svg?style=social"
alt=
""
/></a
></el-col>
<el-col
:span=
"8"
>
<a
href=
"https://github.com/flipped-aurora/gin-vue-admin"
>
<img
class=
"dom-center"
src=
"https://img.shields.io/github/forks/flipped-aurora/gin-vue-admin.svg?label=Fork"
alt=
""
/></a
></el-col>
</el-row>
</div>
</el-card>
<el-card
style=
"margin-top: 20px"
>
<div
slot=
"header"
>
flipped-aurora团队
</div>
<div>
<el-row>
<el-col
:span=
"8"
:offset=
"8"
>
<a
href=
"https://github.com/flipped-aurora"
>
<img
class=
"org-img"
src=
"@/assets/flipped-aurora.png"
alt=
"flipped-aurora"
/>
</a>
</el-col>
</el-row>
<el-row
style=
"margin-left: 40px"
:gutter=
"20"
>
<template
v-for=
"(item, index) in members"
>
<el-col
:span=
"8"
:key=
"index"
>
<a
:href=
"item.html_url"
>
<img
class=
"avatar-img"
:src=
"item.avatar_url"
/>
<a
class=
"author-name"
style=
""
>
{{
item
.
login
}}
</a>
</a>
</el-col>
</
template
>
</el-row>
</div>
</el-card>
</el-col>
<el-col
:span=
"12"
>
<el-card>
<div
slot=
"header"
>
提交记录
</div>
<div>
<Timeline
:timeline-items=
"dataTimeline"
:message-when-no-items=
"messageWhenNoItems"
:uniqueTimeline=
"true"
:unique-year=
"true"
:show-day-and-month=
"true"
order=
"desc"
dateLocale=
"zh-CN"
/>
</div>
<el-button
class=
"load-more"
@
click=
"loadMore"
type=
"text"
>
Load more
</el-button
>
</el-card>
</el-col>
</el-row>
</div>
</template>
<
script
>
import
{
Commits
,
Members
}
from
"
@/api/github
"
;
import
Timeline
from
"
timeline-vuejs
"
;
export
default
{
name
:
"
Test
"
}
name
:
"
Test
"
,
components
:
{
Timeline
,
},
data
()
{
return
{
messageWhenNoItems
:
"
There arent commits
"
,
members
:
[],
dataTimeline
:
[],
page
:
0
,
};
},
created
()
{
this
.
loadCommits
();
this
.
loadMembers
();
},
methods
:
{
loadMore
()
{
this
.
page
++
;
this
.
loadCommits
();
},
loadCommits
()
{
Commits
(
this
.
page
).
then
(({
data
})
=>
{
data
.
forEach
((
element
)
=>
{
if
(
element
.
commit
.
message
)
{
this
.
dataTimeline
.
push
({
from
:
new
Date
(
element
.
commit
.
author
.
date
),
title
:
element
.
commit
.
author
.
name
,
showDayAndMonth
:
true
,
description
:
`<a style="color: #26191b" href="
${
element
.
html_url
}
">
${
element
.
commit
.
message
}
</a>`
,
});
}
});
});
},
loadMembers
()
{
Members
().
then
(({
data
})
=>
{
this
.
members
=
data
;
this
.
members
.
sort
();
});
},
},
};
</
script
>
<
style
scoped
>
.load-more
{
margin-left
:
120px
;
}
</
style
>
\ No newline at end of file
.avatar-img
{
float
:
left
;
height
:
40px
;
width
:
40px
;
border-radius
:
50%
;
-webkit-border-radius
:
50%
;
-moz-border-radius
:
50%
;
margin-top
:
15px
;
}
.org-img
{
height
:
150px
;
width
:
150px
;
}
.author-name
{
float
:
left
;
line-height
:
65px
!important
;
margin-left
:
10px
;
color
:
darkblue
;
line-height
:
100px
;
font-family
:
"Lucida Sans"
,
"Lucida Sans Regular"
,
"Lucida Grande"
,
"Lucida Sans Unicode"
,
Geneva
,
Verdana
,
sans-serif
;
}
.dom-center
{
margin-left
:
50%
;
transform
:
translateX
(
-50%
);
}
</
style
>
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录