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:
parent
27250dc850
commit
e22e5afcb9
20 changed files with 297 additions and 19 deletions
|
@ -1,4 +1,4 @@
|
|||
import { Model } from './Api';
|
||||
import { Model } from '.';
|
||||
|
||||
export interface App extends Model {
|
||||
name: string;
|
||||
|
|
7
client/src/interfaces/Bookmark.ts
Normal file
7
client/src/interfaces/Bookmark.ts
Normal file
|
@ -0,0 +1,7 @@
|
|||
import { Model } from '.';
|
||||
|
||||
export interface Bookmark extends Model {
|
||||
name: string;
|
||||
url: string;
|
||||
categoryId: number;
|
||||
}
|
11
client/src/interfaces/Category.ts
Normal file
11
client/src/interfaces/Category.ts
Normal 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;
|
||||
}
|
|
@ -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;
|
||||
}
|
|
@ -1,4 +1,4 @@
|
|||
import { Model } from './Api';
|
||||
import { Model } from '.';
|
||||
|
||||
export interface Weather extends Model {
|
||||
externalLastUpdate: string;
|
||||
|
|
|
@ -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';
|
Loading…
Add table
Add a link
Reference in a new issue