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
68457509
Commit
68457509
authored
Apr 07, 2026
by
Arjun Jhukal
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
updated the minor changes
parent
dfe96f74
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
25 additions
and
16 deletions
+25
-16
next.config.ts
next.config.ts
+0
-12
layout.tsx
src/app/layout.tsx
+17
-1
ComingSoonGate.tsx
src/components/organism/ComingSoonGate.tsx
+7
-2
SiteAvailability.tsx
...es/dashboard/adminDashboard/settings/SiteAvailability.tsx
+1
-1
No files found.
next.config.ts
View file @
68457509
...
@@ -6,18 +6,6 @@ const nextConfig: NextConfig = {
...
@@ -6,18 +6,6 @@ const nextConfig: NextConfig = {
remotePatterns
:
[
remotePatterns
:
[
{
{
protocol
:
'https'
,
protocol
:
'https'
,
hostname
:
'app.bdwebai.com'
,
port
:
''
,
pathname
:
'/storage/**'
,
},
{
protocol
:
'https'
,
hostname
:
'sweepstake.webjuwa.com'
,
port
:
''
,
pathname
:
'/storage/**'
,
},
{
protocol
:
'https'
,
hostname
:
'app.getfirekirin.com'
,
hostname
:
'app.getfirekirin.com'
,
port
:
''
,
port
:
''
,
pathname
:
'/storage/**'
,
pathname
:
'/storage/**'
,
...
...
src/app/layout.tsx
View file @
68457509
import
AuthHydrator
from
"@/components/Hydrators/AuthHydrator"
;
import
FingerprintLogger
from
"@/components/FingerprintLogger"
;
import
FingerprintLogger
from
"@/components/FingerprintLogger"
;
import
AuthHydrator
from
"@/components/Hydrators/AuthHydrator"
;
import
{
pageSEO
}
from
"@/serverApi/game"
;
import
{
pageSEO
}
from
"@/serverApi/game"
;
import
type
{
Metadata
}
from
"next"
;
import
type
{
Metadata
}
from
"next"
;
import
{
Inter
}
from
"next/font/google"
;
import
{
Inter
}
from
"next/font/google"
;
...
@@ -77,6 +77,22 @@ export default function RootLayout({
...
@@ -77,6 +77,22 @@ export default function RootLayout({
}
}
}
}
/>
/>
)
}
)
}
{
/* <Script id="makura-chatbot-config" strategy="afterInteractive">
{`
window.MakuraBotConfig = {
chatbotId: "diva-XQpszNrG",
apiUrl: "https://chatbot.makuracreations.xyz/api",
primaryColor: "#1CA201",
secondaryColor: "#FFF81F",
position: "right",
theme: "light",
botName: "Diva",
welcomeMessage: "Hi! How can I help you today?"
};
`}
</Script>
<Script src="https://chatbot.makuracreations.xyz/widget/makura-widget.js" async></Script> */
}
</
head
>
</
head
>
{
/* className="dark" */
}
{
/* className="dark" */
}
<
body
className=
{
`${inter.className} scroll-smooth`
}
cz
-
shortcut
-
listen=
"true"
>
<
body
className=
{
`${inter.className} scroll-smooth`
}
cz
-
shortcut
-
listen=
"true"
>
...
...
src/components/organism/ComingSoonGate.tsx
View file @
68457509
"use client"
;
"use client"
;
import
ComingSoon
from
"@/components/pages/ComingSoon
"
;
import
{
useAppSelector
}
from
"@/hooks/hook
"
;
import
{
useGetSiteAvailabilityQuery
}
from
"@/services/settingApi"
;
import
{
useGetSiteAvailabilityQuery
}
from
"@/services/settingApi"
;
import
React
from
"react"
;
import
React
from
"react"
;
import
ComingSoon
from
"../pages/ComingSoon"
;
export
default
function
ComingSoonGate
({
children
}:
{
children
:
React
.
ReactNode
})
{
export
default
function
ComingSoonGate
({
children
}:
{
children
:
React
.
ReactNode
})
{
const
user
=
useAppSelector
((
state
)
=>
state
.
auth
.
user
);
const
{
data
,
isLoading
}
=
useGetSiteAvailabilityQuery
();
const
{
data
,
isLoading
}
=
useGetSiteAvailabilityQuery
();
if
(
isLoading
)
return
null
;
if
(
isLoading
)
return
null
;
if
(
data
?.
data
?.
coming_soon
===
false
)
{
// const isAdmin = user?.role === "ADMIN" || user?.role === "SUPER_ADMIN";
const
isUser
=
user
?.
role
&&
user
?.
role
.
toUpperCase
()
===
"USER"
;
if
(
isUser
&&
data
?.
data
?.
coming_soon
===
false
)
{
return
<
ComingSoon
/>;
return
<
ComingSoon
/>;
}
}
...
...
src/components/pages/dashboard/adminDashboard/settings/SiteAvailability.tsx
View file @
68457509
...
@@ -42,7 +42,7 @@ export default function SiteAvailability() {
...
@@ -42,7 +42,7 @@ export default function SiteAvailability() {
color=
"primary"
color=
"primary"
/>
/>
}
}
label=
{
<
Typography
className=
"text-primary-dark"
>
Coming Soon Mode
</
Typography
>
}
label=
{
<
Typography
className=
"text-primary-dark"
>
Toggle Site Availability
</
Typography
>
}
/>
/>
</
div
>
</
div
>
</
div
>
</
div
>
...
...
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