From edb611f0111b46e4276c4f69ec1cfc549f847c9c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Rodrigo?= Date: Mon, 25 Sep 2023 13:35:43 +0200 Subject: [PATCH] fix: fix API data structure --- lib/apiContent.ts | 2 -- lib/apiMenu.ts | 4 +--- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/lib/apiContent.ts b/lib/apiContent.ts index c97a22728..c8d051d7a 100644 --- a/lib/apiContent.ts +++ b/lib/apiContent.ts @@ -1,8 +1,6 @@ import { VidoConfig } from '~/utils/types-config' export type ContentEntry = { - // eslint-disable-next-line camelcase - post_id: number title: string url: string } diff --git a/lib/apiMenu.ts b/lib/apiMenu.ts index c2aef49ca..5595aa928 100644 --- a/lib/apiMenu.ts +++ b/lib/apiMenu.ts @@ -57,8 +57,6 @@ export interface ApiMenuGroup extends ApiMenuItem { // eslint-disable-next-line camelcase color_line: string // eslint-disable-next-line camelcase - style_class?: string[] - // eslint-disable-next-line camelcase display_mode: 'large' | 'compact' } link: undefined @@ -94,7 +92,7 @@ export interface ApiMenuCategory extends ApiMenuItem { // eslint-disable-next-line camelcase color_line: string // eslint-disable-next-line camelcase - style_class: string[] + style_class?: string[] // eslint-disable-next-line camelcase style_merge: boolean // eslint-disable-next-line camelcase