Skip to content

Commit

Permalink
Merge pull request #34 from 0xdevcollins/feat/dashboard
Browse files Browse the repository at this point in the history
Feat/dashboard
  • Loading branch information
0xdevcollins authored Dec 5, 2024
2 parents 10b1194 + 46ed417 commit 999e751
Show file tree
Hide file tree
Showing 60 changed files with 3,532 additions and 3,801 deletions.
4 changes: 4 additions & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
NEXT_PUBLIC_API_BASE_URL=https://api.gridape.com/api/v1
NEXT_PUBLIC_CSRF_COOKIE_URL=https://api.gridape.com/sanctum/csrf-cookie
# NEXT_PUBLIC_API_BASE_URL=http://127.0.0.1:8000/api/v1
# NEXT_PUBLIC_CSRF_COOKIE_URL=http://127.0.0.1:8000/sanctum/csrf-cookie
27 changes: 22 additions & 5 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,26 @@
{
"extends": ["next/core-web-vitals", "plugin:@typescript-eslint/recommended", "prettier"],
"plugins": ["@typescript-eslint", "prettier"],
"extends": [
"next/core-web-vitals",
"plugin:@typescript-eslint/recommended"
],
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint"],
"root": true,
"parserOptions": {
"project": "./tsconfig.json"
},
"overrides": [
{
"files": ["*.ts", "*.tsx"],
"parserOptions": {
"project": ["./tsconfig.json"]
}
}
],
"rules": {
"prettier/prettier": "error",
"@typescript-eslint/no-unused-vars": "error",
"@typescript-eslint/no-explicit-any": "warn"
"@typescript-eslint/no-unused-vars": ["error", { "argsIgnorePattern": "^_" }],
"@typescript-eslint/explicit-module-boundary-types": "off",
"react/react-in-jsx-scope": "off"
}
}

18 changes: 10 additions & 8 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@ about: Create a report to help us improve
title: ''
labels: ''
assignees: ''

---

**Describe the bug**
A clear and concise description of what the bug is.

**To Reproduce**
Steps to reproduce the behavior:

1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
Expand All @@ -24,15 +24,17 @@ A clear and concise description of what you expected to happen.
If applicable, add screenshots to help explain your problem.

**Desktop (please complete the following information):**
- OS: [e.g. iOS]
- Browser [e.g. chrome, safari]
- Version [e.g. 22]

- OS: [e.g. iOS]
- Browser [e.g. chrome, safari]
- Version [e.g. 22]

**Smartphone (please complete the following information):**
- Device: [e.g. iPhone6]
- OS: [e.g. iOS8.1]
- Browser [e.g. stock browser, safari]
- Version [e.g. 22]

- Device: [e.g. iPhone6]
- OS: [e.g. iOS8.1]
- Browser [e.g. stock browser, safari]
- Version [e.g. 22]

**Additional context**
Add any other context about the problem here.
3 changes: 0 additions & 3 deletions .github/ISSUE_TEMPLATE/custom.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,4 @@ about: Describe this issue template's purpose here.
title: ''
labels: ''
assignees: ''

---


1 change: 0 additions & 1 deletion .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ about: Suggest an idea for this project
title: ''
labels: ''
assignees: ''

---

**Is your feature request related to a problem? Please describe.**
Expand Down
7 changes: 3 additions & 4 deletions app/api/auth/login/route.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { handleApiRequest } from '@/lib/api-utils'
import { NextRequest } from 'next/server'
import { handleApiRequest } from '@/lib/api-utils';
import { NextRequest } from 'next/server';

export async function POST(request: NextRequest) {
return handleApiRequest(request, '/auth/login', 'POST')
return handleApiRequest(request, '/auth/login', 'POST');
}

8 changes: 4 additions & 4 deletions app/api/auth/register/route.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { handleApiRequest } from '@/lib/api-utils'
import { NextRequest } from 'next/server'
import { handleApiRequest } from '@/lib/api-utils';
import { NextRequest } from 'next/server';

export async function POST(request: NextRequest) {
return handleApiRequest(request, '/auth/register', 'POST')
}
return handleApiRequest(request, '/auth/register', 'POST');
}
8 changes: 4 additions & 4 deletions app/api/auth/resend/route.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { handleApiRequest } from '@/lib/api-utils'
import { NextRequest } from 'next/server'
import { handleApiRequest } from '@/lib/api-utils';
import { NextRequest } from 'next/server';

export async function POST(request: NextRequest) {
return handleApiRequest(request, 'auth/resend-verification-mail', 'POST')
}
return handleApiRequest(request, 'auth/resend-verification-mail', 'POST');
}
14 changes: 0 additions & 14 deletions app/api/auth/set-cookie/route.ts

This file was deleted.

8 changes: 4 additions & 4 deletions app/api/auth/verify/route.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { handleApiRequest } from '@/lib/api-utils'
import { NextRequest } from 'next/server'
import { handleApiRequest } from '@/lib/api-utils';
import { NextRequest } from 'next/server';

export async function POST(request: NextRequest) {
return handleApiRequest(request, '/auth/email/verify', 'POST')
}
return handleApiRequest(request, '/auth/email/verify', 'POST');
}
2 changes: 1 addition & 1 deletion app/api/templates/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ import { NextRequest, NextResponse } from 'next/server';

export async function GET(request: NextRequest): Promise<NextResponse> {
return handleApiRequest(request, '/templates', 'GET');
}
}
1 change: 0 additions & 1 deletion app/api/user/settings/add-domain/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,3 @@ import { NextRequest, NextResponse } from 'next/server';
export async function POST(request: NextRequest): Promise<NextResponse> {
return handleApiRequest(request, '/user/domain-verification', 'POST');
}

118 changes: 0 additions & 118 deletions app/auth/basic-info/page.tsx

This file was deleted.

98 changes: 0 additions & 98 deletions app/auth/business-info/page.tsx

This file was deleted.

Loading

0 comments on commit 999e751

Please sign in to comment.