Skip to content

Commit

Permalink
Reenable ads
Browse files Browse the repository at this point in the history
  • Loading branch information
Dianliang233 committed Oct 16, 2024
1 parent 7817b8d commit 5a43954
Show file tree
Hide file tree
Showing 10 changed files with 5,048 additions and 7,741 deletions.
15 changes: 15 additions & 0 deletions .yarn/sdks/eslint/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 15 additions & 0 deletions .yarn/sdks/prettier/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 16 additions & 0 deletions .yarn/sdks/typescript/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/components/form/log/LogAccordion.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ const LogAccordion = forwardRef(
startIcon={<Heart />}
variant="contained"
color="error"
href="https://afdian.net/@teahouse"
href="https://afdian.com/@teahouse"
target="_blank"
rel="noopener noreferrer"
onClick={() => {
Expand Down Expand Up @@ -347,7 +347,7 @@ const LogAccordion = forwardRef(
className="donate-button"
startIcon={<Heart />}
color="error"
href="https://afdian.net/@teahouse"
href="https://afdian.com/@teahouse"
target="_blank"
rel="noopener noreferrer"
sx={{ mr: 1 }}
Expand Down
2 changes: 1 addition & 1 deletion src/components/sponsor/SponsorButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export default function SponsorButton(props: ButtonProps<'a'>) {
className="donate-button"
startIcon={<Heart />}
color="error"
href="https://afdian.net/@teahouse"
href="https://afdian.com/@teahouse"
target="_blank"
rel="noopener noreferrer"
onClick={() => {
Expand Down
2 changes: 1 addition & 1 deletion src/components/sponsor/SponsorsList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ export default function QuoteAd() {
</Typography>
<Typography variant="body1">{t('sponsor.thankYou')}</Typography>
<a
href="https://afdian.net/@teahouse"
href="https://afdian.com/@teahouse"
rel="noopener noreferrer"
target="_blank"
title="爱发电赞助者列表"
Expand Down
2 changes: 1 addition & 1 deletion src/components/template/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ export default function TeahouseFooter() {
<Github />
</LinkIconButton>
<LinkIconButton
href="https://afdian.net/@teahouse"
href="https://afdian.com/@teahouse"
title="爱发电"
>
<LightningBolt />
Expand Down
3 changes: 1 addition & 2 deletions src/hooks/useAd.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,7 @@ export function useAd() {
return {
adStorage,
setAdStorage,
// shouldDisplayAd,
shouldDisplayAd: false,
shouldDisplayAd,
adType,
adAccepted,
adDismissed,
Expand Down
2 changes: 1 addition & 1 deletion src/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@
"firstTime": "This might be a bit awkward, but please don't scroll away. Today we humbly ask for your help in order for us to better create. We never any ads on the website, but it needs ¥5 to survive every day. This fund has been paid by members of the Studio since Day 1. However, among the thousands who use this pack, only 15‰ or the people bas actually donate and supported us (this is the real number). If you can donate ¥10 today, we will work harder than ever, and you will be shouted out on out bilibili post. If our pack has ever brought you ¥10 worth of fun and laughter, please give us some support now. Thank you.",
"reconsider": "Hey! Nice to see ya! We are asking you for help again. You may not like it, but we need your help. If you are still hesitating, we want you pull out some info: We never any ads on the website, but it needs ¥5 to survive every day. This fund has been paid by members of the Studio since Day 1. However, among the thousands who use this pack, only 15‰ or the people bas actually donate and supported us (this is the real number). If you can donate ¥10 today, we will work harder than ever, and you will be shouted out on out bilibili post. If our pack has ever brought you ¥10 worth of fun and laughter, please give us some support now. Thank you.",
"renew": "Thanks for your previous support! Even if you just clicked the link to have a look, but thank you anyway. It really helps us A LOT! Although this is kinda shameless, but it's been a while since your previous donation. If you want to keep supporting our creation, please click the Donate button. Nope? All right, no problem! Thank you.",
"donationNotice": "Please do not make a donation unless you are an adult or with parental advisory. We recommend you to only make a donation if you are economic independent. Full refund available in 7 days after donation (transaction fee not included). Partial refund available in 30 days after donation. Supports Alipay and WeChat Pay. Your transaction will be processed by afdian.net and afidian.net terms apply. 6% transaction fee is needed and will be deducted from your donation.",
"donationNotice": "Please do not make a donation unless you are an adult or with parental advisory. We recommend you to only make a donation if you are economic independent. Full refund available in 7 days after donation (transaction fee not included). Partial refund available in 30 days after donation. Supports Alipay and WeChat Pay. Your transaction will be processed by afdian.com and afidian.net terms apply. 6% transaction fee is needed and will be deducted from your donation.",
"donateSnackbar": "Thanks for your donation!"
},
"howToInstall": "How to install?",
Expand Down
Loading

0 comments on commit 5a43954

Please sign in to comment.