Skip to content

Commit

Permalink
更新[BoxJs TF]: 侧栏增加新的贡献者 @id77
Browse files Browse the repository at this point in the history
  • Loading branch information
chavyleung committed Aug 22, 2020
1 parent 7899e79 commit d6b64a6
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 21 deletions.
40 changes: 22 additions & 18 deletions box/chavy.boxjs.html
Original file line number Diff line number Diff line change
Expand Up @@ -164,19 +164,19 @@
<!-- 侧栏 -->
<v-navigation-drawer app v-model="ui.naviDrawer.show" height="100%" temporary right disable-route-watcher>
<v-list dense nav>
<v-list-item dense @click="open(box.syscfgs.chavy.repo)">
<v-list-item-avatar><img :src="box.syscfgs.chavy.icon" /></v-list-item-avatar>
<v-list-item-content>
<v-list-item-title>{{box.syscfgs.chavy.id}}</v-list-item-title>
<v-list-item-subtitle>{{box.syscfgs.chavy.repo}}</v-list-item-subtitle>
</v-list-item-content>
</v-list-item>
<v-list-item dense @click="open(box.syscfgs.senku.repo)">
<v-list-item-avatar><img :src="box.syscfgs.senku.icon" /></v-list-item-avatar>
<v-list-item-content>
<v-list-item-title>{{box.syscfgs.senku.id}}</v-list-item-title>
<v-list-item-subtitle>{{box.syscfgs.senku.repo}}</v-list-item-subtitle>
</v-list-item-content>
<v-list-item dense>
<v-list-item-avatar @click="open(box.syscfgs.boxjs.repo)" class="elevation-3">
<v-img :src="box.syscfgs.boxjs.icon"></v-img>
</v-list-item-avatar>
<v-row justify="start" no-gutters>
<v-col v-for="(c, cIdx) in ui.collaborators" cols="4" :key="c.id">
<a>
<v-avatar size="40" @click="open(c.repo)" class="elevation-3">
<img :src="c.icon" />
</v-avatar>
</a>
</v-col>
</v-row>
</v-list-item>
<v-divider></v-divider>
<v-list-item class="pt-1">
Expand All @@ -186,8 +186,8 @@
<v-tooltip bottom>
<template v-slot:activator="{ on, attrs }">
<a>
<v-avatar v-on="on" class="ma-1" size="26" @click="open(c.repo)">
<img :src="c.icon" />
<v-avatar v-on="on" class="ma-1 elevation-3" size="26" @click="open(c.repo)">
<v-img :src="c.icon"></v-img>
</v-avatar>
</a>
</template>
Expand Down Expand Up @@ -1248,6 +1248,7 @@ <h2 :class="version === ver.version ? 'primary--text' : undefined">v{{ver.versio
subview: null,
bfsubview: null,
// 数据类
collaborators: [],
contributors: [],
isSaveUserCfgs: false,
// 界面类
Expand Down Expand Up @@ -1831,7 +1832,7 @@ <h2 :class="version === ver.version ? 'primary--text' : undefined">v{{ver.versio
let bgimg = ''
if (this.box.usercfgs.bgimg === '跟随系统') {
const hasdark = this.bgimgs.find((bgimg) => bgimg.name == '暗黑' || bgimg.name == 'dark')
const haslight = this.bgimgs.find((bgimg) => bgimg.name == '明亮' || bgimg.name == 'light')
const haslight = this.bgimgs.find((bgimg) => bgimg.name == '明亮' || bgimg.name == 'light')
const darkbgimg = hasdark ? hasdark.url : ``
const lightbgimg = haslight ? haslight.url : ``
this.isDarkMode ? (bgimg = darkbgimg) : (bgimg = lightbgimg)
Expand Down Expand Up @@ -2247,9 +2248,12 @@ <h2 :class="version === ver.version ? 'primary--text' : undefined">v{{ver.versio
axios.get(url).then((resp) => {
if (!resp) return
resp.data.forEach((contributor) => {
if ([29748519, 39037656].includes(contributor.id)) return
const { login: id, login, html_url: repo, avatar_url: icon } = contributor
this.ui.contributors.push({ id, login, repo, icon })
if ([29748519, 39037656, 9592236].includes(contributor.id)) {
this.ui.collaborators.push({ id, login, repo, icon })
} else {
this.ui.contributors.push({ id, login, repo, icon })
}
})
})
},
Expand Down
6 changes: 3 additions & 3 deletions box/chavy.boxjs.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const $ = new Env('BoxJs')
// 为 eval 准备的上下文环境
const $eval_env = {}

$.version = '0.7.53'
$.version = '0.7.54'
$.versionType = 'beta'

/**
Expand Down Expand Up @@ -278,10 +278,10 @@ function getSystemCfgs() {
],
chavy: { id: 'ChavyLeung', icon: 'https://avatars3.githubusercontent.com/u/29748519', repo: 'https://github.com/chavyleung/scripts' },
senku: { id: 'GideonSenku', icon: 'https://avatars1.githubusercontent.com/u/39037656', repo: 'https://github.com/GideonSenku' },
id77: { id: 'id77', icon: 'https://avatars0.githubusercontent.com/u/9592236', repo: 'https://github.com/id77' },
orz3: { id: 'Orz-3', icon: 'https://raw.githubusercontent.com/Orz-3/task/master/Orz-3.png', repo: 'https://github.com/Orz-3/' },
boxjs: { id: 'BoxJs', show: false, icon: 'https://raw.githubusercontent.com/Orz-3/task/master/box.png', icons: ['https://raw.githubusercontent.com/Orz-3/mini/master/box.png', 'https://raw.githubusercontent.com/Orz-3/task/master/box.png'], repo: 'https://github.com/chavyleung/scripts' },
defaultIcons: ['https://raw.githubusercontent.com/Orz-3/mini/master/appstore.png', 'https://raw.githubusercontent.com/Orz-3/task/master/appstore.png'],
scontributors: []
defaultIcons: ['https://raw.githubusercontent.com/Orz-3/mini/master/appstore.png', 'https://raw.githubusercontent.com/Orz-3/task/master/appstore.png']
}
}

Expand Down
14 changes: 14 additions & 0 deletions box/release/box.release.tf.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,19 @@
{
"releases": [
{
"version": "0.7.54",
"tags": ["beta"],
"author": "@GideonSenku",
"icon": "https://avatars3.githubusercontent.com/u/29748519",
"repo": "https://github.com/chavyleung",
"msg": "更新[BoxJs TF]: 侧栏增加新的贡献者 @id77",
"notes": [
{
"name": "贡献者",
"descs": ["新的贡献者 @id77"]
}
]
},
{
"version": "0.7.53",
"tags": ["beta"],
Expand Down

0 comments on commit d6b64a6

Please sign in to comment.