Cleanup qs.stringify comments
This commit is contained in:
parent
7d55d33067
commit
9ed6213a46
|
@ -70,10 +70,6 @@ const fetchData = async () => {
|
|||
try {
|
||||
const response = await axios.get('radios/radios/', {
|
||||
params
|
||||
// TODO (wvffle): Check if params should be serialized. In other similar components (Podcasts, Artists) they are
|
||||
// paramsSerializer: function (params) {
|
||||
// return qs.stringify(params, { indices: false })
|
||||
// }
|
||||
})
|
||||
|
||||
result.value = response.data
|
||||
|
@ -234,7 +230,7 @@ const labels = computed(() => ({
|
|||
</form>
|
||||
<div class="ui hidden divider" />
|
||||
<div
|
||||
v-if="result && !result.results.length > 0"
|
||||
v-if="result && result.results.length === 0"
|
||||
class="ui placeholder segment"
|
||||
>
|
||||
<div class="ui icon header">
|
||||
|
|
|
@ -51,10 +51,6 @@ const fetchData = async () => {
|
|||
try {
|
||||
const response = await axios.get('/manage/channels/', {
|
||||
params
|
||||
// TODO (wvffle): Check if params should be serialized. In other similar components (Podcasts, Artists) they are
|
||||
// paramsSerializer: function (params) {
|
||||
// return qs.stringify(params, { indices: false })
|
||||
// }
|
||||
})
|
||||
|
||||
result.value = response.data
|
||||
|
|
|
@ -10,6 +10,7 @@ import { computed, ref, watch } from 'vue'
|
|||
import { useGettext } from 'vue3-gettext'
|
||||
|
||||
interface Props extends SmartSearchProps, OrderingProps {
|
||||
// TODO (wvffle): Remove from EVERY SINGLE component that does not use it at all
|
||||
// TODO (wvffle): find object type
|
||||
filters?: object
|
||||
}
|
||||
|
@ -61,10 +62,6 @@ const fetchData = async () => {
|
|||
try {
|
||||
const response = await axios.get('/manage/library/albums/', {
|
||||
params
|
||||
// TODO (wvffle): Check if params should be serialized. In other similar components (Podcasts, Artists) they are
|
||||
// paramsSerializer: function (params) {
|
||||
// return qs.stringify(params, { indices: false })
|
||||
// }
|
||||
})
|
||||
|
||||
result.value = response.data
|
||||
|
|
|
@ -59,10 +59,6 @@ const fetchData = async () => {
|
|||
try {
|
||||
const response = await axios.get('/manage/library/artists/', {
|
||||
params
|
||||
// TODO (wvffle): Check if params should be serialized. In other similar components (Podcasts, Artists) they are
|
||||
// paramsSerializer: function (params) {
|
||||
// return qs.stringify(params, { indices: false })
|
||||
// }
|
||||
})
|
||||
|
||||
result.value = response.data
|
||||
|
|
|
@ -104,10 +104,6 @@ const fetchData = async () => {
|
|||
try {
|
||||
const response = await axios.get('mutations/', {
|
||||
params
|
||||
// TODO (wvffle): Check if params should be serialized. In other similar components (Podcasts, Artists) they are
|
||||
// paramsSerializer: function (params) {
|
||||
// return qs.stringify(params, { indices: false })
|
||||
// }
|
||||
})
|
||||
|
||||
result.value = response.data
|
||||
|
|
|
@ -61,10 +61,6 @@ const fetchData = async () => {
|
|||
try {
|
||||
const response = await axios.get('/manage/library/libraries/', {
|
||||
params
|
||||
// TODO (wvffle): Check if params should be serialized. In other similar components (Podcasts, Artists) they are
|
||||
// paramsSerializer: function (params) {
|
||||
// return qs.stringify(params, { indices: false })
|
||||
// }
|
||||
})
|
||||
|
||||
result.value = response.data
|
||||
|
|
|
@ -64,10 +64,6 @@ const fetchData = async () => {
|
|||
try {
|
||||
const response = await axios.get('/manage/tags/', {
|
||||
params
|
||||
// TODO (wvffle): Check if params should be serialized. In other similar components (Podcasts, Artists) they are
|
||||
// paramsSerializer: function (params) {
|
||||
// return qs.stringify(params, { indices: false })
|
||||
// }
|
||||
})
|
||||
|
||||
result.value = response.data
|
||||
|
|
|
@ -59,10 +59,6 @@ const fetchData = async () => {
|
|||
try {
|
||||
const response = await axios.get('/manage/library/tracks/', {
|
||||
params
|
||||
// TODO (wvffle): Check if params should be serialized. In other similar components (Podcasts, Artists) they are
|
||||
// paramsSerializer: function (params) {
|
||||
// return qs.stringify(params, { indices: false })
|
||||
// }
|
||||
})
|
||||
|
||||
result.value = response.data
|
||||
|
|
|
@ -67,10 +67,6 @@ const fetchData = async () => {
|
|||
try {
|
||||
const response = await axios.get('/manage/library/uploads/', {
|
||||
params
|
||||
// TODO (wvffle): Check if params should be serialized. In other similar components (Podcasts, Artists) they are
|
||||
// paramsSerializer: function (params) {
|
||||
// return qs.stringify(params, { indices: false })
|
||||
// }
|
||||
})
|
||||
|
||||
result.value = response.data
|
||||
|
|
|
@ -60,10 +60,6 @@ const fetchData = async () => {
|
|||
try {
|
||||
const response = await axios.get('/manage/accounts/', {
|
||||
params
|
||||
// TODO (wvffle): Check if params should be serialized. In other similar components (Podcasts, Artists) they are
|
||||
// paramsSerializer: function (params) {
|
||||
// return qs.stringify(params, { indices: false })
|
||||
// }
|
||||
})
|
||||
|
||||
result.value = response.data
|
||||
|
|
|
@ -79,10 +79,6 @@ const fetchData = async () => {
|
|||
try {
|
||||
const response = await axios.get('/manage/federation/domains/', {
|
||||
params
|
||||
// TODO (wvffle): Check if params should be serialized. In other similar components (Podcasts, Artists) they are
|
||||
// paramsSerializer: function (params) {
|
||||
// return qs.stringify(params, { indices: false })
|
||||
// }
|
||||
})
|
||||
|
||||
result.value = response.data
|
||||
|
|
|
@ -60,10 +60,6 @@ const fetchData = async () => {
|
|||
try {
|
||||
const response = await axios.get('/manage/users/invitations/', {
|
||||
params
|
||||
// TODO (wvffle): Check if params should be serialized. In other similar components (Podcasts, Artists) they are
|
||||
// paramsSerializer: function (params) {
|
||||
// return qs.stringify(params, { indices: false })
|
||||
// }
|
||||
})
|
||||
|
||||
result.value = response.data
|
||||
|
|
|
@ -66,10 +66,6 @@ const fetchData = async () => {
|
|||
try {
|
||||
const response = await axios.get('/manage/users/users/', {
|
||||
params
|
||||
// TODO (wvffle): Check if params should be serialized. In other similar components (Podcasts, Artists) they are
|
||||
// paramsSerializer: function (params) {
|
||||
// return qs.stringify(params, { indices: false })
|
||||
// }
|
||||
})
|
||||
|
||||
result.value = response.data
|
||||
|
|
|
@ -49,10 +49,6 @@ const fetchData = async () => {
|
|||
try {
|
||||
const response = await axios.get('manage/moderation/reports/', {
|
||||
params
|
||||
// TODO (wvffle): Check if params should be serialized. In other similar components (Podcasts, Artists) they are
|
||||
// paramsSerializer: function (params) {
|
||||
// return qs.stringify(params, { indices: false })
|
||||
// }
|
||||
})
|
||||
|
||||
result.value = response.data
|
||||
|
|
|
@ -44,10 +44,6 @@ const fetchData = async () => {
|
|||
try {
|
||||
const response = await axios.get('manage/moderation/requests/', {
|
||||
params
|
||||
// TODO (wvffle): Check if params should be serialized. In other similar components (Podcasts, Artists) they are
|
||||
// paramsSerializer: function (params) {
|
||||
// return qs.stringify(params, { indices: false })
|
||||
// }
|
||||
})
|
||||
|
||||
result.value = response.data
|
||||
|
|
|
@ -86,10 +86,6 @@ const fetchData = async () => {
|
|||
try {
|
||||
const response = await axios.get('/uploads/', {
|
||||
params
|
||||
// TODO (wvffle): Check if params should be serialized. In other similar components (Podcasts, Artists) they are
|
||||
// paramsSerializer: function (params) {
|
||||
// return qs.stringify(params, { indices: false })
|
||||
// }
|
||||
})
|
||||
|
||||
result.value = response.data
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
<script setup lang="ts">
|
||||
import axios from 'axios'
|
||||
import $ from 'jquery'
|
||||
import qs from 'qs'
|
||||
import { computed, ref, watch, onMounted } from 'vue'
|
||||
import { useRouter, onBeforeRouteUpdate } from 'vue-router'
|
||||
import { useGettext } from 'vue3-gettext'
|
||||
|
@ -70,10 +69,7 @@ const fetchData = async () => {
|
|||
logger.time('Fetching albums')
|
||||
try {
|
||||
const response = await axios.get('playlists/', {
|
||||
params,
|
||||
paramsSerializer: function (params) {
|
||||
return qs.stringify(params, { indices: false })
|
||||
}
|
||||
params
|
||||
})
|
||||
|
||||
result.value = response.data
|
||||
|
|
Loading…
Reference in New Issue