Done
This commit is contained in:
@@ -0,0 +1,47 @@
|
||||
import type { Config as ZiggyConfig } from 'ziggy-js';
|
||||
|
||||
export interface User {
|
||||
id: number;
|
||||
name: string;
|
||||
email: string;
|
||||
email_verified_at: string | null;
|
||||
}
|
||||
|
||||
export interface Auth {
|
||||
user: User | null;
|
||||
}
|
||||
|
||||
export interface NavCategory {
|
||||
id: number;
|
||||
parent_id: number | null;
|
||||
title: string;
|
||||
children?: NavCategory[];
|
||||
}
|
||||
|
||||
export interface SharedData {
|
||||
name: string;
|
||||
auth: Auth;
|
||||
navigation_categories: NavCategory[];
|
||||
ziggy: ZiggyConfig & { location: string };
|
||||
[key: string]: unknown;
|
||||
}
|
||||
|
||||
export type FeedType = 'rss' | 'atom';
|
||||
|
||||
export interface Feed {
|
||||
id: number;
|
||||
url: string;
|
||||
type: FeedType;
|
||||
paywall: boolean;
|
||||
}
|
||||
|
||||
export interface Category {
|
||||
id: number;
|
||||
parent_id: number | null;
|
||||
title: string;
|
||||
description: string | null;
|
||||
feeds: Feed[];
|
||||
children?: Category[];
|
||||
}
|
||||
|
||||
|
||||
Vendored
+10
@@ -0,0 +1,10 @@
|
||||
// resources/js/types/ziggy.d.ts
|
||||
import { route as routeFn } from 'ziggy-js';
|
||||
|
||||
declare module 'vue' {
|
||||
interface ComponentCustomProperties {
|
||||
route: typeof routeFn;
|
||||
}
|
||||
}
|
||||
|
||||
export {};
|
||||
Reference in New Issue
Block a user