-
Notifications
You must be signed in to change notification settings - Fork 164
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
56a4db2
commit 727d422
Showing
6 changed files
with
81 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
export type ThemeAndAuthor = { | ||
Theme: Theme; | ||
Author: Author; | ||
}; | ||
|
||
export type Theme = { | ||
id: number; | ||
slug: string; | ||
title: string; | ||
featured: boolean; | ||
description: string; | ||
fullDescription: string; | ||
body: string; | ||
image: string; | ||
images: Array<string>; // array of strings with URL's | ||
authorId: number; | ||
repoUrl?: string; | ||
demoUrl?: string; | ||
buyUrl?: string; | ||
links: Array<string>; // array of strings with URL's | ||
paid: boolean; | ||
stars: number; | ||
publishDate: Date; | ||
updatedAt?: Date; | ||
approved: boolean; | ||
denied: boolean; | ||
hidden: boolean; | ||
}; | ||
|
||
export type ThemeHasCategory = { | ||
themeId: number; | ||
categoryId: number; | ||
}; | ||
|
||
export type ThemeHasTool = { | ||
themeId: number; | ||
toolId: number; | ||
}; | ||
|
||
export type Author = { | ||
id: number; | ||
url?: string; | ||
name: string; | ||
email?: string; | ||
avatar?: string; | ||
role: string; | ||
githubId: number; | ||
username: string; | ||
updatedAt: Date; | ||
createdAt: Date; | ||
}; | ||
|
||
export type ThemeCategory = { | ||
id: number; | ||
value: string; | ||
name: string; | ||
}; | ||
|
||
export type ThemeTool = { | ||
id: number; | ||
value: string; | ||
name: string; | ||
}; |