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
44062eb7
Commit
44062eb7
authored
Oct 17, 2025
by
Arjun Jhukal
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
updated the new user name and password at game detail
parent
9a49c7cc
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
70 additions
and
5 deletions
+70
-5
SingleGameCred.tsx
...ashboard/userDashboard/gameCredentials/SingleGameCred.tsx
+29
-0
index.tsx
...hboard/games/exclusiveGames/exclusiveGameDetail/index.tsx
+8
-1
notificationApi.tsx
src/services/notificationApi.tsx
+19
-4
game.ts
src/types/game.ts
+4
-0
notification.ts
src/types/notification.ts
+10
-0
No files found.
src/components/pages/dashboard/userDashboard/gameCredentials/SingleGameCred.tsx
0 → 100644
View file @
44062eb7
"use client"
;
import
{
useGetUserBalanceBySlugQuery
}
from
'@/services/userApi'
;
import
React
from
'react'
import
CopyToClipboard
from
'./CopyToClipboard'
;
import
{
CardPasswordField
}
from
'./CardPasswordHandler'
;
export
default
function
SingleGameCred
({
username
,
password
}:
{
username
:
string
;
password
:
string
})
{
return
(
<
ul
className=
"mt-4"
>
<
li
className=
"py-2 border-b border-[rgba(255,255,255,0.2)] grid grid-cols-2"
>
<
span
className=
"text-[12px] leading-[120%] font-[600]"
>
Username :
</
span
>
<
div
className=
"flex justify-between items-center"
>
<
span
className=
"text-[11px]"
>
{
username
}
</
span
>
{
username
&&
(
<
CopyToClipboard
text=
{
username
}
/>
)
}
</
div
>
</
li
>
<
li
className=
"py-2 border-b border-[rgba(255,255,255,0.2)] grid grid-cols-2"
>
<
span
className=
"text-[12px] leading-[120%] font-[600]"
>
Password :
</
span
>
<
CardPasswordField
password=
{
password
}
/>
</
li
>
</
ul
>
)
}
src/components/pages/dashboard/userDashboard/games/exclusiveGames/exclusiveGameDetail/index.tsx
View file @
44062eb7
...
...
@@ -11,10 +11,11 @@ import Link from "next/link";
import
UserCoin
from
"./UserCoin"
;
import
{
redirect
}
from
"next/dist/server/api-utils"
;
import
GameIframeDialog
from
"./GameIframeDialog"
;
import
SingleGameCred
from
"../../../gameCredentials/SingleGameCred"
;
export
default
function
ExclusiveGameDetail
({
game
}:
{
game
:
SingleGameResponse
})
{
console
.
log
({
isIframe
:
game
?.
data
?.
is_iframe
,
gameUrl
:
game
?.
data
?.
game_url
,
redirect
:
game
?.
data
?.
has_redirection
});
return
(
<>
...
...
@@ -60,6 +61,12 @@ export default function ExclusiveGameDetail({ game }: { game: SingleGameResponse
</
Box
>
}
</
div
>
<
div
className=
"game_cred"
>
<
h2
className=
"text-[24px]"
>
Credentials for
{
game
?.
data
?.
name
}
</
h2
>
<
SingleGameCred
username=
{
game
?.
data
?.
user
?.
name
||
"Arjun"
}
password=
{
game
?.
data
?.
user
?.
password
||
"Arjun"
}
/>
</
div
>
{
game
?.
data
?.
is_iframe
?
(
...
...
src/services/notificationApi.tsx
View file @
44062eb7
...
...
@@ -6,7 +6,7 @@ import { GlobalResponse, QueryParams } from "@/types/config";
export
const
notificationApi
=
createApi
({
reducerPath
:
"notificationApi"
,
baseQuery
:
baseQuery
,
tagTypes
:
[
'Notification'
],
tagTypes
:
[
'Notification'
,
"Activity"
],
endpoints
:
(
builder
)
=>
({
getAllNotification
:
builder
.
query
<
NotificationResponse
,
QueryParams
>
({
query
:
({
search
,
page
,
per_page
})
=>
{
...
...
@@ -35,8 +35,23 @@ export const notificationApi = createApi({
method
:
"POST"
,
}),
invalidatesTags
:
[
"Notification"
]
})
}),
getAllActivity
:
builder
.
query
<
NotificationResponse
,
{
activity_type
:
string
}
&
QueryParams
>
({
query
:
({
search
,
page
,
per_page
,
activity_type
})
=>
{
const
params
=
new
URLSearchParams
();
if
(
search
)
params
.
append
(
'search'
,
search
);
if
(
page
)
params
.
append
(
'page'
,
page
.
toString
());
if
(
per_page
)
params
.
append
(
'page_size'
,
per_page
.
toString
());
if
(
per_page
)
params
.
append
(
'activity_type'
,
activity_type
.
toString
());
const
queryString
=
params
.
toString
();
return
{
url
:
`/api/admin/activity
${
queryString
?
`?
${
queryString
}
`
:
''
}
`
,
method
:
"GET"
}
},
providesTags
:
[
"Activity"
]
}),
})
})
export
const
{
useGetAllNotificationQuery
,
useReadNotificationMutation
,
useReadAllNotificationMutation
}
=
notificationApi
\ No newline at end of file
export
const
{
useGetAllNotificationQuery
,
useReadNotificationMutation
,
useReadAllNotificationMutation
,
useGetAllActivityQuery
}
=
notificationApi
\ No newline at end of file
src/types/game.ts
View file @
44062eb7
...
...
@@ -30,6 +30,10 @@ export interface GameItem extends CommonGameProps {
game_url
?:
string
;
is_iframe
?:
boolean
;
has_redirection
?:
boolean
;
user
?:
{
name
:
string
;
password
:
string
;
}
}
export
interface
Pagination
{
...
...
src/types/notification.ts
View file @
44062eb7
...
...
@@ -14,4 +14,13 @@ export interface NotificationResponse {
data
:
NotificationProps
[]
pagination
:
Pagination
}
}
export
interface
ActivityResponse
{
success
:
boolean
;
message
:
string
;
data
:
{
data
:
{}[];
pagination
:
Pagination
;
}
}
\ No newline at end of file
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