mirror of
https://github.com/pawelmalak/flame.git
synced 2026-03-10 14:33:11 +08:00
Split categories and bookmarks forms into separate files. Added visibility functionality to categories and bookmarks
This commit is contained in:
@@ -1,15 +1,11 @@
|
||||
import { Model } from '.';
|
||||
|
||||
export interface Bookmark extends Model {
|
||||
name: string;
|
||||
url: string;
|
||||
categoryId: number;
|
||||
icon: string;
|
||||
}
|
||||
|
||||
export interface NewBookmark {
|
||||
name: string;
|
||||
url: string;
|
||||
categoryId: number;
|
||||
icon: string;
|
||||
}
|
||||
isPublic: boolean;
|
||||
}
|
||||
|
||||
export interface Bookmark extends Model, NewBookmark {}
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
import { Model, Bookmark } from '.';
|
||||
|
||||
export interface Category extends Model {
|
||||
export interface NewCategory {
|
||||
name: string;
|
||||
isPublic: boolean;
|
||||
}
|
||||
|
||||
export interface Category extends Model, NewCategory {
|
||||
isPinned: boolean;
|
||||
orderId: number;
|
||||
bookmarks: Bookmark[];
|
||||
}
|
||||
|
||||
export interface NewCategory {
|
||||
name: string;
|
||||
}
|
||||
Reference in New Issue
Block a user