Skip to content

Commit

Permalink
feat: add theme repository and domain
Browse files Browse the repository at this point in the history
  • Loading branch information
jonyw4 committed Nov 22, 2021
1 parent ed4d32c commit 7827c06
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 0 deletions.
6 changes: 6 additions & 0 deletions webapp/src/data/ThemeRepository.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import { Theme } from "../domain/Theme";

export interface ThemeRepository {
getTheme(): Theme;
changeTheme(theme: Theme): void;
}
1 change: 1 addition & 0 deletions webapp/src/data/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
export * from './ArticleRepository';
export * from './ThemeRepository';
1 change: 1 addition & 0 deletions webapp/src/domain/Theme.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export type Theme = 'dark' | 'light';
1 change: 1 addition & 0 deletions webapp/src/domain/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
export * from './Article';
export * from './ArticleMetadata';
export * from './Theme';

0 comments on commit 7827c06

Please sign in to comment.