Skip to content

Commit

Permalink
Merge pull request #105 from our-mini-games/hot-fix
Browse files Browse the repository at this point in the history
fix: add mscodesocool as a member
  • Loading branch information
libondev authored Apr 17, 2024
2 parents c4d1018 + d1e0e5c commit 660974a
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 5 deletions.
15 changes: 12 additions & 3 deletions packages/entry/src/config/members.config.ts
Original file line number Diff line number Diff line change
@@ -1,19 +1,28 @@
export interface MemberConfig {
avatar: string
name: string
homepage: string
}

export const members: MemberConfig[] = [
{
avatar: 'https://avatars.githubusercontent.com/u/39545747?v=4',
name: 'Detail'
name: 'Detail',
homepage: 'https://github.com/humandetail'
},
{
avatar: 'https://avatars.githubusercontent.com/u/47918504?v=4',
name: 'Chestnut'
name: 'Libon',
homepage: 'https://github.com/libondev'
},
{
avatar: 'https://avatars.githubusercontent.com/u/71477878?v=4',
name: 'Kkk'
name: 'Kkk',
homepage: 'https://github.com/Stan-BK'
},
{
avatar: 'https://avatars.githubusercontent.com/u/93576208?v=4',
name: 'Mscodesocool',
homepage: 'https://github.com/mscodesocool'
}
]
4 changes: 2 additions & 2 deletions packages/entry/src/lib/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export const createGameList = (games: GameConfig[], members: MemberConfig[], roo
games.forEach(game => {
const oLi = Object.assign(document.createElement('li'), {
className: 'game-item',
innerHTML: `<a href="${game.path}" title="${game.name}">
innerHTML: `<a href="${game.path}" title="${game.name}" target="_blank">
${game.cover ? `<img class="game-cover" src="${rootPath}${game.cover}" />` : ''}
<span>${game.name}</span>
</a>`
Expand All @@ -37,7 +37,7 @@ export const createGameList = (games: GameConfig[], members: MemberConfig[], roo
members.forEach(member => {
const oLi = Object.assign(document.createElement('li'), {
className: 'member-item',
innerHTML: `<img src=${member.avatar} title=${member.name} />`
innerHTML: `<a href="${member.homepage}" target="_blank" title="${member.name}"><img src=${member.avatar} alt=${member.name} /></a>`
})

MemberList.appendChild(oLi)
Expand Down

0 comments on commit 660974a

Please sign in to comment.