Skip to content

Commit

Permalink
Merge pull request #134 from aura-nw/staging
Browse files Browse the repository at this point in the history
Staging
  • Loading branch information
harisato authored Dec 20, 2024
2 parents 7c8b21a + ce057a5 commit f5f5dad
Show file tree
Hide file tree
Showing 10 changed files with 522 additions and 374 deletions.
2 changes: 1 addition & 1 deletion public/devConfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"REDIRECT_URL": "https://dev.punkga.me",
"REDIRECT_URL": "https://app.dev.punkga.me",
"CHAIN_ID": "aura_6321-3",
"CHAIN_INFO": {
"chainId": "aura_6321-3",
Expand Down
2 changes: 1 addition & 1 deletion public/mainConfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"REDIRECT_URL": "https://punkga.me",
"REDIRECT_URL": "https://app.punkga.me",
"CHAIN_ID": "aura_6322-2",
"CHAIN_INFO": {
"chainId": "aura_6322-2",
Expand Down
2 changes: 1 addition & 1 deletion public/stagingConfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"REDIRECT_URL": "https://staging.punkga.me",
"REDIRECT_URL": "https://app.staging.punkga.me",
"CHAIN_ID": "aura_6321-3",
"CHAIN_INFO": {
"chainId": "aura_6321-3",
Expand Down
501 changes: 285 additions & 216 deletions src/components/Header/components/Drawer.tsx

Large diffs are not rendered by default.

377 changes: 227 additions & 150 deletions src/components/Header/components/UserDropdown.tsx

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions src/components/pages/homepage/manga.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ export default function Manga(props: IComic) {
setLineClamp(res > 3 ? 3 : res)
}
}, [])
console.log(props)
return (
<Link
href={width < 1280 ? `/comic/${props.slug}` : `/comic/${props.slug}/chapter/1`}
Expand Down
7 changes: 4 additions & 3 deletions src/context/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -335,6 +335,7 @@ function ContextProvider({ children }: any) {
activeWalletAddress: res.active_wallet_address,
noncustodialWalletAddress: res.wallet_address,
tonWalletAddress: res.ton_wallet_address,
activities: res?.punkga_wallets?.[0]?.punkga_wallet_activities,
} as IUser)
}
if (!res.email_verified_at && res.email) {
Expand Down Expand Up @@ -483,9 +484,9 @@ function ContextProvider({ children }: any) {
}

const removeTokenCookie = () => {
removeCookie('token', { path: '/', domain: '.punkga.me' })
removeCookie('token', { path: '/', domain: '.staging.punkga.me' })
removeCookie('token', { path: '/', domain: '.dev.punkga.me' })
removeCookie('token', { path: '/', domain: '.app.punkga.me' })
removeCookie('token', { path: '/', domain: '.app.staging.punkga.me' })
removeCookie('token', { path: '/', domain: '.app.dev.punkga.me' })
}

if (isSettingUp) {
Expand Down
1 change: 1 addition & 0 deletions src/models/user.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,5 @@ export interface IUser {
quests: any
rank: number
activeWalletAddress: string
activities: any[]
}
2 changes: 1 addition & 1 deletion src/pages/events/your-city/submit/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ function PageContent() {
})
const [IPList, setIPList] = useState([])
useEffect(() => {
if (moment().tz('Asia/Ho_Chi_Minh').isAfter(moment.tz('2025-01-01', 'Asia/Ho_Chi_Minh'))) {
if (moment().tz('Asia/Ho_Chi_Minh').isAfter(moment.tz('2025-01-15', 'Asia/Ho_Chi_Minh'))) {
replace('/events/your-city')
}
}, [])
Expand Down
1 change: 0 additions & 1 deletion src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,6 @@ function Home() {
})
: latestComic.data?.length
? latestComic.data
.filter((data: any) => data.tags.every((lang: any) => lang.en.toLowerCase() != 'invent contest'))
.filter((data) =>
statusFilter.length && !statusFilter.some((s) => s.key == 'All status')
? statusFilter.some((filter) => data.status.text == filter?.key)
Expand Down

0 comments on commit f5f5dad

Please sign in to comment.