Skip to content

Commit

Permalink
dump
Browse files Browse the repository at this point in the history
  • Loading branch information
lavi27 committed Jan 13, 2024
1 parent 2b5a950 commit acfc0e0
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion components/AppNavBar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ onClickOutside(serverSelectEl, clickServerMenu)
onMounted(async () => {
try {
serverData.value = await API.get.servers(Number(route.query.id))
serverData.value = await API.get.servers(false)
currentServerData.value = serverData.value[0]
} catch (e) {}
})
Expand Down
2 changes: 1 addition & 1 deletion pages/dashboard/members.vue
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ const setBlackList = async () => {
}
const searchMember = (id: string) => {
//TODO - 스크롤시 추가적으로 로딩 되는것으로 변경
//TODO - 페이지 형식 적용?
memberList.value = []
const matcher = createFuzzyMatcher(id)
Expand Down
1 change: 0 additions & 1 deletion pages/dashboard/verify.vue
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,6 @@ onMounted(async () => {
try {
const res = await API.get.verify(Number(route.query.id))
//TODO - 이거 settings만 조건부로 나오는건가?
if (res.settings) {
// this.switch_.confirm = true
// this.list.role.list = res.guild.roles
Expand Down
8 changes: 6 additions & 2 deletions utils/NetworkUtils.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,17 @@
const catchNetworkErr = (e: any, doAlert: boolean = false) => {
import type { AxiosError } from 'axios'

const catchNetworkErr = (e: AxiosError<any, any>, doAlert: boolean = false) => {
if (e.config?.url) console.error('NetworkErrorURL: ' + e.config.url)
console.error(e.name)
console.error(e.message)

if (e.response) {
console.error('NetworkError: Response received')
console.error(e.response.data)
console.error(e.response.status)
console.error(e.response.headers)
} else if (e.request) {
console.error('NetworkError: Response not received, could be CORS issue')
console.error('NetworkError: Response not received, it could be CORS issue')
console.error(e.request)
} else {
console.error('NetworkError: Request not made')
Expand Down
2 changes: 1 addition & 1 deletion utils/discordAPI.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,4 @@ const getDiscordAPIUserData = async () => {
return userData
}

export { getDiscordAPIUserData }
export { discordCDNUrl, getDiscordAPIUserData }

0 comments on commit acfc0e0

Please sign in to comment.