Skip to content

Commit e4564f8

Browse files
ESLint
1 parent ae9d3e5 commit e4564f8

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

68 files changed

+111
-104
lines changed

.eslintrc.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,13 @@ module.exports = {
33
env: {
44
browser: true,
55
node: true,
6+
jest: true,
67
},
78
extends: [
89
'prettier',
910
'plugin:vue/recommended',
1011
'plugin:prettier/recommended',
11-
'@nuxtjs/eslint-config-typescript',
12+
'@nuxt/eslint-config',
1213
],
1314
parserOptions: {
1415
parser: '@typescript-eslint/parser',

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
16.13.0
1+
22

components/RequestInfo.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
{{ url }}
66
</v-card>
77
</div>
8-
<v-expansion-panels multiple v-model="openPanels">
8+
<v-expansion-panels v-model="openPanels" multiple>
99
<v-expansion-panel>
1010
<v-expansion-panel-title>Payload</v-expansion-panel-title>
1111
<v-expansion-panel-text>

layouts/default.vue

Lines changed: 31 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@
88
>
99
<v-list nav>
1010
<v-list-item to="/" exact>
11-
<template v-slot:prepend>
11+
<template #prepend>
1212
<v-icon>mdi-home</v-icon>
1313
</template>
1414
<v-list-item-title>Home</v-list-item-title>
1515
</v-list-item>
1616

1717
<v-list-group>
18-
<template v-slot:activator="{ props }">
18+
<template #activator="{ props }">
1919
<v-list-item v-bind="props">
2020
<v-list-item-title>Core Functionality</v-list-item-title>
2121
</v-list-item>
@@ -31,12 +31,14 @@
3131
:to="item.to"
3232
exact
3333
>
34-
<v-list-item-title class="list-items" v-text="item.title" />
34+
<v-list-item-title class="list-items">{{
35+
item.title
36+
}}</v-list-item-title>
3537
</v-list-item>
3638
</v-list-group>
3739

3840
<v-list-group>
39-
<template v-slot:activator="{ props }">
41+
<template #activator="{ props }">
4042
<v-list-item v-bind="props">
4143
<v-list-item-title>Payments APIs</v-list-item-title>
4244
</v-list-item>
@@ -52,12 +54,14 @@
5254
:to="item.to"
5355
exact
5456
>
55-
<v-list-item-title class="list-items" v-text="item.title" />
57+
<v-list-item-title class="list-items">{{
58+
item.title
59+
}}</v-list-item-title>
5660
</v-list-item>
5761
</v-list-group>
5862

5963
<v-list-group>
60-
<template v-slot:activator="{ props }">
64+
<template #activator="{ props }">
6165
<v-list-item v-bind="props">
6266
<v-list-item-title>Marketplace APIs</v-list-item-title>
6367
</v-list-item>
@@ -73,12 +77,14 @@
7377
:to="item.to"
7478
exact
7579
>
76-
<v-list-item-title class="list-items" v-text="item.title" />
80+
<v-list-item-title class="list-items">{{
81+
item.title
82+
}}</v-list-item-title>
7783
</v-list-item>
7884
</v-list-group>
7985

8086
<v-list-group>
81-
<template v-slot:activator="{ props }">
87+
<template #activator="{ props }">
8288
<v-list-item v-bind="props">
8389
<v-list-item-title>Payouts APIs</v-list-item-title>
8490
</v-list-item>
@@ -94,12 +100,14 @@
94100
:to="item.to"
95101
exact
96102
>
97-
<v-list-item-title class="list-items" v-text="item.title" />
103+
<v-list-item-title class="list-items">{{
104+
item.title
105+
}}</v-list-item-title>
98106
</v-list-item>
99107
</v-list-group>
100108

101109
<v-list-group>
102-
<template v-slot:activator="{ props }">
110+
<template #activator="{ props }">
103111
<v-list-item v-bind="props">
104112
<v-list-item-title>Payment Intents APIs</v-list-item-title>
105113
</v-list-item>
@@ -115,12 +123,14 @@
115123
:to="item.to"
116124
exact
117125
>
118-
<v-list-item-title class="list-items" v-text="item.title" />
126+
<v-list-item-title class="list-items">{{
127+
item.title
128+
}}</v-list-item-title>
119129
</v-list-item>
120130
</v-list-group>
121131

122132
<v-list-group>
123-
<template v-slot:activator="{ props }">
133+
<template #activator="{ props }">
124134
<v-list-item v-bind="props">
125135
<v-list-item-title>Trade API</v-list-item-title>
126136
</v-list-item>
@@ -136,12 +146,14 @@
136146
:to="item.to"
137147
exact
138148
>
139-
<v-list-item-title class="list-items" v-text="item.title" />
149+
<v-list-item-title class="list-items">{{
150+
item.title
151+
}}</v-list-item-title>
140152
</v-list-item>
141153
</v-list-group>
142154

143155
<v-list-group>
144-
<template v-slot:activator="{ props }">
156+
<template #activator="{ props }">
145157
<v-list-item v-bind="props">
146158
<v-list-item-title>CPS Trade API</v-list-item-title>
147159
</v-list-item>
@@ -157,26 +169,28 @@
157169
:to="item.to"
158170
exact
159171
>
160-
<v-list-item-title class="list-items" v-text="item.title" />
172+
<v-list-item-title class="list-items">{{
173+
item.title
174+
}}</v-list-item-title>
161175
</v-list-item>
162176
</v-list-group>
163177
</v-list>
164178
</v-navigation-drawer>
165179
<v-app-bar color="primary" density="compact" elevation="1" app>
166180
<v-app-bar-nav-icon
167-
@click.stop="showDrawer = !showDrawer"
168181
style="color: white !important"
182+
@click.stop="showDrawer = !showDrawer"
169183
>
170184
<v-icon color="white">mdi-menu</v-icon>
171185
</v-app-bar-nav-icon>
172186

173187
<v-spacer />
174188

175189
<v-btn
176-
@click.stop="showRightDrawer = !showRightDrawer"
177190
style="color: white !important"
178191
variant="text"
179192
icon
193+
@click.stop="showRightDrawer = !showRightDrawer"
180194
>
181195
<v-icon color="white">mdi-cog</v-icon>
182196
</v-btn>
@@ -206,14 +220,8 @@
206220
</template>
207221

208222
<script setup lang="ts">
209-
import { getIsStaging, getIsLocalHost } from '@/lib/apiTarget'
210-
211-
const router = useRouter()
212223
const store = useMainStore()
213224
214-
const isStaging = getIsStaging()
215-
const isLocalHost = getIsLocalHost()
216-
217225
const coreLinks = [
218226
{
219227
title: 'GET /businessAccount/balances',
@@ -520,15 +528,13 @@ const cpsTradesLinks = [
520528
]
521529
522530
const miniVariant = ref(false)
523-
const right = ref(true)
524531
const showRightDrawer = ref(false)
525532
const showDrawer = ref(false)
526533
527534
const apiKey = computed({
528535
get: () => store.getApiKey,
529536
set: (value: string) => store.setBearerToken(value),
530537
})
531-
532538
</script>
533539

534540
<style scoped>

pages/debug/addressBook/create.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
<ErrorSheet
3535
:error="error"
3636
:show-error="showError"
37-
@onChange="onErrorSheetClosed"
37+
@on-change="onErrorSheetClosed"
3838
/>
3939
</v-container>
4040
</template>

pages/debug/addressBook/delete.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
<ErrorSheet
2727
:error="error"
2828
:show-error="showError"
29-
@onChange="onErrorSheetClosed"
29+
@on-change="onErrorSheetClosed"
3030
/>
3131
</v-container>
3232
</template>

pages/debug/addressBook/details.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
<ErrorSheet
2727
:error="error"
2828
:show-error="showError"
29-
@onChange="onErrorSheetClosed"
29+
@on-change="onErrorSheetClosed"
3030
/>
3131
</v-container>
3232
</template>

pages/debug/addressBook/fetch.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
<ErrorSheet
3939
:error="error"
4040
:show-error="showError"
41-
@onChange="onErrorSheetClosed"
41+
@on-change="onErrorSheetClosed"
4242
/>
4343
</v-container>
4444
</template>

pages/debug/addressBook/patch.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
<ErrorSheet
3030
:error="error"
3131
:show-error="showError"
32-
@onChange="onErrorSheetClosed"
32+
@on-change="onErrorSheetClosed"
3333
/>
3434
</v-container>
3535
</template>

pages/debug/businessAccount/addresses/deposit/create.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
<ErrorSheet
3434
:error="error"
3535
:show-error="showError"
36-
@onChange="onErrorSheetClosed"
36+
@on-change="onErrorSheetClosed"
3737
/>
3838
</v-container>
3939
</template>

0 commit comments

Comments
 (0)