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

Bookmarks view with grid + redux actions

This commit is contained in:
unknown 2021-05-23 18:38:39 +02:00
parent 27250dc850
commit e22e5afcb9
20 changed files with 297 additions and 19 deletions

View file

@ -1,4 +1,4 @@
import { Model } from './Api';
import { Model } from '.';
export interface App extends Model {
name: string;

View file

@ -0,0 +1,7 @@
import { Model } from '.';
export interface Bookmark extends Model {
name: string;
url: string;
categoryId: number;
}

View file

@ -0,0 +1,11 @@
import { Model, Bookmark } from '.';
export interface Category extends Model {
name: string;
isPinned: boolean;
bookmarks: Bookmark[];
}
export interface NewCategory {
name: string;
}

View file

@ -1,7 +1,9 @@
import { State as AppState } from '../store/reducers/app';
import { State as ThemeState } from '../store/reducers/theme';
import { State as BookmarkState } from '../store/reducers/bookmark';
export interface GlobalState {
theme: ThemeState;
app: AppState;
bookmark: BookmarkState;
}

View file

@ -1,4 +1,4 @@
import { Model } from './Api';
import { Model } from '.';
export interface Weather extends Model {
externalLastUpdate: string;

View file

@ -2,4 +2,6 @@ export * from './App';
export * from './Theme';
export * from './GlobalState';
export * from './Api';
export * from './Weather';
export * from './Weather';
export * from './Bookmark';
export * from './Category';