Skip to content
This repository has been archived by the owner on Mar 26, 2023. It is now read-only.

Commit

Permalink
Kayıt olma!!!
Browse files Browse the repository at this point in the history
  • Loading branch information
ayberktandogan committed Oct 6, 2019
1 parent 5b88652 commit 39c2351
Show file tree
Hide file tree
Showing 20 changed files with 40 additions and 37 deletions.
2 changes: 1 addition & 1 deletion .env.example
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
REACT_APP_SITENAME=""
REACT_APP_SITEURL=""
REACT_APP_DISQUS_SHORTNAME=""
REACT_APP_DEV_API_URL=""
REACT_APP_GA_USER_ID=""
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ yazarak çalıştırabilirsiniz. Ancak startlamadan ya da buildlemeden önce aş

#### 1. ./.env
```env
REACT_APP_APPNAME="" // Sitenin ismi. (Example)
REACT_APP_SITENAME="" // Sitenin isim alanı. (www.example.com gibi)
REACT_APP_SITENAME="" // Sitenin ismi. (Example)
REACT_APP_SITEURL="" // Sitenin isim alanı. (www.example.com gibi)
REACT_APP_DISQUS_SHORTNAME="" // Disqus kısa ismini sağlarsanız anime, manga ve bölüm sayfalarında yorum kısmı gösterir.
REACT_APP_DEV_API_URL="" // Dev ortamında istekleri yapmak için kullanacağı alan adı. (http://localhost:5000 gibi)
Expand Down
5 changes: 2 additions & 3 deletions src/components/footer/footer.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,16 +50,15 @@ export default function Footer() {
<FooterCopyrightText>
<FooterInnerDiv theme={theme}>
<Typography variant="h6">
<a href="http://aybertocarlos.com" rel="noopener noreferrer" target="_blank">
<a href="https://aybertocarlos.github.io/" rel="noopener noreferrer" target="_blank">
aybertocarlos &copy; {(new Date()).getFullYear()}
</a>
&nbsp;-&nbsp;
PS v{version}
&nbsp;-&nbsp;
</Typography>
<a href="https://github.com/ayberktandogan/PuzzleSubs-Front-v2" rel="noopener noreferrer" target="_blank">
<a href="https://github.com/ayberktandogan/ForFansubs-Wiki/wiki" rel="noopener noreferrer" target="_blank">
<FooterLogo variant="body2">github</FooterLogo>

</a>
{process.env.REACT_APP_FACEBOOK_LINK ?
<a href={process.env.REACT_APP_FACEBOOK_LINK} rel="noopener noreferrer" target="_blank">
Expand Down
2 changes: 1 addition & 1 deletion src/components/header/header.js
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ export default function MiniDrawer() {
:
<>
<MenuItem onClick={() => handleLoginRegisterButtons("login")}>Giriş yap</MenuItem>
{/*<MenuItem onClick={() => handleLoginRegisterButtons("register")}>Kayıt ol</MenuItem>*/}
<MenuItem onClick={() => handleLoginRegisterButtons("register")}>Kayıt ol</MenuItem>
</>
}
<Divider />
Expand Down
2 changes: 1 addition & 1 deletion src/components/hoc/wrapper.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export default function (props) {
<>
<Header />
<Login />
{/*<Register />*/}
<Register />
<PaddingDiv>
{props.children}
<Footer />
Expand Down
2 changes: 1 addition & 1 deletion src/components/user/login.js
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ export default function LoginModal() {
fullWidth />
<ButtonContainer mt={2}>
<FormButton variant="outlined" type="submit">Giriş yap</FormButton>
{/*<FormButton variant="outlined" onClick={() => setShowModal("register")}>Hesabın yok mu?</FormButton>*/}
<FormButton variant="outlined" onClick={() => setShowModal("register")}>Hesabın yok mu?</FormButton>
</ButtonContainer>
</FormContainer>
</ModalContainer>
Expand Down
2 changes: 1 addition & 1 deletion src/config/theming/dark/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ const transitions = {
}
}

const themeName = 'PuzzleSubs Dark Theme';
const themeName = 'ForFansubs Dark Theme';

const data = { palette, typography, overrides, transitions, props, themeName }

Expand Down
2 changes: 1 addition & 1 deletion src/config/theming/light/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ const transitions = {
}
}

const themeName = 'PuzzleSubs Light Theme';
const themeName = 'ForFansubs Light Theme';

const data = { palette, typography, overrides, transitions, props, themeName }

Expand Down
8 changes: 4 additions & 4 deletions src/pages/ara/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -273,15 +273,15 @@ export default function SearchPage(props) {
<meta name="title" content={title} />
<meta name="description" content={desc} />
<meta property="og:type" content="website" />
<meta property="og:url" content={process.env.REACT_APP_SITENAME + "/ara"} />
<meta property="og:url" content={process.env.REACT_APP_SITEURL + "/ara"} />
<meta property="og:title" content={title} />
<meta property="og:description" content={desc} />
<meta property="og:image" content={process.env.REACT_APP_SITENAME + "/512.png"} />
<meta property="og:image" content={process.env.REACT_APP_SITEURL + "/512.png"} />
<meta property="twitter:card" content="summary_large_image" />
<meta property="twitter:url" content={process.env.REACT_APP_SITENAME + "/ara"} />
<meta property="twitter:url" content={process.env.REACT_APP_SITEURL + "/ara"} />
<meta property="twitter:title" content={title} />
<meta property="twitter:description" content={desc} />
<meta property="twitter:image" content={process.env.REACT_APP_SITENAME + "/512.png"} />
<meta property="twitter:image" content={process.env.REACT_APP_SITEURL + "/512.png"} />
</Helmet>
<PagePlacer container spacing={2}>
<PagePlacer item xs={12} md={2}>
Expand Down
2 changes: 1 addition & 1 deletion src/pages/ceviriler/anime/desktop.js
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ export default function AnimeIndexDesktop(props) {
<ContentCommentsContainer
config={{
identifier: 'anime/' + anime.id,
title: `${anime.name} - ${process.env.REACT_APP_APPNAME} Anime`,
title: `${anime.name} - ${process.env.REACT_APP_SITENAME} Anime`,
}} />
</Box>
</>
Expand Down
10 changes: 5 additions & 5 deletions src/pages/ceviriler/anime/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ export default function AnimePage(props) {
// Delete null objects from downloadLinks
downloadLinks = downloadLinks.filter(d => d)

const title = `${process.env.REACT_APP_APPNAME} ${anime.name} Türkçe ${anime.episodes.length !== 0 ? "İzle ve İndir" : ""}`
const title = `${process.env.REACT_APP_SITENAME} ${anime.name} Türkçe ${anime.episodes.length !== 0 ? "İzle ve İndir" : ""}`
if (!mobile) {
return (
<>
Expand All @@ -85,12 +85,12 @@ export default function AnimePage(props) {
<meta name="title" content={title} />
<meta name="description" content={`${anime.name} Türkçe İzle & İndir - ${anime.synopsis.substring(0, 80)}`} />
<meta property="og:type" content="website" />
<meta property="og:url" content={process.env.REACT_APP_SITENAME + animePage(anime.slug)} />
<meta property="og:url" content={process.env.REACT_APP_SITEURL + animePage(anime.slug)} />
<meta property="og:title" content={title} />
<meta property="og:description" content={`${anime.name} Türkçe İzle & İndir - ${anime.synopsis.substring(0, 80)}`} />
<meta property="og:image" content={anime.cover_art} />
<meta property="twitter:card" content="summary_large_image" />
<meta property="twitter:url" content={process.env.REACT_APP_SITENAME + animePage(anime.slug)} />
<meta property="twitter:url" content={process.env.REACT_APP_SITEURL + animePage(anime.slug)} />
<meta property="twitter:title" content={title} />
<meta property="twitter:description" content={`${anime.name} Türkçe İzle & İndir - ${anime.synopsis.substring(0, 80)}`} />
<meta property="twitter:image" content={anime.cover_art} />
Expand All @@ -107,12 +107,12 @@ export default function AnimePage(props) {
<meta name="title" content={title} />
<meta name="description" content={`${anime.name} Türkçe İzle & İndir - ${anime.synopsis.substring(0, 80)}`} />
<meta property="og:type" content="website" />
<meta property="og:url" content={process.env.REACT_APP_SITENAME + animePage(anime.slug)} />
<meta property="og:url" content={process.env.REACT_APP_SITEURL + animePage(anime.slug)} />
<meta property="og:title" content={title} />
<meta property="og:description" content={`${anime.name} Türkçe İzle & İndir - ${anime.synopsis.substring(0, 80)}`} />
<meta property="og:image" content={anime.cover_art} />
<meta property="twitter:card" content="summary_large_image" />
<meta property="twitter:url" content={process.env.REACT_APP_SITENAME + animePage(anime.slug)} />
<meta property="twitter:url" content={process.env.REACT_APP_SITEURL + animePage(anime.slug)} />
<meta property="twitter:title" content={title} />
<meta property="twitter:description" content={`${anime.name} Türkçe İzle & İndir - ${anime.synopsis.substring(0, 80)}`} />
<meta property="twitter:image" content={anime.cover_art} />
Expand Down
2 changes: 1 addition & 1 deletion src/pages/ceviriler/anime/mobile.js
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ export default function AnimeIndexMobile(props) {
<ContentCommentsContainer
config={{
identifier: 'anime/' + anime.id,
title: `${anime.name} - ${process.env.REACT_APP_APPNAME} Anime`,
title: `${anime.name} - ${process.env.REACT_APP_SITENAME} Anime`,
}} />
</Box>
</>
Expand Down
2 changes: 1 addition & 1 deletion src/pages/ceviriler/manga/desktop.js
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ export default function MangaIndexDesktop(props) {
<ContentCommentsContainer
config={{
identifier: 'manga/' + manga.id,
title: `${manga.name} - ${process.env.REACT_APP_APPNAME} Manga`,
title: `${manga.name} - ${process.env.REACT_APP_SITENAME} Manga`,
}} />
</Box>
</>
Expand Down
10 changes: 5 additions & 5 deletions src/pages/ceviriler/manga/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export default function MangaPage(props) {
}

if (!loading) {
const title = `${process.env.REACT_APP_APPNAME} ${manga.name} Türkçe ${manga.mos_link ? "Oku" : ""} ${manga.download_link ? "İndir" : ""}`
const title = `${process.env.REACT_APP_SITENAME} ${manga.name} Türkçe ${manga.mos_link ? "Oku" : ""} ${manga.download_link ? "İndir" : ""}`

if (!mobile) {
return (
Expand All @@ -68,12 +68,12 @@ export default function MangaPage(props) {
<meta name="title" content={title} />
<meta name="description" content={`${manga.name} Türkçe İzle & İndir - ${manga.synopsis.substring(0, 80)}`} />
<meta property="og:type" content="website" />
<meta property="og:url" content={process.env.REACT_APP_SITENAME + mangaPage(manga.slug)} />
<meta property="og:url" content={process.env.REACT_APP_SITEURL + mangaPage(manga.slug)} />
<meta property="og:title" content={title} />
<meta property="og:description" content={`${manga.name} Türkçe İzle & İndir - ${manga.synopsis.substring(0, 80)}`} />
<meta property="og:image" content={manga.cover_art} />
<meta property="twitter:card" content="summary_large_image" />
<meta property="twitter:url" content={process.env.REACT_APP_SITENAME + mangaPage(manga.slug)} />
<meta property="twitter:url" content={process.env.REACT_APP_SITEURL + mangaPage(manga.slug)} />
<meta property="twitter:title" content={title} />
<meta property="twitter:description" content={`${manga.name} Türkçe İzle & İndir - ${manga.synopsis.substring(0, 80)}`} />
<meta property="twitter:image" content={manga.cover_art} />
Expand All @@ -91,12 +91,12 @@ export default function MangaPage(props) {
<meta name="title" content={title} />
<meta name="description" content={`${manga.name} Türkçe İzle & İndir - ${manga.synopsis.substring(0, 80)}`} />
<meta property="og:type" content="website" />
<meta property="og:url" content={process.env.REACT_APP_SITENAME + mangaPage(manga.slug)} />
<meta property="og:url" content={process.env.REACT_APP_SITEURL + mangaPage(manga.slug)} />
<meta property="og:title" content={title} />
<meta property="og:description" content={`${manga.name} Türkçe İzle & İndir - ${manga.synopsis.substring(0, 80)}`} />
<meta property="og:image" content={manga.cover_art} />
<meta property="twitter:card" content="summary_large_image" />
<meta property="twitter:url" content={process.env.REACT_APP_SITENAME + mangaPage(manga.slug)} />
<meta property="twitter:url" content={process.env.REACT_APP_SITEURL + mangaPage(manga.slug)} />
<meta property="twitter:title" content={title} />
<meta property="twitter:description" content={`${manga.name} Türkçe İzle & İndir - ${manga.synopsis.substring(0, 80)}`} />
<meta property="twitter:image" content={manga.cover_art} />
Expand Down
2 changes: 1 addition & 1 deletion src/pages/ceviriler/manga/mobile.js
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ export default function MangaIndexMobile(props) {
<ContentCommentsContainer
config={{
identifier: 'manga/' + manga.id,
title: `${manga.name} - ${process.env.REACT_APP_APPNAME} Manga`,
title: `${manga.name} - ${process.env.REACT_APP_SITENAME} Manga`,
}} />
</Box>
</>
Expand Down
2 changes: 1 addition & 1 deletion src/pages/ekip-alimlari/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const CardImage = styled(Box)`
`

export default function EkipAlimlariPage() {
document.title = `Ekip Alımları - ${process.env.REACT_APP_APPNAME}`
document.title = `Ekip Alımları - ${process.env.REACT_APP_SITENAME}`
ReactGA.pageview(window.location.pathname)

const boxes = [
Expand Down
8 changes: 4 additions & 4 deletions src/pages/episode/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -211,8 +211,8 @@ export default function EpisodePage(props) {
))
}

const title = `${animeData.name} ${activeEpisode.title} Türkçe İzle - ${process.env.REACT_APP_APPNAME} Anime`
const desc = `${animeData.name} ${activeEpisode.title} Türkçe İzle ve İndir - ${process.env.REACT_APP_APPNAME} Anime İzle`
const title = `${animeData.name} ${activeEpisode.title} Türkçe İzle - ${process.env.REACT_APP_SITENAME} Anime`
const desc = `${animeData.name} ${activeEpisode.title} Türkçe İzle ve İndir - ${process.env.REACT_APP_SITENAME} Anime İzle`

return (
<>
Expand All @@ -221,12 +221,12 @@ export default function EpisodePage(props) {
<meta name="title" content={title} />
<meta name="description" content={desc} />
<meta property="og:type" content="website" />
<meta property="og:url" content={process.env.REACT_APP_SITENAME + episodePage(props.match.params.slug, activeEpisode.slug)} />
<meta property="og:url" content={process.env.REACT_APP_SITEURL + episodePage(props.match.params.slug, activeEpisode.slug)} />
<meta property="og:title" content={title} />
<meta property="og:description" content={desc} />
<meta property="og:image" content={animeData.cover_art} />
<meta property="twitter:card" content="summary_large_image" />
<meta property="twitter:url" content={process.env.REACT_APP_SITENAME + episodePage(props.match.params.slug, activeEpisode.slug)} />
<meta property="twitter:url" content={process.env.REACT_APP_SITEURL + episodePage(props.match.params.slug, activeEpisode.slug)} />
<meta property="twitter:title" content={title} />
<meta property="twitter:description" content={desc} />
<meta property="twitter:image" content={animeData.cover_art} />
Expand Down
2 changes: 1 addition & 1 deletion src/pages/index/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ export default function IndexPage() {
batchEpisodesWindow = <Error type="featured" />
}

const title = `${process.env.REACT_APP_APPNAME} Türkçe Anime ve Manga Çeviri Grubu`
const title = `${process.env.REACT_APP_SITENAME} Türkçe Anime ve Manga Çeviri Grubu`

return (
<>
Expand Down
2 changes: 1 addition & 1 deletion src/pages/sss/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import Typography from '@material-ui/core/Typography'
import useTheme from '@material-ui/styles/useTheme';

export default function SSSPage() {
document.title = `SSS - ${process.env.REACT_APP_APPNAME}`
document.title = `SSS - ${process.env.REACT_APP_SITENAME}`
ReactGA.pageview(window.location.pathname)
const theme = useTheme()

Expand Down
6 changes: 5 additions & 1 deletion src/serviceWorker.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ function isAdminRoute() {
return window.location.pathname.startsWith('/admin')
}

function isRegisterRoute() {
return window.location.pathname.startsWith('/kayit-tamamla')
}

export function register(config) {
if (process.env.NODE_ENV === 'production' && 'serviceWorker' in navigator) {
// The URL constructor is available in all browsers that support SW.
Expand All @@ -36,7 +40,7 @@ export function register(config) {
}

window.addEventListener('load', () => {
if (isAdminRoute()) {
if (isAdminRoute() || isRegisterRoute()) {
console.info('unregistering service worker for admin route')
unregister()
console.info('reloading')
Expand Down

0 comments on commit 39c2351

Please sign in to comment.