Normalize to double quotes across all files with Prettier
This commit is contained in:
1 parent
73bff72cec
commit
a5659cf4c8
190 files changed
+9523
-8859
No files matched your search
@@ -1,11 +1,11 @@
|
||||
import { api } from '@/lib/api';
|
||||
import { normalizeCollection } from '@/lib/normalizers';
|
||||
import type { Collection } from '@/types';
|
||||
import { api } from "@/lib/api";
|
||||
import { normalizeCollection } from "@/lib/normalizers";
|
||||
import type { Collection } from "@/types";
|
||||
|
||||
export const collectionsApi = {
|
||||
getAll: () =>
|
||||
api
|
||||
.get<Collection[]>('/collections')
|
||||
.get<Collection[]>("/collections")
|
||||
.then((r) => r.data.map(normalizeCollection)),
|
||||
|
||||
getById: (id: number) =>
|
||||
@@ -14,23 +14,26 @@ export const collectionsApi = {
|
||||
.then((r) => normalizeCollection(r.data)),
|
||||
|
||||
create: (data: Partial<Collection>) =>
|
||||
api.post<Collection>('/collections', data).then((r) => r.data),
|
||||
api.post<Collection>("/collections", data).then((r) => r.data),
|
||||
|
||||
update: (id: number, data: Partial<Collection>) =>
|
||||
api.put<Collection>(`/collections/${id}`, data).then((r) => normalizeCollection(r.data)),
|
||||
api
|
||||
.put<Collection>(`/collections/${id}`, data)
|
||||
.then((r) => normalizeCollection(r.data)),
|
||||
|
||||
updateWithMedia: (id: number, formData: FormData) =>
|
||||
api
|
||||
.put<Collection>(`/collections/${id}`, formData, {
|
||||
headers: { 'Content-Type': 'multipart/form-data' },
|
||||
headers: { "Content-Type": "multipart/form-data" },
|
||||
})
|
||||
.then((r) => normalizeCollection(r.data)),
|
||||
|
||||
delete: (id: number) =>
|
||||
api.delete(`/collections/${id}`).then((r) => r.data),
|
||||
delete: (id: number) => api.delete(`/collections/${id}`).then((r) => r.data),
|
||||
|
||||
getCollectionParts: (id: number) =>
|
||||
api.put<Collection>(`/collections/${id}/parts`).then((r) => normalizeCollection(r.data)),
|
||||
api
|
||||
.put<Collection>(`/collections/${id}/parts`)
|
||||
.then((r) => normalizeCollection(r.data)),
|
||||
|
||||
addEntry: (collectionId: number, entryId: number) =>
|
||||
api
|
||||
|
||||
Reference in new issue
Block a user