Skip to content

Commit

Permalink
Merge pull request #5 from createdbymahmood/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
createdbymahmood authored Feb 18, 2024
2 parents 22331c4 + 502e99b commit 6e0c878
Show file tree
Hide file tree
Showing 296 changed files with 7,425 additions and 121 deletions.
13 changes: 12 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,29 @@
"storybook:build": "storybook build"
},
"dependencies": {
"@mantine/carousel": "7.5.3",
"@mantine/core": "7.5.1",
"@mantine/dates": "7.5.2",
"@mantine/dropzone": "7.5.2",
"@mantine/hooks": "7.5.1",
"@mantine/spotlight": "7.5.2",
"@phosphor-icons/react": "2.0.15",
"@tabler/icons-react": "2.47.0",
"@types/lodash-es": "4.17.12",
"@types/numeral": "2.0.5",
"ahooks": "3.7.10",
"clsx": "2.1.0",
"dayjs": "1.11.10",
"embla-carousel-react": "8.0.0-rc22",
"immer": "10.0.3",
"lodash-es": "4.17.21",
"next": "14.1.0",
"numeral": "2.0.6",
"react": "18.2.0",
"react-dom": "18.2.0"
"react-dom": "18.2.0",
"react-perfect-scrollbar": "1.5.8",
"urlcat": "2.0.4",
"utility-types": "3.11.0"
},
"devDependencies": {
"@fullstacksjs/eslint-config": "10.10.1",
Expand Down
18 changes: 13 additions & 5 deletions src/app/job-location/page.tsx
Original file line number Diff line number Diff line change
@@ -1,15 +1,23 @@
'use client'

import dynamic from 'next/dynamic'

import {JobLocationProviders} from '@/components/JobLocation/layout'
import {constructMetadata} from '@/utils/constructMetadata'

const JobLocation = dynamic(
() =>
import('@/components/JobLocation/JobLocation').then((m) => m.JobLocation),
() => import('@/components/JobLocation/JobLocation'),
{
ssr: false,
},
)

export const metadata = constructMetadata({
title: 'Job Location',
})

export default function JobLocationPage() {
return <JobLocation />
return (
<JobLocationProviders>
<JobLocation />
</JobLocationProviders>
)
}
15 changes: 5 additions & 10 deletions src/app/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,16 +1,13 @@
import '@/lib/styles/global.scss'
import '@mantine/core/styles.css'
import 'react-perfect-scrollbar/dist/css/styles.css'

import {ColorSchemeScript} from '@mantine/core'
import type {Metadata} from 'next'
import {Poppins} from 'next/font/google'

import {Providers} from '@/components/common/providers'
import {defaultThemeColorScheme} from '@/constants'
import {constructMetadata} from '@/utils/constructMetadata'

const inter = Poppins({
weight: ['400', '500', '600', '700'],
subsets: ['latin'],
})

export const metadata: Metadata = constructMetadata({
title: 'Pixelsmithy',
})
Expand All @@ -29,9 +26,7 @@ export default function RootLayout({children}: RootLayoutProps) {
/>
<ColorSchemeScript defaultColorScheme={defaultThemeColorScheme} />
</head>
<body className={inter.className}>
<Providers>{children}</Providers>
</body>
<body>{children}</body>
</html>
)
}
9 changes: 7 additions & 2 deletions src/app/page.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
import {Projects} from '@/components/Projects'
import {Applications} from '@/components/Applications'
import {constructMetadata} from '@/utils/constructMetadata'

export const metadata = constructMetadata({
title: 'Home',
})

export default function App() {
return <Projects />
return <Applications />
}
5 changes: 5 additions & 0 deletions src/app/snow-ui/account/api-keys/loading.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import {Loader} from '@mantine/core'

export default function Loading() {
return <Loader size='xs' />
}
12 changes: 12 additions & 0 deletions src/app/snow-ui/account/api-keys/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import React from 'react'

import {AccountApiKeys} from '@/components/SnowUI'
import {constructMetadata} from '@/utils/constructMetadata'

export const metadata = constructMetadata({
title: 'API Keys',
})

export default function ApiKeys() {
return <AccountApiKeys />
}
5 changes: 5 additions & 0 deletions src/app/snow-ui/account/billing/loading.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import {Loader} from '@mantine/core'

export default function Loading() {
return <Loader size='xs' />
}
12 changes: 12 additions & 0 deletions src/app/snow-ui/account/billing/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import React from 'react'

import {AccountBilling} from '@/components/SnowUI'
import {constructMetadata} from '@/utils/constructMetadata'

export const metadata = constructMetadata({
title: 'Account Billing',
})

export default function BillingP() {
return <AccountBilling />
}
5 changes: 5 additions & 0 deletions src/app/snow-ui/account/layout.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
'use client'

import {AccountLayout} from '@/components/SnowUI/components/account'

export default AccountLayout
5 changes: 5 additions & 0 deletions src/app/snow-ui/account/logs/loading.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import {Loader} from '@mantine/core'

export default function Loading() {
return <Loader size='xs' />
}
12 changes: 12 additions & 0 deletions src/app/snow-ui/account/logs/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import React from 'react'

import {AccountLogs} from '@/components/SnowUI'
import {constructMetadata} from '@/utils/constructMetadata'

export const metadata = constructMetadata({
title: 'Account Logs',
})

export default function Logs() {
return <AccountLogs />
}
5 changes: 5 additions & 0 deletions src/app/snow-ui/account/overview/loading.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import {Loader} from '@mantine/core'

export default function Loading() {
return <Loader size='xs' />
}
12 changes: 12 additions & 0 deletions src/app/snow-ui/account/overview/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import React from 'react'

import {AccountOverview} from '@/components/SnowUI'
import {constructMetadata} from '@/utils/constructMetadata'

export const metadata = constructMetadata({
title: 'Account overview',
})

export default function Overview() {
return <AccountOverview />
}
7 changes: 7 additions & 0 deletions src/app/snow-ui/account/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import {redirect} from 'next/navigation'

import {urls} from '@/constants'

export default function Account() {
return redirect(urls.SnowUI.account.page('overview'))
}
5 changes: 5 additions & 0 deletions src/app/snow-ui/account/referrals/loading.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import {Loader} from '@mantine/core'

export default function Loading() {
return <Loader size='xs' />
}
12 changes: 12 additions & 0 deletions src/app/snow-ui/account/referrals/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import React from 'react'

import {AccountReferrals} from '@/components/SnowUI'
import {constructMetadata} from '@/utils/constructMetadata'

export const metadata = constructMetadata({
title: 'Account Referrals',
})

export default function Referrals() {
return <AccountReferrals />
}
5 changes: 5 additions & 0 deletions src/app/snow-ui/account/security/loading.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import {Loader} from '@mantine/core'

export default function Loading() {
return <Loader size='xs' />
}
12 changes: 12 additions & 0 deletions src/app/snow-ui/account/security/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import React from 'react'

import {AccountSecurity} from '@/components/SnowUI'
import {constructMetadata} from '@/utils/constructMetadata'

export const metadata = constructMetadata({
title: 'Account Security',
})

export default function Security() {
return <AccountSecurity />
}
5 changes: 5 additions & 0 deletions src/app/snow-ui/account/settings/loading.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import {Loader} from '@mantine/core'

export default function Loading() {
return <Loader size='xs' />
}
12 changes: 12 additions & 0 deletions src/app/snow-ui/account/settings/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import React from 'react'

import {AccountSettings} from '@/components/SnowUI'
import {constructMetadata} from '@/utils/constructMetadata'

export const metadata = constructMetadata({
title: 'Account Settings',
})

export default function Settings() {
return <AccountSettings />
}
5 changes: 5 additions & 0 deletions src/app/snow-ui/account/statements/loading.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import {Loader} from '@mantine/core'

export default function Loading() {
return <Loader size='xs' />
}
12 changes: 12 additions & 0 deletions src/app/snow-ui/account/statements/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import React from 'react'

import {AccountStatements} from '@/components/SnowUI'
import {constructMetadata} from '@/utils/constructMetadata'

export const metadata = constructMetadata({
title: 'Account Statements',
})

export default function Statements() {
return <AccountStatements />
}
3 changes: 3 additions & 0 deletions src/app/snow-ui/layout.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import {SnowUILayout} from '@/components/SnowUI/layout/SnowUILayout'

export default SnowUILayout
12 changes: 12 additions & 0 deletions src/app/snow-ui/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import {redirect} from 'next/navigation'

import {constructMetadata} from '@/utils/constructMetadata'

export const metadata = constructMetadata({
title: 'Snow UI',
})

export default function SnowUI() {
// return redirect('/snow-ui/projects')
return <div style={{height: '200vh'}}>Hello World</div>
}
5 changes: 5 additions & 0 deletions src/app/snow-ui/projects/[id]/activity/loading.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import {Loader} from '@mantine/core'

export default function Loading() {
return <Loader size='xs' />
}
10 changes: 10 additions & 0 deletions src/app/snow-ui/projects/[id]/activity/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import {ProjectActivity} from '@/components/SnowUI'
import {constructMetadata} from '@/utils/constructMetadata'

export const metadata = constructMetadata({
title: 'Project Activity',
})

export default function Activity() {
return <ProjectActivity />
}
5 changes: 5 additions & 0 deletions src/app/snow-ui/projects/[id]/budget/loading.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import {Loader} from '@mantine/core'

export default function Loading() {
return <Loader size='xs' />
}
10 changes: 10 additions & 0 deletions src/app/snow-ui/projects/[id]/budget/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import {ProjectBudget} from '@/components/SnowUI'
import {constructMetadata} from '@/utils/constructMetadata'

export const metadata = constructMetadata({
title: 'Project Budget',
})

export default function Budget() {
return <ProjectBudget />
}
5 changes: 5 additions & 0 deletions src/app/snow-ui/projects/[id]/files/loading.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import {Loader} from '@mantine/core'

export default function Loading() {
return <Loader size='xs' />
}
12 changes: 12 additions & 0 deletions src/app/snow-ui/projects/[id]/files/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import React from 'react'

import {ProjectFiles} from '@/components/SnowUI'
import {constructMetadata} from '@/utils/constructMetadata'

export const metadata = constructMetadata({
title: 'Project Files',
})

export default function Files() {
return <ProjectFiles />
}
5 changes: 5 additions & 0 deletions src/app/snow-ui/projects/[id]/layout.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
'use client'

import {ProjectDetailsLayout} from '@/components/SnowUI'

export default ProjectDetailsLayout
5 changes: 5 additions & 0 deletions src/app/snow-ui/projects/[id]/overview/loading.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import {Loader} from '@mantine/core'

export default function Loading() {
return <Loader size='xs' />
}
12 changes: 12 additions & 0 deletions src/app/snow-ui/projects/[id]/overview/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import React from 'react'

import {ProjectOverview} from '@/components/SnowUI'
import {constructMetadata} from '@/utils/constructMetadata'

export const metadata = constructMetadata({
title: 'Project Overview',
})

export default function Overview() {
return <ProjectOverview />
}
15 changes: 15 additions & 0 deletions src/app/snow-ui/projects/[id]/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
'use client'

import type {Params} from 'next/dist/shared/lib/router/utils/route-matcher'
import {redirect, useParams} from 'next/navigation'

import {urls} from '@/constants'

interface QueryParams extends Params {
id: string
}

export default function ProjectDetails() {
const params = useParams<QueryParams>()
return redirect(urls.SnowUI.projects.details(params.id, 'overview'))
}
5 changes: 5 additions & 0 deletions src/app/snow-ui/projects/[id]/settings/loading.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import {Loader} from '@mantine/core'

export default function Loading() {
return <Loader size='xs' />
}
10 changes: 10 additions & 0 deletions src/app/snow-ui/projects/[id]/settings/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import {ProjectSettings} from '@/components/SnowUI'
import {constructMetadata} from '@/utils/constructMetadata'

export const metadata = constructMetadata({
title: 'Project Settings',
})

export default function Settings() {
return <ProjectSettings />
}
Loading

0 comments on commit 6e0c878

Please sign in to comment.