-
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.
Merge pull request #35 from ilyasbozdemir/case-project
Case project
- Loading branch information
Showing
37 changed files
with
9,634 additions
and
8,683 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
2,459 changes: 0 additions & 2,459 deletions
2,459
...backend/Infrastructure/LibraryTrackingApp.Persistence/Migrations/20240503105539_mig001.cs
This file was deleted.
Oops, something went wrong.
5,854 changes: 2,927 additions & 2,927 deletions
5,854
...rations/20240503105539_mig001.Designer.cs → ...rations/20240505144749_mig001.Designer.cs
Large diffs are not rendered by default.
Oops, something went wrong.
2,459 changes: 2,459 additions & 0 deletions
2,459
...backend/Infrastructure/LibraryTrackingApp.Persistence/Migrations/20240505144749_mig001.cs
Large diffs are not rendered by default.
Oops, something went wrong.
5,852 changes: 2,926 additions & 2,926 deletions
5,852
...astructure/LibraryTrackingApp.Persistence/Migrations/AppIdentityDbContextModelSnapshot.cs
Large diffs are not rendered by default.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
import { useApp } from "@/contexts/AppContext"; | ||
import FacebookPixel from "@/plugins/FacebookPixel"; | ||
import GoogleAnalytics from "@/plugins/GoogleAnalytics"; | ||
import GoogleTagManager from "@/plugins/GoogleTagManager"; | ||
import GoogleTagManagerBody from "@/plugins/GoogleTagManagerBody"; | ||
import LinkedInInsightTag from "@/plugins/LinkedInInsightTag"; | ||
import TiktokPixel from "@/plugins/TiktokPixel"; | ||
import Head from "next/head"; | ||
import React from "react"; | ||
|
||
const Analytics = ({ isAdmin = false }) => { | ||
const { analytics, adminAnalytics } = useApp(); | ||
|
||
const selectedAnalytics = isAdmin ? adminAnalytics : analytics; | ||
|
||
return ( | ||
<> | ||
<Head> | ||
{selectedAnalytics.GoogleAnalytics.isActive && ( | ||
<GoogleAnalytics code={selectedAnalytics.GoogleAnalytics.code} /> | ||
)} | ||
{selectedAnalytics.FacebookPixel.isActive && ( | ||
<FacebookPixel code={selectedAnalytics.FacebookPixel.code} /> | ||
)} | ||
{selectedAnalytics.GoogleTagManager.isActive && ( | ||
<GoogleTagManager code={selectedAnalytics.GoogleTagManager.code} /> | ||
)} | ||
{selectedAnalytics.TiktokPixel.isActive && ( | ||
<TiktokPixel code={selectedAnalytics.TiktokPixel.code} /> | ||
)} | ||
{selectedAnalytics.LinkedInInsightTag.isActive && ( | ||
<LinkedInInsightTag | ||
code={selectedAnalytics.LinkedInInsightTag.code} | ||
/> | ||
)} | ||
</Head> | ||
<> | ||
{selectedAnalytics.GoogleAnalytics.isActive && ( | ||
<GoogleTagManagerBody code={selectedAnalytics.GoogleAnalytics.code} /> | ||
)} | ||
</> | ||
</> | ||
); | ||
}; | ||
|
||
export default Analytics; |
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
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
39 changes: 39 additions & 0 deletions
39
LibraryTrackingApp/src/frontend/layouts/Forum/components/Footer.jsx
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,39 @@ | ||
import { | ||
Link as CLink, | ||
Flex, | ||
} from "@chakra-ui/react"; | ||
|
||
|
||
import React from "react"; | ||
|
||
const Footer = () => { | ||
|
||
|
||
return ( | ||
<Flex justifyContent={'center'}> | ||
<FooterData/> | ||
</Flex> | ||
); | ||
}; | ||
|
||
|
||
const FooterData = () => { | ||
const startYear = 2023; | ||
const currentYear = new Date().getFullYear(); | ||
let yearText; | ||
if (currentYear > startYear) { | ||
yearText = `${startYear}-${currentYear}`; | ||
} else { | ||
yearText = `${startYear}`; | ||
} | ||
return <> {yearText} © Tüm Hakları Saklıdır.</>; | ||
}; | ||
export async function getStaticProps({ locale }) { | ||
return { | ||
props: { | ||
...(await serverSideTranslations(locale, ["common"])), | ||
}, | ||
}; | ||
} | ||
|
||
export default React.memo(Footer); |
Oops, something went wrong.