Skip to content

Commit d6b64a6

Browse files
committed
更新[BoxJs TF]: 侧栏增加新的贡献者 @id77
1 parent 7899e79 commit d6b64a6

3 files changed

Lines changed: 39 additions & 21 deletions

File tree

‎box/chavy.boxjs.html‎

Lines changed: 22 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -164,19 +164,19 @@
164164
<!-- 侧栏 -->
165165
<v-navigation-drawer app v-model="ui.naviDrawer.show" height="100%" temporary right disable-route-watcher>
166166
<v-list dense nav>
167-
<v-list-item dense @click="open(box.syscfgs.chavy.repo)">
168-
<v-list-item-avatar><img :src="box.syscfgs.chavy.icon" /></v-list-item-avatar>
169-
<v-list-item-content>
170-
<v-list-item-title>{{box.syscfgs.chavy.id}}</v-list-item-title>
171-
<v-list-item-subtitle>{{box.syscfgs.chavy.repo}}</v-list-item-subtitle>
172-
</v-list-item-content>
173-
</v-list-item>
174-
<v-list-item dense @click="open(box.syscfgs.senku.repo)">
175-
<v-list-item-avatar><img :src="box.syscfgs.senku.icon" /></v-list-item-avatar>
176-
<v-list-item-content>
177-
<v-list-item-title>{{box.syscfgs.senku.id}}</v-list-item-title>
178-
<v-list-item-subtitle>{{box.syscfgs.senku.repo}}</v-list-item-subtitle>
179-
</v-list-item-content>
167+
<v-list-item dense>
168+
<v-list-item-avatar @click="open(box.syscfgs.boxjs.repo)" class="elevation-3">
169+
<v-img :src="box.syscfgs.boxjs.icon"></v-img>
170+
</v-list-item-avatar>
171+
<v-row justify="start" no-gutters>
172+
<v-col v-for="(c, cIdx) in ui.collaborators" cols="4" :key="c.id">
173+
<a>
174+
<v-avatar size="40" @click="open(c.repo)" class="elevation-3">
175+
<img :src="c.icon" />
176+
</v-avatar>
177+
</a>
178+
</v-col>
179+
</v-row>
180180
</v-list-item>
181181
<v-divider></v-divider>
182182
<v-list-item class="pt-1">
@@ -186,8 +186,8 @@
186186
<v-tooltip bottom>
187187
<template v-slot:activator="{ on, attrs }">
188188
<a>
189-
<v-avatar v-on="on" class="ma-1" size="26" @click="open(c.repo)">
190-
<img :src="c.icon" />
189+
<v-avatar v-on="on" class="ma-1 elevation-3" size="26" @click="open(c.repo)">
190+
<v-img :src="c.icon"></v-img>
191191
</v-avatar>
192192
</a>
193193
</template>
@@ -1248,6 +1248,7 @@ <h2 :class="version === ver.version ? 'primary--text' : undefined">v{{ver.versio
12481248
subview: null,
12491249
bfsubview: null,
12501250
// 数据类
1251+
collaborators: [],
12511252
contributors: [],
12521253
isSaveUserCfgs: false,
12531254
// 界面类
@@ -1831,7 +1832,7 @@ <h2 :class="version === ver.version ? 'primary--text' : undefined">v{{ver.versio
18311832
let bgimg = ''
18321833
if (this.box.usercfgs.bgimg === '跟随系统') {
18331834
const hasdark = this.bgimgs.find((bgimg) => bgimg.name == '暗黑' || bgimg.name == 'dark')
1834-
const haslight = this.bgimgs.find((bgimg) => bgimg.name == '明亮' || bgimg.name == 'light')
1835+
const haslight = this.bgimgs.find((bgimg) => bgimg.name == '明亮' || bgimg.name == 'light')
18351836
const darkbgimg = hasdark ? hasdark.url : ``
18361837
const lightbgimg = haslight ? haslight.url : ``
18371838
this.isDarkMode ? (bgimg = darkbgimg) : (bgimg = lightbgimg)
@@ -2247,9 +2248,12 @@ <h2 :class="version === ver.version ? 'primary--text' : undefined">v{{ver.versio
22472248
axios.get(url).then((resp) => {
22482249
if (!resp) return
22492250
resp.data.forEach((contributor) => {
2250-
if ([29748519, 39037656].includes(contributor.id)) return
22512251
const { login: id, login, html_url: repo, avatar_url: icon } = contributor
2252-
this.ui.contributors.push({ id, login, repo, icon })
2252+
if ([29748519, 39037656, 9592236].includes(contributor.id)) {
2253+
this.ui.collaborators.push({ id, login, repo, icon })
2254+
} else {
2255+
this.ui.contributors.push({ id, login, repo, icon })
2256+
}
22532257
})
22542258
})
22552259
},

‎box/chavy.boxjs.js‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ const $ = new Env('BoxJs')
33
// 为 eval 准备的上下文环境
44
const $eval_env = {}
55

6-
$.version = '0.7.53'
6+
$.version = '0.7.54'
77
$.versionType = 'beta'
88

99
/**
@@ -278,10 +278,10 @@ function getSystemCfgs() {
278278
],
279279
chavy: { id: 'ChavyLeung', icon: 'https://avatars3.githubusercontent.com/u/29748519', repo: 'https://github.com/chavyleung/scripts' },
280280
senku: { id: 'GideonSenku', icon: 'https://avatars1.githubusercontent.com/u/39037656', repo: 'https://github.com/GideonSenku' },
281+
id77: { id: 'id77', icon: 'https://avatars0.githubusercontent.com/u/9592236', repo: 'https://github.com/id77' },
281282
orz3: { id: 'Orz-3', icon: 'https://raw.githubusercontent.com/Orz-3/task/master/Orz-3.png', repo: 'https://github.com/Orz-3/' },
282283
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' },
283-
defaultIcons: ['https://raw.githubusercontent.com/Orz-3/mini/master/appstore.png', 'https://raw.githubusercontent.com/Orz-3/task/master/appstore.png'],
284-
scontributors: []
284+
defaultIcons: ['https://raw.githubusercontent.com/Orz-3/mini/master/appstore.png', 'https://raw.githubusercontent.com/Orz-3/task/master/appstore.png']
285285
}
286286
}
287287

‎box/release/box.release.tf.json‎

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,19 @@
11
{
22
"releases": [
3+
{
4+
"version": "0.7.54",
5+
"tags": ["beta"],
6+
"author": "@GideonSenku",
7+
"icon": "https://avatars3.githubusercontent.com/u/29748519",
8+
"repo": "https://github.com/chavyleung",
9+
"msg": "更新[BoxJs TF]: 侧栏增加新的贡献者 @id77",
10+
"notes": [
11+
{
12+
"name": "贡献者",
13+
"descs": ["新的贡献者 @id77"]
14+
}
15+
]
16+
},
317
{
418
"version": "0.7.53",
519
"tags": ["beta"],

0 commit comments

Comments
 (0)