Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
sweepstake
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Arjun Jhukal
sweepstake
Commits
c1a57457
Commit
c1a57457
authored
Oct 27, 2025
by
Arjun Jhukal
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
updated the meta for site dynamic
parent
d64c3642
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
26 additions
and
1 deletions
+26
-1
favicon.ico
src/app/favicon.ico
+0
-0
layout.tsx
src/app/layout.tsx
+22
-1
SiteSetting.tsx
...s/pages/dashboard/adminDashboard/settings/SiteSetting.tsx
+0
-0
game.ts
src/serverApi/game.ts
+4
-0
No files found.
src/app/favicon.ico
deleted
100644 → 0
View file @
d64c3642
File deleted
src/app/layout.tsx
View file @
c1a57457
...
...
@@ -5,15 +5,36 @@ import ProviderWrapper from "./ProviderWrapper";
import
{
AgeChecker
}
from
"./AgeChecker"
;
import
TopLoader
from
"./TopLoader"
;
import
React
from
"react"
;
import
{
pageSEO
}
from
"@/serverApi/game"
;
export
const
metadata
:
Metadata
=
{
const
metadata
:
Metadata
=
{
title
:
"Sweepstake"
,
description
:
"Sweepstake - Online Gaming Platform"
,
icons
:
{
icon
:
"/assets/images/logo.png"
,
},
};
export
async
function
generateMetadata
():
Promise
<
Metadata
>
{
try
{
const
response
=
await
pageSEO
();
const
seoData
=
response
;
console
.
log
(
response
);
return
{
title
:
seoData
?.
data
?.
site_name
||
metadata
.
title
,
description
:
seoData
?.
data
?.
description
||
metadata
.
description
,
openGraph
:
{
title
:
seoData
?.
data
?.
site_name
||
seoData
?.
data
?.
site_name
||
metadata
.
title
,
description
:
seoData
?.
data
?.
description
||
seoData
?.
data
?.
description
||
metadata
.
description
,
images
:
seoData
?.
data
?.
logo
?
[
seoData
.
logo
]
:
[
"/assets/images/logo.png"
],
},
icons
:
seoData
?.
favicon
||
metadata
.
icons
,
};
}
catch
(
error
)
{
console
.
error
(
"SEO metadata fetch failed:"
,
error
);
return
metadata
;
}
}
const
inter
=
Inter
({
subsets
:
[
'latin'
],
fallback
:
[
'sans-serif'
],
...
...
src/components/pages/dashboard/adminDashboard/settings/SiteSetting.tsx
View file @
c1a57457
This diff is collapsed.
Click to expand it.
src/serverApi/game.ts
View file @
c1a57457
...
...
@@ -8,6 +8,9 @@ export async function getAllGames(): Promise<GameResponseProps> {
export
async
function
getSubGames
():
Promise
<
any
>
{
return
serverBaseQuery
(
"/api/general/home/sub-games"
);
}
export
async
function
pageSEO
():
Promise
<
any
>
{
return
serverBaseQuery
(
"/api/general/home/seo"
);
}
export
async
function
getUsp
():
Promise
<
any
>
{
return
serverBaseQuery
(
"/api/general/home/usp"
);
}
...
...
@@ -31,6 +34,7 @@ export async function getUserGameCredentials(): Promise<CredentialsResponseProps
withAuth
:
true
,
});
}
export
async
function
getUserGameBalance
():
Promise
<
CredentialsResponseProps
>
{
const
cookieStore
=
await
cookies
();
const
access_token
=
cookieStore
.
get
(
"access_token"
)?.
value
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment