-
-
Notifications
You must be signed in to change notification settings - Fork 0
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
Showing
12 changed files
with
61 additions
and
35 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
export const languages = { | ||
"tr": { name: "Türkçe", englishName: "Turkish" }, | ||
"en": { name: "English", englishName: "English" }, | ||
}; | ||
|
||
export const defaultLanguageCode = "tr"; | ||
|
||
export type LanguageCode = keyof typeof languages; | ||
export type Language = typeof languages[typeof defaultLanguageCode]; |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,8 +1,8 @@ | ||
export type ProfilePage = { | ||
export interface ProfilePage { | ||
id: string; | ||
slug: string; | ||
title: string; | ||
content: string; | ||
order: number; | ||
publishedAt: string | null; | ||
}; | ||
} |
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 |
---|---|---|
@@ -1,20 +1,28 @@ | ||
import { type ProfileLink } from "./profile-link.ts"; | ||
import { type ProfilePage } from "./profile-page.ts"; | ||
import { type LanguageCode } from "./languages.ts"; | ||
|
||
export type ProfileType = "Individual" | "Organization" | "Product" | "Venue"; | ||
|
||
export type Profile = { | ||
export interface ProfileTx { | ||
title: string; | ||
description: string; | ||
} | ||
|
||
export interface ProfileEntity { | ||
id: string; | ||
type: ProfileType; | ||
slug: string; | ||
title: string; | ||
description: string; | ||
profilePictureUri: string | null; | ||
|
||
tx: Partial<Record<LanguageCode, ProfileTx>>; | ||
|
||
showStories: boolean; | ||
showMembers: boolean; | ||
} | ||
|
||
export interface Profile extends Omit<ProfileEntity, "tx">, ProfileTx { | ||
links: Array<ProfileLink> | undefined; | ||
pages: Array<ProfilePage> | undefined; | ||
// stories: Array<ProfileStory> | undefined; | ||
}; | ||
} |
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
export interface ResultType<T> { | ||
payload: T; | ||
payload: T | null; | ||
error?: { | ||
message: string; | ||
}; | ||
|
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