Skip to content

Commit

Permalink
feat: 봇 / 서버 - 소유주 간 관계도 개선 (#659)
Browse files Browse the repository at this point in the history
* feat: implement owners mapping table

* feat: add manual deploy

* fix: query by vanity does not work

* fix: do not fetch users on list queries

* fix: updating owners does not work properly

* fix: owner is not shown properly

* ci: remove branch input on manual publish

---------

Co-authored-by: Eunwoo Choi <[email protected]>
  • Loading branch information
skinmaker1345 and eunwoo1104 authored Oct 19, 2024
1 parent 4ec2ff1 commit a89cb6d
Show file tree
Hide file tree
Showing 6 changed files with 175 additions and 155 deletions.
1 change: 1 addition & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ module.exports = {
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/explicit-module-boundary-types': 'off',
'@typescript-eslint/no-unused-vars': ['warn'],
'@typescript-eslint/no-explicit-any': 'off',
quotes: ['error', 'single'],
semi: ['error', 'never'],
},
Expand Down
17 changes: 7 additions & 10 deletions pages/pendingBots/[id]/[date].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { get } from '@utils/Query'
import { BotSubmissionDenyReasonPresetsName, git } from '@utils/Constants'
import Day from '@utils/Day'

import { SubmittedBot, User } from '@types'
import { SubmittedBot } from '@types'

import useClipboard from 'react-use-clipboard'
import { ParsedUrlQuery } from 'querystring'
Expand Down Expand Up @@ -146,15 +146,12 @@ const PendingBot: NextPage<PendingBotProps> = ({ data }) => {
))}
</div>
<h2 className='3xl mb-2 mt-2 font-bold'>제작자</h2>
{(data.owners as User[]).map((el) => (
<Owner
key={el.id}
id={el.id}
tag={el.tag}
globalName={el.globalName}
username={el.username}
/>
))}
<Owner
id={data.owner.id}
tag={data.owner.tag}
globalName={data.owner.globalName}
username={data.owner.username}
/>
<div className='list grid'>
{data.discord && (
<a
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"types/index.ts"
]
},
"target": "es5",
"target": "es6",
"lib": [
"dom",
"dom.iterable",
Expand Down
7 changes: 6 additions & 1 deletion types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ export interface List<T> {
export interface SubmittedBot {
id: string
date: number
owners: User[]
owner: User
lib: Library
prefix: string
intro: string
Expand Down Expand Up @@ -378,3 +378,8 @@ export interface ResponseProps<T = Data> {
interface Data<T = unknown> {
[key: string]: T
}

export enum ObjectType {
Bot = 1,
Server = 2,
}
Loading

0 comments on commit a89cb6d

Please sign in to comment.