1
0
Fork 0
mirror of https://github.com/pawelmalak/flame.git synced 2025-08-04 02:15:18 +02:00

Split categories and bookmarks forms into separate files. Added visibility functionality to categories and bookmarks

This commit is contained in:
Paweł Malak 2021-11-09 23:40:58 +01:00
parent f127a354ef
commit d83e3056c6
16 changed files with 484 additions and 369 deletions

View file

@ -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 {}

View file

@ -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;
}