Skip to content

Commit

Permalink
Address comments
Browse files Browse the repository at this point in the history
  • Loading branch information
zysim committed May 10, 2024
1 parent b4873f6 commit 0517c5b
Show file tree
Hide file tree
Showing 10 changed files with 20 additions and 41 deletions.
21 changes: 0 additions & 21 deletions .vscode/launch.json

This file was deleted.

8 changes: 4 additions & 4 deletions components/blocks/LeaderboardInfo/LeaderboardInfo.vue
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,15 @@ defineProps<LeaderboardInfoProps>()
</script>

<template>
<Desktop
v-if="!isMobile"
<Mobile
v-if="isMobile"
data-testid="child"
:leaderboard="leaderboard"
:todo-platforms="todoPlatforms"
@follow="emit('follow', leaderboard.id)"
/>
<Mobile
v-if="isMobile"
<Desktop
v-else
data-testid="child"
:leaderboard="leaderboard"
:todo-platforms="todoPlatforms"
Expand Down
7 changes: 5 additions & 2 deletions components/elements/buttons/Dropdown/Dropdown.test.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
import { enableAutoUnmount, mount } from '@vue/test-utils'
import {
enableAutoUnmount,
mount,
type ComponentMountingOptions,
} from '@vue/test-utils'
import { getByTestId } from 'root/testUtils'
import Dropdown from './Dropdown.vue'
import DropdownItem from './DropdownItem.vue'
import type { ComponentMountingOptions } from '@vue/test-utils'

enableAutoUnmount(afterEach)

Expand Down
3 changes: 1 addition & 2 deletions components/elements/buttons/Dropdown/Dropdown.vue
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
<script setup lang="ts">
// Explicitly-importing these because tests don't like the auto-imports - zysim
import { provide, ref } from 'vue'
import { provide, ref, type Ref } from 'vue'
import BaseButton from '../BaseButton/BaseButton.vue'
import type { Ref } from 'vue'
export interface SharedState {
active: Ref<boolean>
Expand Down
7 changes: 5 additions & 2 deletions composables/api/useGetLeaderboardDetail/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
import { ref } from 'vue'
import { useApi } from 'composables/useApi'
import {
useApi,
type ApiResponse,
type optionalParameters,
} from 'composables/useApi'
import { Leaderboards } from 'lib/api/Leaderboards'
import type { ApiResponse, optionalParameters } from 'composables/useApi'
import type { LeaderboardViewModel } from 'lib/api/data-contracts'

export async function useGetLeaderboardDetail(
Expand Down
3 changes: 1 addition & 2 deletions lib/api/Account.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@ import type {
UserViewModel,
ValidationProblemDetails,
} from './data-contracts'
import type { RequestParams } from './http-client'
import { ContentType, HttpClient } from './http-client'
import { ContentType, HttpClient, type RequestParams } from './http-client'

export class Account<
SecurityDataType = unknown,
Expand Down
3 changes: 1 addition & 2 deletions lib/api/Categories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@ import type {
ProblemDetails,
ValidationProblemDetails,
} from './data-contracts'
import type { RequestParams } from './http-client'
import { ContentType, HttpClient } from './http-client'
import { ContentType, HttpClient, type RequestParams } from './http-client'

export class Categories<
SecurityDataType = unknown,
Expand Down
3 changes: 1 addition & 2 deletions lib/api/Leaderboards.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ import type {
ProblemDetails,
ValidationProblemDetails,
} from './data-contracts'
import type { RequestParams } from './http-client'
import { ContentType, HttpClient } from './http-client'
import { ContentType, HttpClient, type RequestParams } from './http-client'

export class Leaderboards<
SecurityDataType = unknown,
Expand Down
3 changes: 1 addition & 2 deletions lib/api/Runs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ import type {
RunViewModel,
ValidationProblemDetails,
} from './data-contracts'
import type { RequestParams } from './http-client'
import { ContentType, HttpClient } from './http-client'
import { ContentType, HttpClient, type RequestParams } from './http-client'

export class Runs<
SecurityDataType = unknown,
Expand Down
3 changes: 1 addition & 2 deletions lib/api/Users.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@
*/

import type { ProblemDetails, UserViewModel } from './data-contracts'
import type { RequestParams } from './http-client'
import { HttpClient } from './http-client'
import { HttpClient, type RequestParams } from './http-client'

export class Users<
SecurityDataType = unknown,
Expand Down

0 comments on commit 0517c5b

Please sign in to comment.